Function at 0x404460
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526578
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x587730]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x14]
call fcn.00406440
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00406440
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00406440
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.00406540
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00406600
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00406540
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
call fcn.00406600
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x20]
call fcn.00406540
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
call fcn.00406600
mov ecx, dword [ebp + 0x14]
call fcn.00406d10
lea ecx, [ebp - 0x18]
call fcn.00406440
mov byte [ebp - 4], 3
push str.__GetProfString:
lea ecx, [ebp - 0x18]
call fcn.00406540
mov eax, dword [ebp + 0x10]
push eax
push 0x5385d0
mov ecx, dword [ebp + 0xc]
push ecx
push str.____
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00405c70
add esp, 0xc
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x44], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00405c70
add esp, 0xc
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.00405c70
add esp, 0xc
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x54], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x54]
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.00405c70
add esp, 0xc
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x38]
push ecx
call fcn.00405c70
add esp, 0xc
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x64], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x64]
push eax
lea ecx, [ebp - 0x18]
call fcn.00406520
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x38]
call fcn.00406500
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x34]
call fcn.00406500
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.00406500
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.00406500
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00406500
push 0
lea ecx, [ebp - 0x14]
call fcn.00406590
push eax
push 0x800
push 0x800
mov ecx, dword [ebp + 0x14]
call fcn.004065b0
push eax
push 0x536e60
push 0
lea ecx, [ebp - 0x20]
call fcn.00406590
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.00406590
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x1c], eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 0x14]
call fcn.00406600
mov dword [ebp - 0x10], 0xffffffff
cmp dword [ebp - 0x1c], 0x7ff
je 0x404663
cmp dword [ebp - 0x1c], 0x7fe
jne 0x40466c
mov dword [ebp - 0x10], 0xfffffffe
jmp 0x40467e
mov ecx, dword [ebp + 0x14]
call fcn.004065e0
test eax, eax
jle 0x40467e
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x3c], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00406500
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00406500
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00406500
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406500
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret