Function at 0x416099
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x66c
lea eax, [esp + 0x10]
push ebx
push ebp
push esi
push edi
mov esi, 0x20a
xor ebx, ebx
push esi
push ebx
push eax
mov edi, ecx
call fcn.00417fd0
mov eax, dword [edi + 4]
add esp, 0xc
cmp dword [eax + 0x14], ebx
je 0x416345
push ecx
mov edx, 0x43c058
lea ecx, [esp + 0x24]
call fcn.00404ab6
pop ecx
test eax, eax
je 0x416345
push esi
lea eax, [esp + 0x46c]
push ebx
push eax
call fcn.00417fd0
add esp, 0xc
lea eax, [esp + 0x468]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x14]
call fcn.00407908
mov eax, dword [edi + 4]
push dword [eax + 0x14]
call fcn.00407929
lea ecx, [esp + 0x230]
call fcn.00402cf7
push ebx
mov esi, 0x10000000
lea eax, [esp + 0x46c]
push esi
push 3
push 3
push 0x80000000
push eax
lea ecx, [esp + 0x248]
call fcn.00403cc4
test eax, eax
je 0x416175
mov eax, dword [edi + 4]
lea ecx, [esp + 0x230]
push ebx
push dword [esp + 0x20]
push dword [esp + 0x20]
push ebx
push dword [eax + 0x10]
call fcn.00402fee
lea ecx, [esp + 0x230]
call fcn.00402f2b
push ebx
push esi
push 2
push 3
push 0x40000000
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x248]
call fcn.00403cc4
test eax, eax
je 0x4161b8
push ebx
push dword [esp + 0x20]
lea ecx, [esp + 0x238]
push dword [esp + 0x20]
push ebx
push ebx
call fcn.00402fae
lea ecx, [esp + 0x230]
call fcn.00402f2b
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea eax, [esp + 0x20]
push eax
push ebx
push str.NATIONDEFAUT
mov ebp, str.GENERAL
push ebp
call esi
lea ecx, [esp + 0x20]
push ecx
lea ebx, [edi + 0x848]
push eax
mov ecx, ebx
call fcn.0040aad7
push 0x13e
mov ecx, ebx
call fcn.0040ab44
push 0x13f
mov ecx, ebx
call fcn.0040ab44
push 0x140
mov ecx, ebx
call fcn.0040ab44
push 0x141
mov ecx, ebx
call fcn.0040ab44
push 0x142
mov ecx, ebx
call fcn.0040ab44
lea eax, [esp + 0x20]
push eax
push 0
push str.MODEPATCH
push ebp
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ebp, [edi + 0x434]
mov dword [edi + 0x430], eax
lea eax, [esp + 0x20]
push eax
push 0x104
push ebp
push 0x436500
push str.APPPATCH
push str.GENERAL
call esi
lea eax, [esp + 0x20]
push eax
push 0x104
lea eax, [edi + 0x63e]
push eax
push 0x436500
push str.FICLICENCE
push str.GENERAL
call esi
push 0x13e
mov ecx, ebx
call fcn.0040ab07
push eax
lea ecx, [esp + 0x14]
call fcn.0040845c
mov esi, 0x43c0cc
lea ecx, [esp + 0x10]
push 0
mov edx, esi
call fcn.004086dc
test eax, eax
jle 0x4162b8
push ecx
push ebp
mov edx, esi
lea ecx, [esp + 0x18]
call fcn.00408876
lea ecx, [esp + 0x10]
call fcn.0040848a
push eax
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x13f
mov ecx, ebx
call fcn.0040ab07
mov esi, dword [sym.imp.USER32.dll_SetDlgItemTextW]
push eax
push 0x3e8
push dword [edi + 0xc]
call esi
push 0x140
mov ecx, ebx
call fcn.0040ab07
push eax
push 0x3eb
push dword [edi + 0xc]
call esi
push 0x141
mov ecx, ebx
call fcn.0040ab07
push eax
push 1
push dword [edi + 0xc]
call esi
push 0x142
mov ecx, ebx
call fcn.0040ab07
push eax
push 2
push dword [edi + 0xc]
call esi
lea ecx, [esp + 0x10]
call fcn.00408471
lea ecx, [esp + 0x230]
call fcn.00402d5a
lea ecx, [esp + 0x14]
call fcn.00407919
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x66c
ret