Function at 0x4f0570
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x414
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
xor ebx, ebx
cmp dword [0x74b6c4], ebx
jne 0x4f095c
push 0x103
lea eax, [esp + 9]
push ebx
push eax
mov byte [esp + 0x10], bl
call fcn.005dfd60
push ebx
push 0x104
lea ecx, [esp + 0x18]
push ecx
push 0x60c81c
push 0x640380
push 0x60c810
call fcn.004edfd0
lea edx, [esp + 0x28]
push 0x6470cc
push edx
call fcn.004dd620
add esp, 0x2c
test eax, eax
je 0x4f094c
push 0x103
lea eax, [esp + 0x10d]
push ebx
push eax
mov byte [esp + 0x114], bl
call fcn.005dfd60
push 0x103
lea ecx, [esp + 0x21d]
push ebx
push ecx
mov byte [esp + 0x224], bl
call fcn.005dfd60
add esp, 0x18
lea edx, [esp + 0x108]
push edx
call fcn.004ef9d0
cmp eax, 1
je 0x4f0636
lea eax, [esp + 0x108]
push eax
call fcn.004efb60
lea ecx, [esp + 0x108]
push ecx
call fcn.004e2520
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0x218]
push str._sLAN_sCP.INI
push ecx
call fcn.005dfb23
push 1
push ebx
push ebx
push ebx
lea edx, [esp + 0x230]
push ebx
push edx
call fcn.004e8950
add esp, 0x2c
test eax, eax
jne 0x4f06dd
push 0x103
lea eax, [esp + 0x315]
push ebx
push eax
mov byte [esp + 0x31c], bl
call fcn.005dfd60
add esp, 0xc
lea ecx, [esp + 0x20c]
push ecx
push 0x104
lea edx, [esp + 0x318]
push edx
push 0x60c81c
push str.CodePage
push str.general
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x310]
push eax
call fcn.005e0909
add esp, 4
mov dword [0x74b6c0], eax
jmp 0x4f0952
lea ecx, [esp + 4]
push str.chineseSimplified
push ecx
call fcn.004dd620
add esp, 8
test eax, eax
jne 0x4f0702
mov dword [0x74b6c0], 0x3a8
jmp 0x4f0952
lea edx, [esp + 4]
push str.korean
push edx
call fcn.004dd620
add esp, 8
test eax, eax
jne 0x4f0727
mov dword [0x74b6c0], 0x3b5
jmp 0x4f0952
lea eax, [esp + 4]
push str.chinese
push eax
call fcn.004dd620
add esp, 8
test eax, eax
jne 0x4f074c
mov dword [0x74b6c0], 0x3b6
jmp 0x4f0952
lea ecx, [esp + 4]
push str.croatian
push ecx
call fcn.004dd620
add esp, 8
test eax, eax
je 0x4f0940
lea edx, [esp + 4]
push str.polish
push edx
call fcn.004dd620
add esp, 8
test eax, eax
je 0x4f0940
lea eax, [esp + 4]
push str.romanian
push eax
call fcn.004dd620
add esp, 8
test eax, eax
je 0x4f0940
lea ecx, [esp + 4]
push str.russian
push ecx
call fcn.004dd620
add esp, 8
test eax, eax
jne 0x4f07bf
mov dword [0x74b6c0], 0x4e3
jmp 0x4f0952
lea edx, [esp + 4]
push str.greek
push edx
call fcn.004dd620
add esp, 8
test eax, eax
jne 0x4f07e4
mov dword [0x74b6c0], 0x4e5
jmp 0x4f0952
lea eax, [esp + 4]
push str.turkish
push eax
call fcn.004dd620
add esp, 8
test eax, eax
jne 0x4f0809
mov dword [0x74b6c0], 0x4e6
jmp 0x4f0952
lea ecx, [esp + 4]
push str.estonian
push ecx
call fcn.004dd620
add esp, 8
test eax, eax
jne 0x4f082e
mov dword [0x74b6c0], 0x4e9
jmp 0x4f0952
lea edx, [esp + 4]
push str.french
push edx
call fcn.004dd620
add esp, 8
test eax, eax
je 0x4f0934
lea eax, [esp + 4]
push str.finnish
push eax
call fcn.004dd620
add esp, 8
test eax, eax
je 0x4f0934
lea ecx, [esp + 4]
push str.german
push ecx
call fcn.004dd620
add esp, 8
test eax, eax
je 0x4f0934
lea edx, [esp + 4]
push str.italian
push edx
call fcn.004dd620
add esp, 8
test eax, eax
je 0x4f0934
lea eax, [esp + 4]
push str.portuguese
push eax
call fcn.004dd620
add esp, 8
test eax, eax
je 0x4f0934
lea ecx, [esp + 4]
push str.spanish
push ecx
call fcn.004dd620
add esp, 8
test eax, eax
je 0x4f0934
lea edx, [esp + 4]
push str.spanishl
push edx
call fcn.004dd620
add esp, 8
test eax, eax
je 0x4f0934
lea eax, [esp + 4]
push str.Icelandic
push eax
call fcn.004dd620
add esp, 8
test eax, eax
je 0x4f0934
lea ecx, [esp + 4]
push str.Dutch
push ecx
call fcn.004dd620
add esp, 8
test eax, eax
je 0x4f0934
lea edx, [esp + 4]
push str.Norwegian
push edx
call fcn.004dd620
add esp, 8
test eax, eax
je 0x4f0934
lea eax, [esp + 4]
push str.swedish
push eax
call fcn.004dd620
add esp, 8
test eax, eax
jne 0x4f0952
mov dword [0x74b6c0], 0x4e4
jmp 0x4f0952
mov dword [0x74b6c0], 0x4e2
jmp 0x4f0952
mov dword [0x74b6c0], ebx
mov dword [0x74b6c4], 1
mov ecx, dword [esp + 0x414]
mov eax, dword [0x74b6c0]
pop ebx
xor ecx, esp
call fcn.005dfbbe
add esp, 0x414
ret