Function at 0x40f919
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4220de
call fcn.004175d4
mov eax, 0x118c
call fcn.004176d0
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 0x40fde3
cmp dword [0x42d774], ebx
jne 0x40fde3
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.0040fe8c
test eax, eax
je 0x40f98b
push 0x42bab4
jmp 0x40f991
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 0x40f9dc
push dword [esi + 0xa8]
push ebx
push edi
push 0x64
push 0xbba
push dword [esi + 0x327c]
call fcn.00406b2a
jmp 0x40f9fd
push 0
lea eax, [ebp - 0x10]
push ebx
push eax
push 0x64
push 0xbba
push dword [esi + 0x327c]
call fcn.00406b2a
mov ecx, dword [edi]
mov dword [0x42e1a4], ecx
xor edi, edi
cmp eax, edi
jne 0x40fde3
mov ecx, esi
call fcn.0040f62d
test eax, eax
je 0x40fde3
cmp dword [0x42ea60], edi
jne 0x40fabf
cmp dword [esi + 0x14b4], edi
jne 0x40fabf
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.0041041c
test eax, eax
jne 0x40fb16
lea eax, [ebp - 0x494]
xor edi, edi
push eax
push edi
mov ecx, esi
call fcn.0041041c
test eax, eax
jne 0x40fb18
mov ecx, esi
call fcn.0040fe8c
test eax, eax
je 0x40fa98
push edi
push edi
push dword [0x4236e4]
mov ecx, esi
call fcn.004100a6
jmp 0x40fabb
push dword [0x4236e4]
lea eax, [ebp - 0x494]
push 0x42e65c
push eax
call fcn.00412012
lea eax, [ebp - 0x494]
push eax
call fcn.00412174
test eax, eax
jne 0x40fb18
mov dword [ebp - 0x10], edi
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push dword [0x42e1a4]
call fcn.004126ba
pop ecx
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
jne 0x40fb3c
lea eax, [ebp - 0x598]
push eax
push dword [0x42e1a4]
call fcn.00412926
pop ecx
mov eax, 0x4b8
pop ecx
mov dword [0x42ea5c], eax
lea ecx, [ebp - 0x598]
push ecx
push eax
call fcn.00411810
pop ecx
pop ecx
jmp 0x40fbd6
xor edi, edi
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x494]
push eax
call fcn.00401087
cmp eax, edi
jne 0x40fabf
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.00410521
mov dword [ebp - 0x10], eax
jmp 0x40fac2
mov edi, 0x400
lea eax, [esi + 0xcac]
push edi
push 0
push eax
call fcn.00416f60
add esp, 0xc
cmp dword [ebx], 1
jbe 0x40fc16
cmp dword [esi + 0x14bc], 5
je 0x40fc16
push edi
lea eax, [ebp - 0x494]
push 0
push eax
call fcn.00416f60
lea eax, [ebp - 0x494]
push 0xa
push eax
push dword [esi + 0x14b8]
call fcn.0041849c
push dword [0x4281ec]
lea eax, [ebp - 0x494]
push eax
call fcn.00417060
add esp, 0x20
lea eax, [ebp - 0x494]
mov ecx, esi
push eax
call fcn.0040fea9
test eax, eax
lea eax, [ebp - 0x494]
push eax
je 0x40fc08
lea eax, [esi + 0xcac]
push 0x42bab4
push eax
call fcn.00412012
mov ecx, esi
call fcn.00410038
test eax, eax
jne 0x40fbe9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004018fc
xor eax, eax
jmp 0x40fdf3
push 1
lea eax, [esi + 0xcac]
pop ebx
mov ecx, esi
push ebx
push eax
push str._LangTransform
call fcn.004102a1
mov dword [esi + 0xa0], ebx
jmp 0x40fc16
lea eax, [esi + 0xcac]
push eax
call fcn.00417050
pop ecx
pop ecx
cmp dword [ebp - 0x10], 0
mov ebx, 0x3e8
jne 0x40fc67
push 0x42db88
push 0x3e9
push dword [0x4236ec]
push dword [0x4236e0]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 4
mov ebx, eax
call fcn.00416f48
pop ecx
mov dword [ebp - 0x30], eax
test eax, eax
mov byte [ebp - 4], 1
je 0x40fc5b
mov ecx, eax
call fcn.004063db
jmp 0x40fc5d
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.00406407
lea eax, [ebp - 0xd98]
push edi
push eax
push 0x44e
call fcn.004118f0
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
lea eax, [ebp - 0xd98]
push eax
call edi
test eax, eax
je 0x40fcd8
mov ebx, 0x4271e4
lea eax, [ebp - 0xd98]
push ebx
push eax
call fcn.004180d0
pop ecx
test eax, eax
pop ecx
je 0x40fcd8
inc eax
inc eax
push eax
mov dword [ebp - 0x10], eax
call edi
test eax, eax
je 0x40fcd8
push ebx
push dword [ebp - 0x10]
call fcn.004180d0
pop ecx
test eax, eax
pop ecx
jne 0x40fcee
mov eax, 0x486
push eax
mov dword [0x42ea5c], eax
call fcn.00411810
pop ecx
jmp 0x40fde3
lea eax, [ebp - 0x94]
push eax
push 1
pop ebx
push ebx
call fcn.004129b8
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.0040fe69
mov ecx, dword [esi + 0x2e40]
mov edi, 0x3e8
push edi
call fcn.004066d3
test eax, eax
je 0x40fd4f
mov esi, ebx
jmp 0x40fde5
push esi
push 0x44f
lea ecx, [ebp - 0x20]
call fcn.0040e2bb
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.0040e2fe
test eax, eax
je 0x40fdd7
cmp dword [0x42d774], 0
jne 0x40fdd7
mov ecx, esi
call fcn.0041023c
test eax, eax
je 0x40fdd7
mov ecx, dword [esi + 0x2e40]
push edi
call fcn.004066d3
test eax, eax
jne 0x40fe1c
push esi
push 0x451
lea ecx, [ebp - 0x7c]
call fcn.00407886
mov ecx, dword [esi + 0x2e40]
push edi
mov byte [ebp - 4], 3
call fcn.004066d3
test eax, eax
jne 0x40fe10
cmp dword [0x42d774], eax
jne 0x40fe10
lea ecx, [ebp - 0x7c]
call fcn.004083a4
test eax, eax
jne 0x40fe02
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 2
call fcn.004078db
and byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0040e2f3
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.00406465
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 2
call fcn.004078db
and byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0040e2f3
jmp 0x40fd48