{"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": "main", "code": "void __fastcall __noreturn main ( int @@a1@@ , char * * @@a2@@ , char * * @@a3@@ ) { sub_40205D ( sub_401242 , @@a2@@ , @@a3@@ ) ; sub_4021BD ( ) ; qword_406398 = ( __int64 ) @@a2@@ [ Number ] ; if ( ! qword_406398 ) sub_40135D ( ) ; argv = @@a2@@ + Number ; if ( ! @@a2@@ [ Number ] ) sub_40135D ( ) ; sub_40176B ( ) ; sub_401A36 ( & off_405100 , & off_405120 ) ; sub_401242 ( ) ; }", "source": [{"n": "a3", "t": {"T": 3, "t": "char *"}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "char *"}, "location": "r64"}]} {"name": "sub_401F52", "code": "__int64 __fastcall sub_401F52 ( unsigned __int8 * @@a1@@ , unsigned __int8 * @@a2@@ ) { unsigned __int8 * v4 ; unsigned __int8 v5 ; unsigned __int8 v6 ; unsigned __int8 * v7 ; unsigned __int8 v8 ; unsigned __int8 v9 ; do { v4 = @@a1@@ ++ ; v5 = * v4 - Number ; if ( v5 > Number ) v6 = * v4 ; else v6 = v5 + Number ; v7 = @@a2@@ ++ ; v8 = * v7 - Number ; if ( v8 > Number ) v9 = * v7 ; else v9 = v8 + Number ; } while ( v6 == v9 && v6 ) ; return v6 - ( unsigned int ) v9 ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "unsigned __int8"}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "unsigned __int8"}, "location": "r64"}]} {"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_4023AD", "code": "__int64 __fastcall sub_4023AD ( __int64 @@a1@@ , __int64 @@a2@@ ) { unsigned int @@v2@@ ; @@v2@@ = sub_402B23 ( @@a2@@ ) ; return sub_4023EA ( @@a1@@ , @@a2@@ , @@v2@@ ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r8"}]} {"name": "sub_402764", "code": "__int64 __fastcall sub_402764 ( __int64 @@a1@@ , __int64 @@a2@@ , signed int @@a3@@ ) { __int64 @@result@@ ; int @@v5@@ ; if ( * ( int * ) ( @@a1@@ + Number ) > Number ) return sub_4025EF ( @@a1@@ , @@a2@@ , @@a3@@ ) ; if ( @@a3@@ >= * ( _DWORD * ) ( @@a1@@ + Number ) ) return sub_402596 ( * ( __int64 ( __fastcall * * ) ( _QWORD , __int64 , _QWORD ) ) ( @@a1@@ + Number ) , * ( _DWORD * ) ( @@a1@@ + Number ) , @@a2@@ , @@a3@@ ) ; @@v5@@ = sub_402655 ( ( _QWORD * ) @@a1@@ ) ; if ( @@v5@@ > Number ) @@result@@ = sub_4025EF ( @@a1@@ , @@a2@@ , @@a3@@ ) ; else @@result@@ = ( unsigned int ) @@v5@@ ; return @@result@@ ; }", "source": [{"n": "v5", "t": {"T": 1, "n": "int", "s": 4}, "location": "r120"}, {"n": "a3", "t": {"T": 1, "n": "signed int", "s": 4}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}]} {"name": "sub_402B7F", "code": "_BYTE * __fastcall sub_402B7F ( _BYTE * @@a1@@ , char @@a2@@ ) { _BYTE * @@i@@ ; for ( @@i@@ = @@a1@@ ; * @@i@@ ; ++ @@i@@ ) { if ( @@a2@@ == * @@i@@ ) break ; if ( * ++ @@i@@ ) { if ( @@a2@@ != * @@i@@ ) { if ( * ++ @@i@@ ) { if ( @@a2@@ != * @@i@@ ) { if ( * ++ @@i@@ ) { if ( @@a2@@ != * @@i@@ ) continue ; } } } } } break ; } return ( _BYTE * ) ( @@i@@ - @@a1@@ ) ; }", "source": [{"n": "i", "t": {"T": 3, "t": "_BYTE"}, "location": "r32"}, {"n": "a1", "t": {"T": 3, "t": "_BYTE"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "char", "s": 1}, "location": "r64"}]}