Created
August 6, 2022 15:59
-
-
Save luckythandel/e465b0c582defc975655150b13903db3 to your computer and use it in GitHub Desktop.
TN_MouseServer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* MobileMouseSession(void*) */ | |
undefined4 MobileMouseSession(void *param_1) | |
{ | |
int __fd; | |
undefined4 uVar1; | |
size_t __n; | |
ssize_t sVar2; | |
int in_GS_OFFSET; | |
basic_string local_498 [6]; | |
basic_string<char,std::char_traits<char>,std::allocator<char>> local_480 [24]; | |
basic_string<char,std::char_traits<char>,std::allocator<char>> local_468 [24]; | |
undefined4 local_450; | |
undefined4 local_44c; | |
undefined4 local_448; | |
undefined4 local_444; | |
undefined4 local_440; | |
char local_410 [1024]; | |
int local_10; | |
local_10 = *(int *)(in_GS_OFFSET + 0x14); | |
/* WARNING: Load size is inaccurate */ | |
__fd = *param_1; | |
std::__cxx11::basic_string<char,std::char_traits<char>,std::allocator<char>>::basic_string | |
(local_498); | |
if (param_1 != (void *)0x0) { | |
/* try { // try from 0805292b to 080529ef has its CatchHandler @ 08052b29 */ | |
SessionContext::~SessionContext((SessionContext *)param_1); | |
operator.delete(param_1); | |
} | |
uVar1 = std::__cxx11::basic_string<char,std::char_traits<char>,std::allocator<char>>::c_str(); | |
syslog(6,"[%s] connected",uVar1); | |
bzero(&local_450,0x40); | |
local_450 = 0x74737973; | |
local_44c = 0x6c206d65; | |
local_448 = 0x78756e69; | |
local_444 = 0x2e303120; | |
local_440 = 0xa3430; | |
__n = strlen((char *)&local_450); | |
write(__fd,&local_450,__n); | |
std::__cxx11::basic_string<char,std::char_traits<char>,std::allocator<char>>::basic_string(); | |
/* try { // try from 080529fd to 08052a01 has its CatchHandler @ 08052b13 */ | |
std::__cxx11::basic_string<char,std::char_traits<char>,std::allocator<char>>::basic_string(); | |
while( true ) { | |
/* try { // try from 08052a1a to 08052a63 has its CatchHandler @ 08052afd */ | |
sVar2 = read(__fd,local_410,0x400); | |
if (sVar2 < 1) break; | |
local_410[sVar2] = '\0'; | |
if (3 < iLogLevel) { | |
/* try { // try from 08052ab9 to 08052acf has its CatchHandler @ 08052afd */ | |
printf("received buffer:%s\n",local_410); | |
} | |
process(local_410); | |
} | |
uVar1 = std::__cxx11::basic_string<char,std::char_traits<char>,std::allocator<char>>::c_str(); | |
syslog(6,"[%s] disconnected ",uVar1); | |
close(__fd); | |
/* try { // try from 08052a76 to 08052a7a has its CatchHandler @ 08052b13 */ | |
std::__cxx11::basic_string<char,std::char_traits<char>,std::allocator<char>>::~basic_string | |
(local_468); | |
/* try { // try from 08052a88 to 08052a8c has its CatchHandler @ 08052b29 */ | |
std::__cxx11::basic_string<char,std::char_traits<char>,std::allocator<char>>::~basic_string | |
(local_480); | |
std::__cxx11::basic_string<char,std::char_traits<char>,std::allocator<char>>::~basic_string | |
((basic_string<char,std::char_traits<char>,std::allocator<char>> *)local_498); | |
if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) { | |
/* WARNING: Subroutine does not return */ | |
__stack_chk_fail(); | |
} | |
return 0; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment