Function at 0x40cd30
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b64ce
mov eax, dword fs:[0]
push eax
mov eax, 0x1024
call fcn.00494c30
mov eax, dword [0x4d7068]
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 edi, dword [ebp + 8]
mov dword [ebp - 0x1030], 0
push 1
push 0
push 0x4b98d0
lea ecx, [ebp + 0x3c]
mov dword [ebp - 4], 2
call fcn.004131a0
cmp eax, 0xffffffff
jne 0x40ce22
xor eax, eax
mov dword [ebp - 0x1014], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x1028], ax
lea ecx, [ebp - 0x1028]
lea eax, [ebp + 0x3c]
mov dword [ebp - 0x1018], 0
push eax
call fcn.00411a10
push 0
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x40cde2
mov eax, dword [ecx]
jmp 0x40cde4
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x1028]
push edx
push eax
call fcn.00411a10
lea eax, [ebp + 0x3c]
push eax
call fcn.0048f310
mov eax, dword [ebp - 0x1014]
add esp, 0x20
cmp eax, 8
jb 0x40ce22
inc eax
lea ecx, [ebp - 0x1028]
push eax
push dword [ebp - 0x1028]
call fcn.00490de0
mov dword [ebp - 0x101c], 0
mov dword [ebp - 0x1018], 0
mov dword [ebp - 0x1014], 0
lea eax, [ebp - 0x101c]
mov byte [ebp - 4], 4
push eax
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 0xc]
push eax
call fcn.00411a10
call fcn.0040ea80
mov ebx, dword [ebp - 0x1018]
add esp, 0x1c
mov esi, dword [ebp - 0x101c]
mov eax, ebx
sub eax, esi
sub eax, 0x30
cmp eax, 0x18
jb 0x40cf57
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov ecx, edi
mov word [edi], ax
lea eax, [ebp + 0x24]
push eax
call fcn.0040f8c0
test esi, esi
je 0x40cef2
push dword [ebp - 0x102c]
lea eax, [ebp - 0x101c]
push eax
push ebx
push esi
call fcn.00404480
mov ecx, dword [ebp - 0x1014]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 0x10
imul ecx
lea ecx, [ebp - 0x101c]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.00412090
mov eax, dword [ebp + 0x20]
cmp eax, 8
jb 0x40cf07
inc eax
lea ecx, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call fcn.00490de0
xor eax, eax
mov dword [ebp + 0x20], 7
mov word [ebp + 0xc], ax
mov eax, dword [ebp + 0x38]
mov dword [ebp + 0x1c], 0
cmp eax, 8
jb 0x40cf30
inc eax
lea ecx, [ebp + 0x24]
push eax
push dword [ebp + 0x24]
call fcn.00490de0
mov ecx, dword [ebp + 0x50]
xor eax, eax
mov dword [ebp + 0x38], 7
mov dword [ebp + 0x34], 0
mov word [ebp + 0x24], ax
cmp ecx, 8
jb 0x40d06d
inc ecx
push ecx
jmp 0x40d062
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.00497c60
add esp, 0xc
lea edx, [ebp + 0x3c]
cmp dword [ebp + 0x50], 8
lea eax, [ebp + 0x24]
cmovae edx, dword [ebp + 0x3c]
cmp dword [ebp + 0x38], 8
cmovae eax, dword [ebp + 0x24]
cmp dword [esi + 0x2c], 8
mov dword [ebp - 0x102c], eax
lea eax, [esi + 0x18]
jb 0x40cf94
mov eax, dword [eax]
cmp dword [esi + 0x14], 8
jb 0x40cf9e
mov ecx, dword [esi]
jmp 0x40cfa0
mov ecx, esi
push edx
push 0x7ff
lea edx, [ebp - 0x1010]
push edx
push dword [ebp - 0x102c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x1010]
mov ecx, edi
push eax
call fcn.00407130
push dword [ebp - 0x102c]
lea eax, [ebp - 0x101c]
push eax
push ebx
push esi
call fcn.00404480
mov ecx, dword [ebp - 0x1014]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 0x10
imul ecx
lea ecx, [ebp - 0x101c]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.00412090
mov eax, dword [ebp + 0x20]
cmp eax, 8
jb 0x40d01b
inc eax
lea ecx, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call fcn.00490de0
xor eax, eax
mov dword [ebp + 0x20], 7
mov word [ebp + 0xc], ax
mov eax, dword [ebp + 0x38]
mov dword [ebp + 0x1c], 0
cmp eax, 8
jb 0x40d044
inc eax
lea ecx, [ebp + 0x24]
push eax
push dword [ebp + 0x24]
call fcn.00490de0
xor eax, eax
mov dword [ebp + 0x38], 7
mov word [ebp + 0x24], ax
mov eax, dword [ebp + 0x50]
mov dword [ebp + 0x34], 0
cmp eax, 8
jb 0x40d06d
inc eax
push eax
push dword [ebp + 0x3c]
lea ecx, [ebp + 0x3c]
call fcn.00490de0
mov eax, edi
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.004942e8
mov esp, ebp
pop ebp
ret