Function at 0x412596
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4250e0
mov eax, dword fs:[0]
push eax
mov eax, 0x133c
call fcn.00417910
mov eax, dword [0x431138]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push eax
mov esi, ecx
mov dword [ebp - 0x1338], eax
lea eax, [ebp - 0x1334]
lea ecx, [esi + 0x20]
xor ebx, ebx
push eax
mov dword [ebp - 0x1340], edi
mov dword [ebp - 0x1344], ebx
mov dword [ebp - 0x133c], ecx
call fcn.004038ba
mov ecx, dword [ebp - 0x1334]
cmp ecx, dword [esi + 0x24]
je 0x412617
add ecx, 0x28
push ecx
mov ecx, edi
call fcn.004027e2
mov eax, edi
jmp 0x412952
mov edi, 0x426620
push edi
call fcn.00416de1
pop ecx
mov ecx, dword [ebp - 0x1338]
push eax
push ebx
push edi
call fcn.0040fb5a
mov edi, eax
xor eax, eax
mov dword [ebp - 0x1220], 7
mov dword [ebp - 0x1224], ebx
mov word [ebp - 0x1234], ax
mov dword [ebp - 4], ebx
cmp edi, 0xffffffff
je 0x4128de
mov ecx, dword [ebp - 0x1338]
push edi
push ebx
lea eax, [ebp - 0x126c]
push eax
call fcn.00401a10
mov ecx, dword [ebp - 0x1338]
push 0xffffffffffffffff
inc edi
push edi
lea eax, [ebp - 0x1250]
push eax
mov byte [ebp - 4], 1
call fcn.00401a10
xor eax, eax
push 0xffe
mov word [ebp - 0x1218], ax
lea eax, [ebp - 0x1216]
push ebx
push eax
mov byte [ebp - 4], 2
call fcn.004164f0
lea eax, [esi + 4]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4126b3
mov eax, dword [eax]
cmp dword [ebp - 0x123c], 8
mov edx, dword [ebp - 0x1250]
jae 0x4126c8
lea edx, [ebp - 0x1250]
cmp dword [ebp - 0x1258], 8
mov ecx, dword [ebp - 0x126c]
jae 0x4126dd
lea ecx, [ebp - 0x126c]
push eax
push 0x800
lea eax, [ebp - 0x1218]
push eax
push 0x426f88
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x1218]
push eax
call fcn.00416de1
pop ecx
push eax
lea eax, [ebp - 0x1218]
push eax
lea ecx, [ebp - 0x1234]
call fcn.004017d6
cmp dword [ebp - 0x1224], ebx
jne 0x4128bf
lea eax, [ebp - 0x126c]
push eax
mov edi, 0x426500
lea eax, [ebp - 0x1314]
push edi
push eax
call fcn.00403b86
push edi
push eax
lea eax, [ebp - 0x12f8]
push eax
mov byte [ebp - 4], 3
call fcn.00403c21
lea ecx, [ebp - 0x1250]
push ecx
push eax
lea eax, [ebp - 0x12c0]
push eax
mov byte [ebp - 4], 4
call fcn.00409fab
add esp, 0x24
mov edi, eax
mov esi, dword [esi]
mov byte [ebp - 4], 5
cmp byte [esi + 0xc], bl
je 0x412895
cmp dword [edi + 0x14], 8
jb 0x412784
mov eax, dword [edi]
jmp 0x412786
mov eax, edi
lea ecx, [ebp - 0x1344]
push ecx
lea ecx, [ebp - 0x1334]
push ecx
push eax
push dword [esi + 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4127d0
push dword [ebp - 0x1334]
lea ecx, [ebp - 0x12a4]
call fcn.00401af9
push eax
lea ecx, [ebp - 0x1234]
mov byte [ebp - 4], 6
call fcn.00401a9d
push ebx
push 1
lea ecx, [ebp - 0x12a4]
jmp 0x412890
movzx eax, word [esi + 0xa]
push eax
movzx eax, word [esi + 8]
push eax
lea eax, [ebp - 0x218]
push str.StringFileInfo_04X_04X_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x12a4]
call fcn.00401af9
push edi
push eax
lea eax, [ebp - 0x1288]
push eax
mov byte [ebp - 4], 7
call fcn.00409fab
add esp, 0xc
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x12a4]
mov byte [ebp - 4], 9
call fcn.00401310
cmp dword [ebp - 0x1274], 8
mov eax, dword [ebp - 0x1288]
jae 0x41283f
lea eax, [ebp - 0x1288]
lea ecx, [ebp - 0x1344]
push ecx
lea ecx, [ebp - 0x1334]
push ecx
push eax
push dword [esi + 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x412888
push dword [ebp - 0x1334]
lea ecx, [ebp - 0x12dc]
call fcn.00401af9
push eax
lea ecx, [ebp - 0x1234]
mov byte [ebp - 4], 0xa
call fcn.00401a9d
push ebx
push edi
lea ecx, [ebp - 0x12dc]
call fcn.00401310
push ebx
lea ecx, [ebp - 0x1288]
push edi
call fcn.00401310
push ebx
push 1
lea ecx, [ebp - 0x12c0]
call fcn.00401310
push ebx
push 1
lea ecx, [ebp - 0x12f8]
call fcn.00401310
push ebx
push 1
lea ecx, [ebp - 0x1314]
call fcn.00401310
push ebx
push 1
lea ecx, [ebp - 0x1250]
call fcn.00401310
push ebx
push 1
lea ecx, [ebp - 0x126c]
mov byte [ebp - 4], bl
call fcn.00401310
lea eax, [ebp - 0x1234]
push eax
push dword [ebp - 0x1338]
lea eax, [ebp - 0x1330]
push eax
call fcn.00411c4f
add esp, 0xc
mov ecx, dword [ebp - 0x133c]
push ebx
push eax
mov byte [ebp - 4], 0xb
call fcn.004045d2
mov ecx, dword [ebp - 0x133c]
push eax
lea eax, [ebp - 0x1348]
push eax
call fcn.004043d9
lea ecx, [ebp - 0x1330]
mov byte [ebp - 4], bl
call fcn.00403899
mov ecx, dword [ebp - 0x1340]
lea eax, [ebp - 0x1234]
push eax
call fcn.00403b61
push ebx
push 1
lea ecx, [ebp - 0x1234]
call fcn.00401310
mov eax, dword [ebp - 0x1340]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004164df
leave
ret 8