Function at 0x403600
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x404348
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x407198]
xor eax, esp
mov dword [esp + 0xc4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x407198]
xor eax, esp
push eax
lea eax, [esp + 0xdc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xec]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, 0x4072e0
mov dword [esp + 0x1c], ebp
call fcn.00402e30
mov ebx, dword [esp + 0x18]
cmp ebx, 0x4072e0
mov edi, dword [0x4072e4]
je 0x403672
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x1c]
cmp edi, esi
je 0x4036a5
test ebx, ebx
jne 0x403684
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [ebx + 4]
jne 0x40368f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esi + 0x28], 0x10
jb 0x40369d
mov eax, dword [esi + 0x14]
jmp 0x403822
lea eax, [esi + 0x14]
jmp 0x403822
push 0x4052a3
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov eax, dword [0x4072dc]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0xe4], ebx
je 0x4036cf
push ebp
call eax
add esp, 4
push eax
jmp 0x40371c
push 0x8000
push ebx
push 0x4072f0
call sub.MSVCR80.dll_memset
push ebp
lea edx, [esp + 0x68]
push 0x405324
push edx
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x18
push str.._misc_res_text.ini
push 0x8000
push 0x4072f0
push 0x4052a3
lea eax, [esp + 0x68]
push eax
push str.Text
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x4072f0
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov eax, dword [esp + 0x34]
cmp eax, ebx
mov edi, 0x10
je 0x40379a
cmp dword [esp + 0x38], edi
mov ecx, dword [esp + 0x24]
jae 0x403741
lea ecx, [esp + 0x24]
cmp byte [ecx], 0x22
jne 0x40375c
push 0x4052a3
push 1
push ebx
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::replace_unsigned_int__unsigned_int__char_const__]
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x40379a
lea esi, [eax - 1]
cmp esi, eax
jbe 0x403771
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x38], edi
mov ecx, dword [esp + 0x24]
jae 0x40377f
lea ecx, [esp + 0x24]
cmp byte [ecx + esi], 0x22
jne 0x40379a
push 0x4052a3
push 1
add eax, 0xffffffff
push eax
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::replace_unsigned_int__unsigned_int__char_const__]
cmp dword [esp + 0x38], edi
mov edi, dword [esp + 0x24]
jae 0x4037a8
lea edi, [esp + 0x24]
lea ecx, [esp + 0x3c]
call fcn.00402700
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, 0x4072e0
mov byte [esp + 0xec], 1
mov dword [esp + 0x1c], ebp
call fcn.00403440
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea eax, [esp + 0x14]
push eax
mov ecx, 0x4072e0
mov dword [esp + 0x18], ebp
call fcn.00403440
cmp dword [eax + 0x18], 0x10
jb 0x4037f7
mov esi, dword [eax + 4]
jmp 0x4037fa
lea esi, [eax + 4]
lea ecx, [esp + 0x3c]
mov byte [esp + 0xe4], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x20]
mov dword [esp + 0xe4], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0xdc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.00403893
add esp, 0xd4
ret