Function at 0x40f918
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4220ae
call fcn.004175a4
mov eax, 0x118c
call fcn.004176a0
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 0x40fde2
cmp dword [0x42d774], ebx
jne 0x40fde2
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.0040fe8b
test eax, eax
je 0x40f98a
push 0x42bab4
jmp 0x40f990
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 0x40f9db
push dword [esi + 0xa8]
push ebx
push edi
push 0x64
push 0xbba
push dword [esi + 0x327c]
call fcn.00406b29
jmp 0x40f9fc
push 0
lea eax, [ebp - 0x10]
push ebx
push eax
push 0x64
push 0xbba
push dword [esi + 0x327c]
call fcn.00406b29
mov ecx, dword [edi]
mov dword [0x42e1a4], ecx
xor edi, edi
cmp eax, edi
jne 0x40fde2
mov ecx, esi
call fcn.0040f62c
test eax, eax
je 0x40fde2
cmp dword [0x42ea60], edi
jne 0x40fabe
cmp dword [esi + 0x14b4], edi
jne 0x40fabe
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 [0x42e1a4]
call fcn.0041041b
test eax, eax
jne 0x40fb15
lea eax, [ebp - 0x494]
xor edi, edi
push eax
push edi
mov ecx, esi
call fcn.0041041b
test eax, eax
jne 0x40fb17
mov ecx, esi
call fcn.0040fe8b
test eax, eax
je 0x40fa97
push edi
push edi
push dword [0x4236e4]
mov ecx, esi
call fcn.004100a5
jmp 0x40faba
push dword [0x4236e4]
lea eax, [ebp - 0x494]
push 0x42e65c
push eax
call fcn.0041200c
lea eax, [ebp - 0x494]
push eax
call fcn.00412144
test eax, eax
jne 0x40fb17
mov dword [ebp - 0x10], edi
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push dword [0x42e1a4]
call fcn.0041268a
pop ecx
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
jne 0x40fb3b
lea eax, [ebp - 0x598]
push eax
push dword [0x42e1a4]
call fcn.004128f6
pop ecx
mov eax, 0x4b8
pop ecx
mov dword [0x42ea5c], eax
lea ecx, [ebp - 0x598]
push ecx
push eax
call fcn.0041180a
pop ecx
pop ecx
jmp 0x40fbd5
xor edi, edi
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x494]
push eax
call fcn.00401087
cmp eax, edi
jne 0x40fabe
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.00410520
mov dword [ebp - 0x10], eax
jmp 0x40fac1
mov edi, 0x400
lea eax, [esi + 0xcac]
push edi
push 0
push eax
call fcn.00416f30
add esp, 0xc
cmp dword [ebx], 1
jbe 0x40fc15
cmp dword [esi + 0x14bc], 5
je 0x40fc15
push edi
lea eax, [ebp - 0x494]
push 0
push eax
call fcn.00416f30
lea eax, [ebp - 0x494]
push 0xa
push eax
push dword [esi + 0x14b8]
call fcn.0041846c
push dword [0x4281ec]
lea eax, [ebp - 0x494]
push eax
call fcn.00417030
add esp, 0x20
lea eax, [ebp - 0x494]
mov ecx, esi
push eax
call fcn.0040fea8
test eax, eax
lea eax, [ebp - 0x494]
push eax
je 0x40fc07
lea eax, [esi + 0xcac]
push 0x42bab4
push eax
call fcn.0041200c
mov ecx, esi
call fcn.00410037
test eax, eax
jne 0x40fbe8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004018fc
xor eax, eax
jmp 0x40fdf2
push 1
lea eax, [esi + 0xcac]
pop ebx
mov ecx, esi
push ebx
push eax
push str._LangTransform
call fcn.004102a0
mov dword [esi + 0xa0], ebx
jmp 0x40fc15
lea eax, [esi + 0xcac]
push eax
call fcn.00417020
pop ecx
pop ecx
cmp dword [ebp - 0x10], 0
mov ebx, 0x3e8
jne 0x40fc66
push 0x42db88
push 0x3e9
push dword [0x4236ec]
push dword [0x4236e0]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 4
mov ebx, eax
call fcn.00416f18
pop ecx
mov dword [ebp - 0x30], eax
test eax, eax
mov byte [ebp - 4], 1
je 0x40fc5a
mov ecx, eax
call fcn.004063da
jmp 0x40fc5c
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.00406406
lea eax, [ebp - 0xd98]
push edi
push eax
push 0x44e
call fcn.004118ea
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
lea eax, [ebp - 0xd98]
push eax
call edi
test eax, eax
je 0x40fcd7
mov ebx, 0x4271e4
lea eax, [ebp - 0xd98]
push ebx
push eax
call fcn.004180a0
pop ecx
test eax, eax
pop ecx
je 0x40fcd7
inc eax
inc eax
push eax
mov dword [ebp - 0x10], eax
call edi
test eax, eax
je 0x40fcd7
push ebx
push dword [ebp - 0x10]
call fcn.004180a0
pop ecx
test eax, eax
pop ecx
jne 0x40fced
mov eax, 0x486
push eax
mov dword [0x42ea5c], eax
call fcn.0041180a
pop ecx
jmp 0x40fde2
lea eax, [ebp - 0x94]
push eax
push 1
pop ebx
push ebx
call fcn.00412988
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.0040fe68
mov ecx, dword [esi + 0x2e40]
mov edi, 0x3e8
push edi
call fcn.004066d2
test eax, eax
je 0x40fd4e
mov esi, ebx
jmp 0x40fde4
push esi
push 0x44f
lea ecx, [ebp - 0x20]
call fcn.0040e2ba
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.0040e2fd
test eax, eax
je 0x40fdd6
cmp dword [0x42d774], 0
jne 0x40fdd6
mov ecx, esi
call fcn.0041023b
test eax, eax
je 0x40fdd6
mov ecx, dword [esi + 0x2e40]
push edi
call fcn.004066d2
test eax, eax
jne 0x40fe1b
push esi
push 0x451
lea ecx, [ebp - 0x7c]
call fcn.00407885
mov ecx, dword [esi + 0x2e40]
push edi
mov byte [ebp - 4], 3
call fcn.004066d2
test eax, eax
jne 0x40fe0f
cmp dword [0x42d774], eax
jne 0x40fe0f
lea ecx, [ebp - 0x7c]
call fcn.004083a3
test eax, eax
jne 0x40fe01
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 2
call fcn.004078da
and byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0040e2f2
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.00406464
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 2
call fcn.004078da
and byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0040e2f2
jmp 0x40fd47