{"name": "err", "code": "void __fastcall __noreturn err ( __int64 @@a1@@ ) { sub_4012DA ( ( __int64 ) String ) ; sub_4012DA ( @@a1@@ ) ; sub_4012DA ( ( __int64 ) String ) ; sub_4012FF ( ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}]}
{"name": "sub_4012DA", "code": "__int64 __fastcall sub_4012DA ( __int64 @@a1@@ ) { return sub_402AC1 ( & off_4050E0 , @@a1@@ ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}]} {"name": "sub_401C8A", "code": "ssize_t __fastcall sub_401C8A ( int @@a1@@ , int @@a2@@ , void * @@a3@@ , int @@a4@@ ) { struct timeval @@timeout@@ ; fd_set @@readfds@@ ; _DWORD @@v9@@ [ Number ] ; @@timeout@@ . tv_sec = @@a1@@ ; @@timeout@@ . tv_usec = Number L ; memset ( & @@readfds@@ , Number , sizeof ( @@readfds@@ ) ) ; @@v9@@ [ Number ] = Number ; @@v9@@ [ Number ] = ( unsigned int ) @@v9@@ ; @@readfds@@ . fds_bits [ @@a2@@ / Number ] |= Number L << ( @@a2@@ % Number ) ; if ( select ( @@a2@@ + Number , & @@readfds@@ , Number L , Number L , & @@timeout@@ ) == Number ) return Number ; if ( ( @@readfds@@ . fds_bits [ @@a2@@ / Number ] & ( Number L << ( @@a2@@ % Number ) ) ) != Number ) return read ( @@a2@@ , @@a3@@ , @@a4@@ ) ; * __errno_location ( ) = dword_4051CC ; return Number ; }", "source": [{"n": "a3", "t": {"T": 3, "t": "void"}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "int", "s": 4}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "readfds", "t": {"T": 6, "n": "fd_set", "l": [{"T": 4, "n": "fds_bits", "t": "__fd_mask[16]", "s": 128}]}, "location": "s144"}, {"n": "v9", "t": {"T": 2, "n": 4, "s": 4, "t": "_DWORD"}, "location": "s16"}, {"n": "timeout", "t": {"T": 6, "n": "struct timeval", "l": [{"T": 4, "n": "tv_sec", "t": "__time_t", "s": 8}, {"T": 4, "n": "tv_usec", "t": "__suseconds_t", "s": 8}]}, "location": "s160"}]} {"name": "sub_401DE6", "code": "ssize_t __fastcall sub_401DE6 ( int @@a1@@ , int @@a2@@ , const void * @@a3@@ , int @@a4@@ ) { struct timeval @@timeout@@ ; fd_set @@writefds@@ ; _DWORD @@v9@@ [ Number ] ; @@timeout@@ . tv_sec = @@a1@@ ; @@timeout@@ . tv_usec = Number L ; memset ( & @@writefds@@ , Number , sizeof ( @@writefds@@ ) ) ; @@v9@@ [ Number ] = Number ; @@v9@@ [ Number ] = ( unsigned int ) @@v9@@ ; @@writefds@@ . fds_bits [ @@a2@@ / Number ] |= Number L << ( @@a2@@ % Number ) ; if ( select ( @@a2@@ + Number , Number L , & @@writefds@@ , Number L , & @@timeout@@ ) == Number ) return Number ; if ( ( @@writefds@@ . fds_bits [ @@a2@@ / Number ] & ( Number L << ( @@a2@@ % Number ) ) ) != Number ) return write ( @@a2@@ , @@a3@@ , @@a4@@ ) ; * __errno_location ( ) = dword_4051CC ; return Number ; }", "source": [{"n": "a3", "t": {"T": 3, "t": "const void"}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "int", "s": 4}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "writefds", "t": {"T": 6, "n": "fd_set", "l": [{"T": 4, "n": "fds_bits", "t": "__fd_mask[16]", "s": 128}]}, "location": "s144"}, {"n": "v9", "t": {"T": 2, "n": 4, "s": 4, "t": "_DWORD"}, "location": "s16"}, {"n": "timeout", "t": {"T": 6, "n": "struct timeval", "l": [{"T": 4, "n": "tv_sec", "t": "__time_t", "s": 8}, {"T": 4, "n": "tv_usec", "t": "__suseconds_t", "s": 8}]}, "location": "s160"}]} {"name": "sub_4021F3", "code": "__int64 __fastcall sub_4021F3 ( int * @@a1@@ , __pid_t @@a2@@ ) { unsigned int @@v3@@ ; do @@v3@@ = waitpid ( @@a2@@ , @@a1@@ , Number ) ; while ( @@v3@@ == Number && * __errno_location ( ) == dword_4051B4 ) ; return @@v3@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "int"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__pid_t", "s": 4}, "location": "r64"}, {"n": "v3", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4"}]} {"name": "sub_40245F", "code": "__int64 __fastcall sub_40245F ( int @@a1@@ ) { __int64 @@result@@ ; unsigned int @@size@@ ; void * @@v3@@ ; @@size@@ = ( @@a1@@ & Number ) + Number ; if ( @@size@@ > dword_4051B0 ) { @@v3@@ = malloc ( @@size@@ ) ; if ( ! @@v3@@ ) * __errno_location ( ) = dword_4051B8 ; @@result@@ = ( __int64 ) @@v3@@ ; } else { dword_4051B0 -= @@size@@ ; @@result@@ = ( unsigned int ) dword_4051B0 + Number L ; } return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r56"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "size", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s20"}, {"n": "v3", "t": {"T": 3, "t": "void"}, "location": "s8"}]} {"name": "sub_402596", "code": "__int64 __fastcall sub_402596 ( __int64 ( __fastcall * @@a1@@ ) ( _QWORD , __int64 , _QWORD ) , unsigned int @@a2@@ , __int64 @@a3@@ , unsigned int @@a4@@ ) { unsigned int @@v6@@ ; do @@v6@@ = @@a1@@ ( @@a2@@ , @@a3@@ , @@a4@@ ) ; while ( @@v6@@ == Number && * __errno_location ( ) == dword_4051B4 ) ; return @@v6@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r24"}, {"n": "v6", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r32"}, {"n": "a1", "t": {"T": 9, "n": "__int64 (__fastcall *)(_QWORD, __int64, _QWORD)"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r64"}]} {"name": "sub_402820", "code": "__int64 __fastcall sub_402820 ( __int64 ( __fastcall * @@a1@@ ) ( _QWORD , __int64 , _QWORD ) , unsigned int @@a2@@ , __int64 @@a3@@ , unsigned int @@a4@@ ) { int @@v6@@ ; while ( @@a4@@ ) { @@v6@@ = @@a1@@ ( @@a2@@ , @@a3@@ , @@a4@@ ) ; if ( @@v6@@ == Number ) { if ( * __errno_location ( ) != dword_4051B4 ) return Number ; } else { @@a3@@ += @@v6@@ ; @@a4@@ -= @@v6@@ ; } } return Number L ; }", "source": [{"n": "v6", "t": {"T": 1, "n": "int", "s": 4}, "location": "r104"}, {"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r24"}, {"n": "a1", "t": {"T": 9, "n": "__int64 (__fastcall *)(_QWORD, __int64, _QWORD)"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r64"}]}