Function at 0x431975
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x519a6c
call fcn.004efe80
sub esp, 0x220
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x10]
and byte [esi + 0x4d8], 0
call sub.MFC42.DLL_CString::CString
and dword [ebp - 4], 0
lea edi, [esi + 0x3d8]
push edi
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::operator_1
push str.file:____
push 0x55c62c
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Replace
push 0x55c628
push 0x55c624
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Replace
push 0x100
push dword [ebp - 0x10]
push edi
call fcn.004ec860
push 0x104
lea eax, [ebp - 0x22c]
push 0
push eax
call sub.MSVCRT.dll_memset
mov ebx, dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x18
lea eax, [ebp - 0x22c]
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 - 0x22c]
lea ecx, [esi + 0x60]
push eax
call fcn.0047f37e
push edi
push str.PATH
mov ecx, esi
call fcn.00432225
mov ecx, esi
call fcn.004325db
test al, al
je 0x431cec
lea ecx, [esi + 0x4f4]
call fcn.0047f15e
push 0x10
lea eax, [ebp - 0x28]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edi, 0x55b4ac
push dword [esi + 0x2d0]
lea eax, [ebp - 0x28]
push edi
push 0xf
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
push str.CURWORLD
call fcn.00432225
push 0x10
lea eax, [ebp - 0x28]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x28]
push dword [esi + 0x2d4]
push edi
push 0xf
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
push str.CURSERVER
call fcn.00432225
and byte [ebp - 0xe8], 0
push 0x1f
pop ecx
xor eax, eax
lea edi, [ebp - 0xe7]
and byte [ebp - 0x128], 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 - 0x127]
rep stosd dword es:[edi], eax
and byte [ebp - 0x68], 0
push 0xf
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x67]
cmp byte [esi + 0x2d8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esi + 0x2d8]
jne 0x431b75
push 0x80
lea eax, [ebp - 0xe8]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0xe8]
push 0x52c840
push 0x80
push eax
push 0x56ab48
push str.AccountRecord
push str.Account
call edi
test eax, eax
je 0x431b6f
and byte [ebp - 0x69], 0
lea eax, [ebp - 0xe8]
push 0x80
push eax
lea eax, [esi + 0x2d8]
push eax
call fcn.004ec860
add esp, 0xc
lea eax, [esi + 0x2d8]
push eax
push str.LOGINUSER
mov ecx, esi
call fcn.00432225
push 0x52c840
lea eax, [ebp - 0x28]
push 0xf
push eax
push 0x55b4a8
push str.AccountNum
push str.AccountList
call edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
and dword [ebp - 0x14], 0
pop ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
push eax
jge 0x431c95
push str.Account_d
lea eax, [ebp - 0x128]
push 0x3f
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0xe8]
push 0x52c840
push 0x7f
push eax
lea eax, [ebp - 0x128]
push 0x56ab48
push eax
push str.AccountList
call edi
push dword [ebp - 0x14]
lea eax, [ebp - 0x68]
push str.ACCOUNT_d
push 0x3f
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0xe8]
mov ecx, esi
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00432225
mov eax, dword [ebp - 0x18]
dec eax
cmp dword [ebp - 0x14], eax
jne 0x431cb5
cmp byte [esi + 0x2d8], 0
lea eax, [esi + 0x2d8]
jne 0x431c8d
push 0x52c840
push 0x7f
push eax
push 0x56ab48
push str.AccountRecord
push str.Account
call edi
cmp dword [esi + 0x2d0], 0xffffffff
je 0x431c6c
cmp dword [esi + 0x2d4], 0xffffffff
je 0x431c6c
cmp byte [esi + 0x2d8], 0
lea eax, [esi + 0x2d8]
jne 0x431c8d
lea eax, [ebp - 0xe8]
push 0x80
push eax
lea eax, [esi + 0x2d8]
push eax
call fcn.004ec860
add esp, 0xc
lea eax, [ebp - 0xe8]
push eax
push str.LOGINUSER
jmp 0x431cae
push str.ACCOUNT_d
lea eax, [ebp - 0x68]
push 0x3f
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x68]
push 0x56ab48
push eax
mov ecx, esi
call fcn.00432225
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xa
jl 0x431bb0
cmp byte [esi + 0xb0], 0
lea edi, [esi + 0xb0]
je 0x431ce5
push 0x55b74c
push str.RETURNLOGIN
mov ecx, esi
call fcn.00432225
and byte [edi], 0
mov ecx, esi
call fcn.00432e1a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004efb7a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret