Function at 0x411520
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x427b4a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x45c
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esp + 0x494]
xor ebx, ebx
mov ebp, 0x10
cmp eax, ebp
mov eax, dword [esp + 0x480]
mov dword [esp + 0x474], ebx
jae 0x411568
lea eax, [esp + 0x480]
push eax
push 0xd3
push esi
call fcn.0041cd00
mov eax, dword [esi + 0x3c]
add esp, 0xc
cmp eax, ebp
jb 0x411583
mov eax, dword [esi + 0x28]
jmp 0x411586
lea eax, [esi + 0x28]
push eax
push 0xf0
push esi
call fcn.0041cd00
mov eax, dword [esi + 0x60]
push eax
lea ecx, [esp + 0x74]
push ecx
call fcn.00415540
add esp, 0x14
cmp dword [eax + 0x18], ebp
mov byte [esp + 0x474], 1
jb 0x4115b5
mov eax, dword [eax + 4]
jmp 0x4115b8
add eax, 4
push eax
push 0xdb
push esi
call fcn.0041cd00
mov eax, dword [esp + 0x88]
add esp, 0xc
cmp eax, ebp
mov byte [esp + 0x474], 0
jb 0x4115e7
mov edx, dword [esp + 0x68]
push edx
call fcn.0041e69d
add esp, 4
cmp dword [esi + 0x58], ebp
jb 0x4115f1
mov eax, dword [esi + 0x44]
jmp 0x4115f4
lea eax, [esi + 0x44]
push eax
push 0xd5
push esi
call fcn.0041cd00
add esp, 0xc
push ebx
mov edi, 0xf
push 0x42a46c
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], 0
call fcn.00401b80
push ebx
push 0x42a46c
lea ecx, [esp + 0x34]
mov byte [esp + 0x47c], 2
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], 0
call fcn.00401b80
mov eax, dword [esi + 0x5c]
test eax, eax
mov bl, 3
mov byte [esp + 0x474], bl
je 0x411795
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0xa0], esp
push 4
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], 0
push str._04X
mov byte [ecx + 4], 0
call fcn.00401b80
lea eax, [esp + 0x68]
push eax
call fcn.0041b820
add esp, 0x24
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x480], 4
call fcn.00401310
cmp dword [esp + 0x60], ebp
mov byte [esp + 0x474], bl
jb 0x4116c0
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0041e69d
add esp, 4
lea edx, [esp + 0x48]
push edx
mov ecx, 0x436438
call fcn.0041a420
push str.langpack.ini
push eax
lea eax, [esp + 0x6c]
push eax
mov byte [esp + 0x480], 5
call fcn.00401510
add esp, 0xc
cmp dword [esp + 0x60], ebp
mov byte [esp + 0x474], 7
jb 0x411705
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0041e69d
add esp, 4
cmp dword [esp + 0x7c], ebp
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
jae 0x411724
lea ecx, [esp + 0x68]
cmp dword [esp + 0x28], ebp
mov eax, dword [esp + 0x14]
jae 0x411732
lea eax, [esp + 0x14]
push ecx
push 0x3e8
lea edx, [esp + 0x8c]
push edx
push 0x42a46c
push eax
push str.LANGPACK
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x84]
lea edx, [eax + 1]
jmp 0x411760
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411760
sub eax, edx
push eax
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x34]
call fcn.00401b80
cmp dword [esp + 0x7c], ebp
mov byte [esp + 0x474], bl
jb 0x411795
mov ecx, dword [esp + 0x68]
push ecx
call fcn.0041e69d
add esp, 4
cmp dword [esp + 0x28], ebp
mov eax, dword [esp + 0x14]
jae 0x4117a3
lea eax, [esp + 0x14]
push eax
push 0xf2
push esi
call fcn.0041cd00
mov eax, dword [esp + 0x50]
add esp, 0xc
cmp eax, ebp
mov eax, dword [esp + 0x30]
jae 0x4117c2
lea eax, [esp + 0x30]
push eax
push 0xd4
push esi
call fcn.0041cd00
mov eax, dword [esi + 0x7c]
add esp, 0xc
cmp eax, ebp
jb 0x4117dd
mov eax, dword [esi + 0x68]
jmp 0x4117e0
lea eax, [esi + 0x68]
push eax
push 0xf3
push esi
call fcn.0041cd00
mov ecx, dword [esi + 0x84]
xor ebx, ebx
add esp, 0xc
xor ebp, ebp
xor edi, edi
cmp ecx, ebx
jbe 0x411824
mov eax, dword [esi + 0x8c]
add eax, 8
mov edx, dword [eax]
test dl, 1
je 0x411814
mov ebp, 1
test dl, 2
je 0x41181e
mov edi, 1
add eax, 0xc
dec ecx
jne 0x411808
push ebp
push 0xf4
mov ecx, esi
call fcn.0041cd50
push edi
push 0xf5
mov ecx, esi
call fcn.0041cd50
mov eax, dword [esp + 0x44]
mov esi, 0x10
cmp eax, esi
jb 0x411858
mov edx, dword [esp + 0x30]
push edx
call fcn.0041e69d
add esp, 4
cmp dword [esp + 0x28], esi
mov edi, 0xf
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], 0
jb 0x41187d
mov eax, dword [esp + 0x14]
push eax
call fcn.0041e69d
add esp, 4
cmp dword [esp + 0x494], esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], 0
jb 0x4118a3
mov ecx, dword [esp + 0x480]
push ecx
call fcn.0041e69d
add esp, 4
mov ecx, dword [esp + 0x46c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x468
ret 0x1c