Function at 0x4085b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xaa4
push ebx
push esi
mov esi, 0x90
push edi
push esi
lea eax, [ebp - 0xa0]
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0xc], ebx
call fcn.00415510
or byte [ebp - 0x12], 0xff
or word [ebp - 0x14], 0xffff
push esi
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.00415510
push 0x42538c
lea eax, [ebp - 0x1a4]
push str._sLangRsc.ini
push eax
mov dword [ebp - 0x10], 1
call fcn.00415cc0
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405aaf
add esp, 0x28
test eax, eax
jne 0x408631
lea eax, [ebp - 0x1a4]
push 0x425c0c
push eax
call fcn.00415570
pop ecx
pop ecx
mov edi, 0x800
lea eax, [ebp - 0xaa4]
push edi
mov esi, 0x424ae0
push eax
push esi
push str.DefaultServer
push str.Setting
lea ecx, [ebx + 0x190]
call fcn.0040d8c4
cmp byte [ebp - 0xaa4], 0
je 0x408696
lea eax, [ebp - 0x2a4]
push eax
lea eax, [ebp - 0x5f]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xaa4]
push 3
push eax
push 0x2c
call fcn.00405f05
lea eax, [ebp - 0x2a4]
push eax
call fcn.00415a8d
add esp, 0x1c
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1a4]
mov ebx, str.DownloadServerList
push eax
lea eax, [ebp - 0xaa4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
push esi
push 0
push ebx
call edi
and dword [ebp - 8], 0
cmp byte [ebp - 0xaa4], 0
lea eax, [ebp - 0xaa4]
mov dword [ebp - 4], eax
je 0x408745
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp - 0x2a4]
push 0x100
push eax
push esi
push dword [ebp - 4]
push ebx
call edi
lea eax, [ebp - 0x2a4]
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x298
push eax
lea eax, [ebp - 0x2a4]
push 2
push eax
push 0x3a
call fcn.00405f05
lea eax, [ebp - 0x5f]
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x298
push eax
call fcn.00415bb0
add esp, 0x1c
test eax, eax
jne 0x408722
and dword [ebp - 0x10], eax
inc dword [ebp - 8]
cmp dword [ebp - 8], 0xa
je 0x40873f
mov eax, dword [ebp - 4]
cmp byte [eax], 0
je 0x408736
inc eax
jmp 0x40872e
inc eax
mov dword [ebp - 4], eax
cmp byte [eax], 0
jne 0x4086cc
cmp dword [ebp - 0x10], 0
je 0x40877c
cmp dword [ebp + 0xc], 0
jne 0x40877c
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 0xa0]
push eax
lea eax, [esi + 0x148]
push eax
call fcn.00415570
lea eax, [ebp - 0x5f]
push eax
lea eax, [esi + 0x298]
push eax
call fcn.00415570
mov eax, dword [ebp - 0x1c]
add esp, 0x10
jmp 0x40882b
push 0
call fcn.004165a7
push eax
call fcn.0041657f
pop ecx
pop ecx
call fcn.00416589
push 0xa
and dword [ebp - 8], 0
cdq
pop ecx
idiv ecx
cmp byte [ebp - 0xaa4], 0
lea eax, [ebp - 0xaa4]
mov dword [ebp - 4], eax
mov dword [ebp + 0xc], edx
je 0x4087fb
mov eax, dword [ebp - 0xc]
push dword [ebp - 4]
add eax, 0x148
push eax
call fcn.00415570
pop ecx
lea eax, [ebp - 0x1a4]
pop ecx
push eax
lea eax, [ebp - 0x2a4]
push 0x100
push eax
push esi
push dword [ebp - 4]
push ebx
call edi
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x4087fb
mov eax, dword [ebp - 4]
cmp byte [eax], 0
je 0x4087f2
inc eax
jmp 0x4087ea
inc eax
mov dword [ebp - 4], eax
cmp byte [eax], 0
jne 0x4087af
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 0x1a4]
push eax
lea eax, [esi + 0x298]
push eax
lea eax, [ebp - 0x2a4]
push 2
push eax
push 0x3a
call fcn.00405f05
lea eax, [ebp - 0x1a4]
push eax
call fcn.00415b18
add esp, 0x18
mov dword [esi + 0x3e0], eax
pop edi
pop esi
pop ebx
leave
ret 8