Function at 0x40da64
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7e40
mov eax, dword fs:[0]
push eax
mov eax, 0x133c
call fcn.00497500
mov eax, dword [0x5002b0]
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.004094ad
mov ecx, dword [ebp - 0x1334]
cmp ecx, dword [esi + 0x24]
je 0x40dae5
add ecx, 0x28
push ecx
mov ecx, edi
call fcn.00409485
mov eax, edi
jmp 0x40de20
mov edi, 0x4c16fc
push edi
call fcn.00495461
pop ecx
mov ecx, dword [ebp - 0x1338]
push eax
push ebx
push edi
call fcn.004087e1
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 0x40ddac
mov ecx, dword [ebp - 0x1338]
push edi
push ebx
lea eax, [ebp - 0x126c]
push eax
call fcn.00409723
mov ecx, dword [ebp - 0x1338]
push 0xffffffffffffffff
inc edi
push edi
lea eax, [ebp - 0x1250]
push eax
mov byte [ebp - 4], 1
call fcn.00409723
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.00495b20
lea eax, [esi + 4]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x40db81
mov eax, dword [eax]
cmp dword [ebp - 0x123c], 8
mov edx, dword [ebp - 0x1250]
jae 0x40db96
lea edx, [ebp - 0x1250]
cmp dword [ebp - 0x1258], 8
mov ecx, dword [ebp - 0x126c]
jae 0x40dbab
lea ecx, [ebp - 0x126c]
push eax
push 0x800
lea eax, [ebp - 0x1218]
push eax
push 0x4c1bc0
push edx
push ecx
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
lea eax, [ebp - 0x1218]
push eax
call fcn.00495461
pop ecx
push eax
lea eax, [ebp - 0x1218]
push eax
lea ecx, [ebp - 0x1234]
call fcn.00402570
cmp dword [ebp - 0x1224], ebx
jne 0x40dd8d
lea eax, [ebp - 0x126c]
push eax
mov edi, 0x4c1660
lea eax, [ebp - 0x1314]
push edi
push eax
call fcn.0040ac3d
push edi
push eax
lea eax, [ebp - 0x12f8]
push eax
mov byte [ebp - 4], 3
call fcn.0040acab
lea ecx, [ebp - 0x1250]
push ecx
push eax
lea eax, [ebp - 0x12c0]
push eax
mov byte [ebp - 4], 4
call fcn.0040ac18
add esp, 0x24
mov edi, eax
mov esi, dword [esi]
mov byte [ebp - 4], 5
cmp byte [esi + 0xc], bl
je 0x40dd63
cmp dword [edi + 0x14], 8
jb 0x40dc52
mov eax, dword [edi]
jmp 0x40dc54
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 0x40dc9e
push dword [ebp - 0x1334]
lea ecx, [ebp - 0x12a4]
call fcn.004025ee
push eax
lea ecx, [ebp - 0x1234]
mov byte [ebp - 4], 6
call fcn.0040261f
push ebx
push 1
lea ecx, [ebp - 0x12a4]
jmp 0x40dd5e
movzx eax, word [esi + 0xa]
push eax
movzx eax, word [esi + 8]
push eax
lea eax, [ebp - 0x218]
push 0x4c5884
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x12a4]
call fcn.004025ee
push edi
push eax
lea eax, [ebp - 0x1288]
push eax
mov byte [ebp - 4], 7
call fcn.0040ac18
add esp, 0xc
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x12a4]
mov byte [ebp - 4], 9
call fcn.00401129
cmp dword [ebp - 0x1274], 8
mov eax, dword [ebp - 0x1288]
jae 0x40dd0d
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 0x40dd56
push dword [ebp - 0x1334]
lea ecx, [ebp - 0x12dc]
call fcn.004025ee
push eax
lea ecx, [ebp - 0x1234]
mov byte [ebp - 4], 0xa
call fcn.0040261f
push ebx
push edi
lea ecx, [ebp - 0x12dc]
call fcn.00401129
push ebx
lea ecx, [ebp - 0x1288]
push edi
call fcn.00401129
push ebx
push 1
lea ecx, [ebp - 0x12c0]
call fcn.00401129
push ebx
push 1
lea ecx, [ebp - 0x12f8]
call fcn.00401129
push ebx
push 1
lea ecx, [ebp - 0x1314]
call fcn.00401129
push ebx
push 1
lea ecx, [ebp - 0x1250]
call fcn.00401129
push ebx
push 1
lea ecx, [ebp - 0x126c]
mov byte [ebp - 4], bl
call fcn.00401129
lea eax, [ebp - 0x1234]
push eax
push dword [ebp - 0x1338]
lea eax, [ebp - 0x1330]
push eax
call fcn.0040c9e3
add esp, 0xc
mov ecx, dword [ebp - 0x133c]
push ebx
push eax
mov byte [ebp - 4], 0xb
call fcn.0040d6b8
mov ecx, dword [ebp - 0x133c]
push eax
lea eax, [ebp - 0x1348]
push eax
call fcn.0040ae34
lea ecx, [ebp - 0x1330]
mov byte [ebp - 4], bl
call fcn.00405720
mov ecx, dword [ebp - 0x1340]
lea eax, [ebp - 0x1234]
push eax
call fcn.0040267b
push ebx
push 1
lea ecx, [ebp - 0x1234]
call fcn.00401129
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.004959f8
leave
ret 8