Function at 0x40cedb
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x41ee0e
call fcn.00414644
mov eax, 0x1188
call fcn.00414820
push ebx
push esi
mov esi, ecx
push edi
push esi
push 0x452
lea ecx, [ebp - 0x2c]
call fcn.00401754
xor ebx, ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00401797
test eax, eax
je 0x40d37c
cmp dword [0x428498], ebx
jne 0x40d37c
and byte [ebp - 0x994], bl
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x993]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, esi
stosb byte es:[edi], al
call fcn.0040d425
test eax, eax
je 0x40cf4d
push 0x4276d4
jmp 0x40cf53
push dword [esi + 0x2cbc]
lea eax, [ebp - 0x994]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [esi + 0x141c], ebx
lea edi, [esi + 0x141c]
lea eax, [ebp - 0x994]
lea ebx, [esi + 0x1010]
push eax
jne 0x40cf94
push dword [esi + 0xc]
push ebx
push edi
push 0x65
push 0xbba
push dword [esi + 0x2cd4]
call fcn.00406053
jmp 0x40cfb5
push 0
lea eax, [ebp - 0x10]
push ebx
push eax
push 0x65
push 0xbba
push dword [esi + 0x2cd4]
call fcn.00406053
mov ecx, dword [edi]
mov dword [0x428acc], ecx
xor ecx, ecx
cmp eax, ecx
jne 0x40d37c
cmp dword [0x429380], ecx
jne 0x40d08c
cmp dword [esi + 0x1418], ecx
jne 0x40d08c
and byte [ebp - 0x490], cl
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x48f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x490]
mov ecx, esi
push eax
push dword [0x428acc]
call fcn.0040d9bb
test eax, eax
jne 0x40d061
lea eax, [ebp - 0x490]
xor edi, edi
push eax
push edi
mov ecx, esi
call fcn.0040d9bb
test eax, eax
jne 0x40d063
mov ecx, esi
call fcn.0040d425
test eax, eax
je 0x40d03c
push edi
push edi
push dword [0x41f694]
mov ecx, esi
call fcn.0040d670
test eax, eax
jne 0x40d063
jmp 0x40d077
push dword [0x41f694]
lea eax, [ebp - 0x490]
push 0x428f7c
push eax
call fcn.0040f30d
lea eax, [ebp - 0x490]
push eax
call fcn.0040f445
jmp 0x40d036
xor edi, edi
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x490]
push eax
call fcn.00401087
cmp eax, edi
je 0x40d07c
mov dword [ebp - 0x10], edi
jmp 0x40d08f
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.0040dac0
mov dword [ebp - 0x10], eax
jmp 0x40d08f
mov dword [ebp - 0x10], ecx
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push dword [0x428acc]
call fcn.0040f98b
pop ecx
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
jne 0x40d0e3
lea eax, [ebp - 0x594]
push eax
push dword [0x428acc]
call fcn.0040fbe2
pop ecx
mov eax, 0x4b8
pop ecx
mov dword [0x42937c], eax
lea ecx, [ebp - 0x594]
push ecx
push eax
call fcn.0040ebaf
pop ecx
pop ecx
jmp 0x40d17d
mov edi, 0x400
lea eax, [esi + 0xc10]
push edi
push 0
push eax
call fcn.00413fc0
add esp, 0xc
cmp dword [ebx], 1
jbe 0x40d1af
cmp dword [esi + 0x1420], 5
je 0x40d1af
push edi
lea eax, [ebp - 0x490]
push 0
push eax
call fcn.00413fc0
lea eax, [ebp - 0x490]
push 0xa
push eax
push dword [esi + 0x141c]
call fcn.004154fc
push dword [0x423f70]
lea eax, [ebp - 0x490]
push eax
call fcn.004140c0
add esp, 0x20
lea eax, [ebp - 0x490]
mov ecx, esi
push eax
call fcn.0040d442
test eax, eax
lea eax, [ebp - 0x490]
push eax
je 0x40d1a1
lea ebx, [esi + 0xc10]
push 0x4276d4
push ebx
call fcn.0040f30d
mov ecx, esi
call fcn.0040d602
test eax, eax
jne 0x40d190
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040178c
xor eax, eax
jmp 0x40d38c
push 1
push ebx
push str._LangTransform
mov ecx, esi
call fcn.0040d840
jmp 0x40d1af
lea eax, [esi + 0xc10]
push eax
call fcn.004140b0
pop ecx
pop ecx
cmp dword [ebp - 0x10], 0
mov ebx, 0x3e8
jne 0x40d200
push 0x4284b0
push 0x3e9
push dword [0x41f69c]
push dword [0x41f690]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 4
mov ebx, eax
call fcn.004141c7
pop ecx
mov dword [ebp - 0x30], eax
test eax, eax
mov byte [ebp - 4], 1
je 0x40d1f4
mov ecx, eax
call fcn.00405904
jmp 0x40d1f6
xor eax, eax
and byte [ebp - 4], 0
mov dword [esi + 0x289c], eax
push dword [ebp - 0x10]
mov ecx, dword [esi + 0x289c]
push ebx
push esi
push dword [esi + 0x2cd4]
call fcn.00405930
lea eax, [ebp - 0xd94]
push edi
push eax
push 0x44e
call fcn.0040ec8f
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
lea eax, [ebp - 0xd94]
push eax
call edi
test eax, eax
je 0x40d271
mov ebx, 0x423180
lea eax, [ebp - 0xd94]
push ebx
push eax
call fcn.00415130
pop ecx
test eax, eax
pop ecx
je 0x40d271
inc eax
inc eax
push eax
mov dword [ebp - 0x10], eax
call edi
test eax, eax
je 0x40d271
push ebx
push dword [ebp - 0x10]
call fcn.00415130
pop ecx
test eax, eax
pop ecx
jne 0x40d287
mov eax, 0x486
push eax
mov dword [0x42937c], eax
call fcn.0040ebaf
pop ecx
jmp 0x40d37c
lea eax, [ebp - 0x90]
push eax
push 1
pop ebx
push ebx
call fcn.0040fc74
pop ecx
lea eax, [ebp - 0x90]
pop ecx
push eax
lea eax, [esi + 0x410]
push eax
lea eax, [ebp - 0xd94]
push eax
lea eax, [ebp - 0x1194]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x1194]
mov ecx, esi
push eax
call fcn.0040d402
mov ecx, dword [esi + 0x289c]
mov edi, 0x3e8
push edi
call fcn.00405bfc
test eax, eax
je 0x40d2e8
mov esi, ebx
jmp 0x40d37e
push esi
push 0x44f
lea ecx, [ebp - 0x20]
call fcn.0040bdc7
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.0040be0a
test eax, eax
je 0x40d370
cmp dword [0x428498], 0
jne 0x40d370
mov ecx, esi
call fcn.0040d806
test eax, eax
je 0x40d370
mov ecx, dword [esi + 0x289c]
push edi
call fcn.00405bfc
test eax, eax
jne 0x40d3b5
push esi
push 0x451
lea ecx, [ebp - 0x78]
call fcn.004072f6
mov ecx, dword [esi + 0x289c]
push edi
mov byte [ebp - 4], 3
call fcn.00405bfc
test eax, eax
jne 0x40d3a9
cmp dword [0x428498], eax
jne 0x40d3a9
lea ecx, [ebp - 0x78]
call fcn.00407353
test eax, eax
jne 0x40d39b
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 2
call fcn.00407348
and byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0040bdff
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040178c
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov eax, dword [ebp - 0x6c]
mov dword [esi + 0x2ce0], eax
call fcn.0040598e
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 2
call fcn.00407348
and byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0040bdff
jmp 0x40d2e1