Function at 0x40f939
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4220de
call fcn.004175e4
mov eax, 0x118c
call fcn.004176e0
push ebx
push esi
mov esi, ecx
push edi
push esi
push 0x452
lea ecx, [ebp - 0x2c]
call fcn.004018c4
xor ebx, ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00401907
test eax, eax
je 0x40fe03
cmp dword [0x42d794], ebx
jne 0x40fe03
and byte [ebp - 0x998], bl
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x997]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, esi
stosb byte es:[edi], al
call fcn.0040feac
test eax, eax
je 0x40f9ab
push 0x42bad4
jmp 0x40f9b1
push dword [esi + 0x3264]
lea eax, [ebp - 0x998]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [esi + 0x14b8], ebx
lea eax, [esi + 0x290c]
lea edi, [esi + 0x14b8]
push eax
lea eax, [ebp - 0x998]
lea ebx, [esi + 0x10ac]
push eax
jne 0x40f9fc
push dword [esi + 0xa8]
push ebx
push edi
push 0x64
push 0xbba
push dword [esi + 0x327c]
call fcn.00406b8e
jmp 0x40fa1d
push 0
lea eax, [ebp - 0x10]
push ebx
push eax
push 0x64
push 0xbba
push dword [esi + 0x327c]
call fcn.00406b8e
mov ecx, dword [edi]
mov dword [0x42e1c4], ecx
xor edi, edi
cmp eax, edi
jne 0x40fe03
mov ecx, esi
call fcn.0040f64d
test eax, eax
je 0x40fe03
cmp dword [0x42ea80], edi
jne 0x40fadf
cmp dword [esi + 0x14b4], edi
jne 0x40fadf
and byte [ebp - 0x494], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x493]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x494]
mov ecx, esi
push eax
push dword [0x42e1c4]
call fcn.0041043c
test eax, eax
jne 0x40fb36
lea eax, [ebp - 0x494]
xor edi, edi
push eax
push edi
mov ecx, esi
call fcn.0041043c
test eax, eax
jne 0x40fb38
mov ecx, esi
call fcn.0040feac
test eax, eax
je 0x40fab8
push edi
push edi
push dword [0x4236e4]
mov ecx, esi
call fcn.004100c6
jmp 0x40fadb
push dword [0x4236e4]
lea eax, [ebp - 0x494]
push 0x42e67c
push eax
call fcn.00412024
lea eax, [ebp - 0x494]
push eax
call fcn.00412186
test eax, eax
jne 0x40fb38
mov dword [ebp - 0x10], edi
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push dword [0x42e1c4]
call fcn.004126cc
pop ecx
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
jne 0x40fb5c
lea eax, [ebp - 0x598]
push eax
push dword [0x42e1c4]
call fcn.00412938
pop ecx
mov eax, 0x4b8
pop ecx
mov dword [0x42ea7c], eax
lea ecx, [ebp - 0x598]
push ecx
push eax
call fcn.00411822
pop ecx
pop ecx
jmp 0x40fbf6
xor edi, edi
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x494]
push eax
call fcn.00401087
cmp eax, edi
jne 0x40fadf
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.00410541
mov dword [ebp - 0x10], eax
jmp 0x40fae2
mov edi, 0x400
lea eax, [esi + 0xcac]
push edi
push 0
push eax
call fcn.00416f70
add esp, 0xc
cmp dword [ebx], 1
jbe 0x40fc36
cmp dword [esi + 0x14bc], 5
je 0x40fc36
push edi
lea eax, [ebp - 0x494]
push 0
push eax
call fcn.00416f70
lea eax, [ebp - 0x494]
push 0xa
push eax
push dword [esi + 0x14b8]
call fcn.004184ac
push dword [0x428204]
lea eax, [ebp - 0x494]
push eax
call fcn.00417070
add esp, 0x20
lea eax, [ebp - 0x494]
mov ecx, esi
push eax
call fcn.0040fec9
test eax, eax
lea eax, [ebp - 0x494]
push eax
je 0x40fc28
lea eax, [esi + 0xcac]
push 0x42bad4
push eax
call fcn.00412024
mov ecx, esi
call fcn.00410058
test eax, eax
jne 0x40fc09
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004018fc
xor eax, eax
jmp 0x40fe13
push 1
lea eax, [esi + 0xcac]
pop ebx
mov ecx, esi
push ebx
push eax
push str._LangTransform
call fcn.004102c1
mov dword [esi + 0xa0], ebx
jmp 0x40fc36
lea eax, [esi + 0xcac]
push eax
call fcn.00417060
pop ecx
pop ecx
cmp dword [ebp - 0x10], 0
mov ebx, 0x3e8
jne 0x40fc87
push 0x42dba8
push 0x3e9
push dword [0x4236ec]
push dword [0x4236e0]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 4
mov ebx, eax
call fcn.00416f58
pop ecx
mov dword [ebp - 0x30], eax
test eax, eax
mov byte [ebp - 4], 1
je 0x40fc7b
mov ecx, eax
call fcn.0040643f
jmp 0x40fc7d
xor eax, eax
and byte [ebp - 4], 0
mov dword [esi + 0x2e40], eax
push dword [ebp - 0x10]
mov ecx, dword [esi + 0x2e40]
push ebx
push esi
push dword [esi + 0x327c]
call fcn.0040646b
lea eax, [ebp - 0xd98]
push edi
push eax
push 0x44e
call fcn.00411902
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
lea eax, [ebp - 0xd98]
push eax
call edi
test eax, eax
je 0x40fcf8
mov ebx, 0x4271e4
lea eax, [ebp - 0xd98]
push ebx
push eax
call fcn.004180e0
pop ecx
test eax, eax
pop ecx
je 0x40fcf8
inc eax
inc eax
push eax
mov dword [ebp - 0x10], eax
call edi
test eax, eax
je 0x40fcf8
push ebx
push dword [ebp - 0x10]
call fcn.004180e0
pop ecx
test eax, eax
pop ecx
jne 0x40fd0e
mov eax, 0x486
push eax
mov dword [0x42ea7c], eax
call fcn.00411822
pop ecx
jmp 0x40fe03
lea eax, [ebp - 0x94]
push eax
push 1
pop ebx
push ebx
call fcn.004129ca
pop ecx
lea eax, [ebp - 0x94]
pop ecx
push eax
lea eax, [esi + 0x4ac]
push eax
lea eax, [ebp - 0xd98]
push eax
lea eax, [ebp - 0x1198]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x1198]
mov ecx, esi
push eax
call fcn.0040fe89
mov ecx, dword [esi + 0x2e40]
mov edi, 0x3e8
push edi
call fcn.00406737
test eax, eax
je 0x40fd6f
mov esi, ebx
jmp 0x40fe05
push esi
push 0x44f
lea ecx, [ebp - 0x20]
call fcn.0040e2db
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.0040e31e
test eax, eax
je 0x40fdf7
cmp dword [0x42d794], 0
jne 0x40fdf7
mov ecx, esi
call fcn.0041025c
test eax, eax
je 0x40fdf7
mov ecx, dword [esi + 0x2e40]
push edi
call fcn.00406737
test eax, eax
jne 0x40fe3c
push esi
push 0x451
lea ecx, [ebp - 0x7c]
call fcn.004078ea
mov ecx, dword [esi + 0x2e40]
push edi
mov byte [ebp - 4], 3
call fcn.00406737
test eax, eax
jne 0x40fe30
cmp dword [0x42d794], eax
jne 0x40fe30
lea ecx, [ebp - 0x7c]
call fcn.00408408
test eax, eax
jne 0x40fe22
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 2
call fcn.0040793f
and byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0040e313
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004018fc
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 - 0x70]
mov dword [esi + 0x3288], eax
call fcn.004064c9
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 2
call fcn.0040793f
and byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0040e313
jmp 0x40fd68