Function at 0x1004ff22
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
movzx eax, byte [ebp + 0x28]
test eax, eax
je 0x100500bb
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
cmp dword [eax], ecx
je 0x1004ffbc
mov dword [ebp - 0x30], 1
jmp 0x1004ffc0
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 8]
cmp dword [eax], 0xd1d25bb0
jne 0x1004ffd4
mov dword [ebp - 0x1c], 1
jmp 0x1004ffd8
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp dword [ebp - 0x1c], eax
je 0x1004fffb
mov eax, 0xb0639e6a
test eax, eax
je 0x1004fffb
push 0xfffffffffffffffc
pop eax
test eax, eax
je 0x1004fffb
mov eax, 0x2e91c841
test eax, eax
jne 0x10050003
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0
je 0x10050014
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
je 0x10050014
mov dword [ebp - 0x20], 1
jmp 0x10050018
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
sub ecx, dword [eax]
mov eax, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x24]
add eax, dword [ecx]
mov ecx, dword [ebp - 0xc]
add eax, dword [ecx]
mov ecx, dword [ebp - 0x28]
cmp eax, dword [ecx]
jg 0x10050049
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0
jne 0x10050049
and dword [ebp - 0x5c], 0
jmp 0x10050050
mov dword [ebp - 0x5c], 1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 5
jbe 0x10050069
mov dword [ebp - 0x34], 1
jmp 0x1005006d
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x30]
imul eax, dword [ebp - 0x34]
test eax, eax
je 0x1005008a
mov eax, 0x3d97
test eax, eax
je 0x1005008a
mov dword [ebp - 0x14], 1
jmp 0x1005008e
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
cmp dword [ebp - 0x14], 0xffffffff
jne 0x100500aa
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x100500aa
and dword [ebp - 0x38], 0
jmp 0x100500b1
mov dword [ebp - 0x38], 1
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
jmp 0x100500dc
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x100500dc
push 0
push 0x86b
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esp, ebp
pop ebp
ret