{"name": "sub_4022C9", "code": "_BOOL8 __fastcall sub_4022C9 ( __int64 @@a1@@ , int @@a2@@ ) { unsigned int @@v2@@ ; unsigned int v3 ; _BOOL8 result ; if ( * ( _QWORD * ) @@a1@@ ) { @@v2@@ = * ( _DWORD * ) ( @@a1@@ + Number ) ; v3 = * ( _DWORD * ) ( @@a1@@ + Number ) + @@a2@@ ; if ( v3 <= @@v2@@ ) { result = Number L ; } else { * ( _DWORD * ) ( @@a1@@ + Number ) = ( v3 >> Number ) + v3 + Number ; if ( ( unsigned int ) sub_4024FF ( @@a1@@ , @@v2@@ , * ( unsigned int * ) ( @@a1@@ + Number ) ) ) { result = Number L ; } else { * ( _DWORD * ) ( @@a1@@ + Number ) = @@v2@@ ; result = Number L ; } } } else { * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = @@a2@@ ; * ( _QWORD * ) @@a1@@ = sub_40245F ( * ( unsigned int * ) ( @@a1@@ + Number ) ) ; result = * ( _QWORD * ) @@a1@@ != Number L ; } return result ; }", "source": [{"n": "v2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r104"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}]}
{"name": "sub_401A36", "code": "__int64 __fastcall sub_401A36 ( __int64 @@a1@@ , __int64 @@a2@@ ) { _BYTE * @@i@@ ; unsigned int v4 ; int v5 ; int j ; while ( ( unsigned int ) sub_4023AD ( & qword_405230 , & unk_403103 ) ) { while ( Number ) { if ( ! ( unsigned int ) sub_4022C9 ( & qword_405230 , Number L ) ) return Number ; v4 = sub_402764 ( @@a1@@ , qword_405230 + ( unsigned int ) dword_405238 , Number L ) ; if ( v4 != Number ) return v4 ; if ( * ( _BYTE * ) ( ( unsigned int ) dword_405238 + qword_405230 ) == Number ) break ; ++ dword_405238 ; } if ( dword_405238 && * ( _BYTE * ) ( ( unsigned int ) ( dword_405238 - Number ) + qword_405230 ) == Number ) -- dword_405238 ; * ( _BYTE * ) ( ( unsigned int ) dword_405238 + qword_405230 ) = Number ; v5 = sub_402B7F ( qword_405230 , Number L ) ; for ( @@i@@ = ( _BYTE * ) ( qword_405230 + v5 ) ; * @@i@@ == Number ; ++ @@i@@ ) ; * ( _BYTE * ) ( qword_405230 + v5 ) = Number ; for ( j = Number ; * ( _QWORD * ) ( Number L * j + @@a2@@ ) && ( unsigned int ) sub_401F52 ( * ( _QWORD * ) ( Number L * j + @@a2@@ ) , qword_405230 ) ; ++ j ) ; ( * ( void ( __fastcall * * ) ( _BYTE * ) ) ( Number L * j + @@a2@@ + Number ) ) ( @@i@@ ) ; if ( * ( _QWORD * ) ( Number L * j + @@a2@@ + Number ) ) ( * ( void ( * * ) ( void ) ) ( Number L * j + @@a2@@ + Number ) ) ( ) ; } return Number ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "i", "t": {"T": 3, "t": "_BYTE"}, "location": "s16"}]} {"name": "sub_402360", "code": "__int64 __fastcall sub_402360 ( __int64 @@a1@@ , _BYTE * @@a2@@ ) { __int64 @@v3@@ ; unsigned int @@v4@@ ; if ( ! sub_4022C9 ( @@a1@@ , Number ) ) return Number L ; @@v3@@ = * ( _QWORD * ) @@a1@@ ; @@v4@@ = * ( _DWORD * ) ( @@a1@@ + Number ) ; * ( _DWORD * ) ( @@a1@@ + Number ) = @@v4@@ + Number ; * ( _BYTE * ) ( @@v3@@ + @@v4@@ ) = * @@a2@@ ; return Number L ; }", "source": [{"n": "v3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "_BYTE"}, "location": "r64"}, {"n": "v4", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r8"}]} {"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_4024FF", "code": "__int64 __fastcall sub_4024FF ( void * * @@a1@@ , unsigned int @@a2@@ , int @@a3@@ ) { __int64 @@v4@@ ; @@v4@@ = sub_40245F ( @@a3@@ ) ; if ( ! @@v4@@ ) return Number L ; sub_402BF8 ( @@v4@@ , @@a2@@ , * @@a1@@ ) ; sub_4024CD ( * @@a1@@ ) ; * @@a1@@ = ( void * ) @@v4@@ ; return Number L ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "int", "s": 4}, "location": "r16"}, {"n": "a1", "t": {"T": 3, "t": "void *"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r64"}, {"n": "v4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]}