Function at 0x432109
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x532e88
call fcn.0050bac0
sub esp, 0x234
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x10]
and byte [esi + 0x40a], 0
call sub.MFC42.DLL_CString::CString
and dword [ebp - 4], 0
lea edi, [esi + 0x30a]
push edi
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::operator_1
push str.file:____
push 0x57fabc
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Replace
push 0x57fab8
push 0x57fab4
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Replace
push 0x100
push dword [ebp - 0x10]
push edi
call fcn.00508488
push 0x104
lea eax, [ebp - 0x240]
push 0
push eax
call sub.MSVCRT.dll_memset
mov ebx, dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x18
lea eax, [ebp - 0x240]
push edi
push str._s_data_main_start.dat
push 0x103
push eax
call ebx
add esp, 0x10
mov ecx, esi
push 0
push 0x50000000
push 0
call sub.MFC42.DLL_CWnd::ModifyStyle
lea eax, [ebp - 0x240]
lea ecx, [esi + 0x60]
push eax
call fcn.0049517d
push edi
push str.PATH
mov ecx, esi
call fcn.004329db
mov ecx, esi
call fcn.00432d9a
test al, al
je 0x4324c6
lea ecx, [esi + 0x424]
call fcn.00494f57
push 0x10
lea eax, [ebp - 0x2c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edi, 0x57e4c4
push dword [esi + 0x200]
lea eax, [ebp - 0x2c]
push edi
push 0xf
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
push str.CURWORLD
call fcn.004329db
push 0x10
lea eax, [ebp - 0x2c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2c]
push dword [esi + 0x204]
push edi
push 0xf
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
push str.CURSERVER
call fcn.004329db
and byte [ebp - 0xfc], 0
push 0x20
pop ecx
xor eax, eax
and byte [ebp - 0x13c], al
lea edi, [ebp - 0xfb]
rep stosd dword es:[edi], eax
push 0xf
lea edi, [ebp - 0x13b]
pop ecx
and byte [ebp - 0x78], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0xf
xor eax, eax
pop ecx
lea edi, [ebp - 0x77]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp byte [esi + 0x208], 0
stosb byte es:[edi], al
lea eax, [esi + 0x208]
mov edi, 0x81
jne 0x4322f6
push edi
lea eax, [ebp - 0xfc]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0xfc]
push 0x54ab58
push edi
push eax
push 0x58ea40
push str.AccountRecord
push str.Account
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4322f0
lea eax, [ebp - 0xfc]
push edi
push eax
lea eax, [esi + 0x208]
push eax
call fcn.00508488
add esp, 0xc
lea eax, [esi + 0x208]
push eax
push str.LOGINUSER
mov ecx, esi
call fcn.004329db
push 0x54ab58
lea eax, [ebp - 0x2c]
push 0xf
push eax
push 0x57e4c0
push str.AccountNum
push str.AccountList
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov edx, dword [esi + 0xd0]
pop ecx
lea ecx, [esi + 0xd0]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 4]
push eax
push edx
call fcn.0040584b
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x432351
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
push eax
jge 0x43246f
push str.Account_d
lea eax, [ebp - 0x13c]
push 0x3f
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0xfc]
push 0x54ab58
push edi
push eax
lea eax, [ebp - 0x13c]
push 0x58ea40
push eax
push str.AccountList
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [ebp - 0x14]
lea eax, [ebp - 0x78]
push str.ACCOUNT_d
push 0x3f
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0xfc]
mov ecx, esi
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.004329db
lea eax, [ebp - 0x15]
lea ecx, [ebp - 0x38]
push eax
lea eax, [ebp - 0xfc]
push eax
mov byte [ebp - 4], 1
call fcn.004027dc
lea eax, [ebp - 0x38]
lea ecx, [esi + 0xd0]
push eax
mov byte [ebp - 4], 2
call fcn.0040cc8a
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.00402735
mov eax, dword [ebp - 0x1c]
and byte [ebp - 4], 0
dec eax
cmp dword [ebp - 0x14], eax
jne 0x43248f
cmp byte [esi + 0x208], 0
lea eax, [esi + 0x208]
jne 0x432467
push 0x54ab58
push edi
push eax
push 0x58ea40
push str.AccountRecord
push str.Account
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp dword [esi + 0x200], 0xffffffff
je 0x43244a
cmp dword [esi + 0x204], 0xffffffff
je 0x43244a
cmp byte [esi + 0x208], 0
lea eax, [esi + 0x208]
jne 0x432467
lea eax, [ebp - 0xfc]
push edi
push eax
lea eax, [esi + 0x208]
push eax
call fcn.00508488
add esp, 0xc
lea eax, [ebp - 0xfc]
push eax
push str.LOGINUSER
jmp 0x432488
push str.ACCOUNT_d
lea eax, [ebp - 0x78]
push 0x3f
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x78]
push 0x58ea40
push eax
mov ecx, esi
call fcn.004329db
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xa
jl 0x43234e
cmp byte [esi + 0xb0], 0
lea edi, [esi + 0xb0]
je 0x4324bf
push 0x57e75c
push str.RETURNLOGIN
mov ecx, esi
call fcn.004329db
and byte [edi], 0
mov ecx, esi
call fcn.004335d9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0050b818
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret