Function at 0x40187f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
push esi
push edi
xor esi, esi
xor eax, eax
mov word [ebp - 0x21c], si
mov ecx, 0x82
lea edi, [ebp - 0x21a]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 4]
cmp dword [eax + 0x14], esi
je 0x401b33
push esi
lea eax, [ebp - 0x21c]
push 0x41744c
push eax
call fcn.0040972f
add esp, 0xc
test eax, eax
je 0x401b33
xor eax, eax
mov word [ebp - 0x660], si
mov ecx, 0x82
lea edi, [ebp - 0x65e]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x660]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [ebx + 4]
push dword [eax + 0x14]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], 0x41cb80
call fcn.0040b4da
lea eax, [ebp - 0x454]
call fcn.004077e0
push esi
mov edi, 0x10000000
push edi
push 3
push 3
push 0x80000000
lea eax, [ebp - 0x660]
push eax
lea ecx, [ebp - 0x454]
call fcn.00408a36
test eax, eax
je 0x401964
mov eax, dword [ebx + 4]
push esi
push dword [ebp - 8]
lea ecx, [ebp - 0x454]
push dword [ebp - 0xc]
push esi
push dword [eax + 0x10]
call fcn.00407aea
lea ecx, [ebp - 0x454]
call fcn.00407a25
push esi
push edi
push 2
push 3
push 0x40000000
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x454]
call fcn.00408a36
test eax, eax
je 0x4019a4
push esi
push dword [ebp - 8]
lea ecx, [ebp - 0x454]
push dword [ebp - 0xc]
push esi
push esi
call fcn.00407aa6
lea ecx, [ebp - 0x454]
call fcn.00407a25
lea eax, [ebp - 0x21c]
push eax
push esi
push str.NATIONDEFAUT
mov esi, str.GENERAL
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea ecx, [ebp - 0x21c]
push ecx
lea edi, [ebx + 0x840]
push eax
mov eax, edi
call fcn.0040be8e
push 0x13e
call fcn.0040bef8
push 0x13f
call fcn.0040bef8
push 0x140
call fcn.0040bef8
push 0x141
call fcn.0040bef8
push 0x142
call fcn.0040bef8
lea eax, [ebp - 0x21c]
push eax
push 0
push str.MODEPATCH
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea ecx, [ebp - 0x21c]
push ecx
push 0x104
mov dword [ebx + 0x428], eax
lea eax, [ebx + 0x42c]
push eax
push 0x41730c
push str.APPPATCH
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x21c]
push eax
push 0x104
lea eax, [ebx + 0x636]
push eax
push 0x41730c
push str.FICLICENCE
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x13e
mov eax, edi
call fcn.0040bebf
push eax
lea esi, [ebp - 4]
call fcn.0040c209
push 0
push 0x4173d8
call fcn.0040c50e
test eax, eax
jle 0x401aa4
push 0
push 0
lea eax, [ebx + 0x42c]
push eax
push 0x4173d8
mov eax, esi
push eax
call fcn.0040c617
mov eax, dword [ebp - 4]
test eax, eax
jne 0x401ab0
mov eax, 0x41730c
push eax
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x13f
mov eax, edi
call fcn.0040bebf
mov esi, dword [sym.imp.USER32.dll_SetDlgItemTextW]
push eax
push 0x3e8
push dword [ebx + 0xc]
call esi
push 0x140
mov eax, edi
call fcn.0040bebf
push eax
push 0x3eb
push dword [ebx + 0xc]
call esi
push 0x141
mov eax, edi
call fcn.0040bebf
push eax
push 1
push dword [ebx + 0xc]
call esi
push 0x142
mov eax, edi
call fcn.0040bebf
push eax
push 2
push dword [ebx + 0xc]
call esi
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
lea ecx, [ebp - 0x454]
call fcn.00407858
lea ecx, [ebp - 0x10]
call fcn.0040b4c4
pop edi
pop esi
leave
ret