Function at 0x459b00
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb70d
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4fa0a8]
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 + 8]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x21c], 0
call fcn.00473f10
add esp, 4
mov dword [ebp - 4], 0
push dword [ebp - 0x21c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x459bdc
call fcn.00404d00
mov ecx, eax
test ecx, ecx
je 0x459ea9
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, dword [ebp - 0x228]
add eax, 0x10
mov dword [ebx], eax
push 0x4df010
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.00404660
test al, al
jne 0x459bae
push 0
push 0x4df010
mov ecx, ebx
call fcn.00404930
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x459e89
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x459e89
call fcn.00404d00
mov ecx, eax
test ecx, ecx
je 0x459ea9
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x220], esi
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 2
mov dword [ebp - 0x22c], eax
call fcn.00404d00
mov ecx, eax
test ecx, ecx
je 0x459eb3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
push str.InsTM
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 3
call fcn.00404660
test al, al
jne 0x459c50
push 5
push str.InsTM
lea ecx, [ebp - 0x224]
call fcn.00404930
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
push eax
call fcn.00404440
lea edi, [eax + 0x10]
mov dword [ebp - 0x230], edi
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0049c3c0
mov ebx, dword [0x50f3cc]
add esp, 0x10
test ebx, ebx
je 0x459c96
lock inc dword [ebx + 4]
mov ebx, dword [0x50f3cc]
mov ecx, dword [0x50f3c8]
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x234], ebx
mov byte [ebp - 4], 7
lea edx, [ebp - 0x22c]
mov eax, dword [ecx]
push edx
call dword [eax + 0xf0]
push edi
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0x4e3cb4
push dword [ebp - 0x224]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edx, dword [ebp - 0x22c]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x459cfb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
test ebx, ebx
je 0x459d22
mov eax, edi
lock xadd dword [ebx + 4], eax
jne 0x459d22
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, edi
lock xadd dword [ebx + 8], eax
jne 0x459d22
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov ebx, dword [ebp - 0x230]
mov eax, 0x2a
add ebx, 0xfffffff0
cmp ax, word [ebp - 0x218]
je 0x459e01
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459d46
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.00404930
mov byte [ebp - 4], 5
mov eax, edi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x459d80
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x459da1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x220]
add esi, 0xfffffff0
push esi
call fcn.00404440
mov ebx, dword [ebp - 0x228]
add eax, 0x10
add esp, 4
mov byte [ebp - 4], 0
mov dword [ebx], eax
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x459dd6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x459e89
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x459e89
mov byte [ebp - 4], 5
mov eax, edi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x459e19
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x459e3a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x228]
mov ecx, ebx
push 0x4df010
call fcn.00404a30
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x459e67
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x459e89
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.0049a9dd
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00404ae0
push 0x80004005
call fcn.00404ae0
int3