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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d16dd
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x5020a8]
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.00476f00
add esp, 4
mov dword [ebp - 4], 0
push dword [ebp - 0x21c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45ec5c
call fcn.00404de0
mov ecx, eax
test ecx, ecx
je 0x45ef29
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, dword [ebp - 0x228]
add eax, 0x10
mov dword [ebx], eax
push 0x4e5770
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.00404740
test al, al
jne 0x45ec2e
push 0
push 0x4e5770
mov ecx, ebx
call fcn.00404a10
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 0x45ef09
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x45ef09
call fcn.00404de0
mov ecx, eax
test ecx, ecx
je 0x45ef29
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.00404de0
mov ecx, eax
test ecx, ecx
je 0x45ef33
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.00404740
test al, al
jne 0x45ecd0
push 5
push str.InsTM
lea ecx, [ebp - 0x224]
call fcn.00404a10
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
push eax
call fcn.00404520
lea edi, [eax + 0x10]
mov dword [ebp - 0x230], edi
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a1c30
mov ebx, dword [0x517558]
add esp, 0x10
test ebx, ebx
je 0x45ed16
lock inc dword [ebx + 4]
mov ebx, dword [0x517558]
mov ecx, dword [0x517554]
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 + 0x10c]
push edi
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0x4ea530
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 0x45ed7b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
test ebx, ebx
je 0x45eda2
mov eax, edi
lock xadd dword [ebx + 4], eax
jne 0x45eda2
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, edi
lock xadd dword [ebx + 8], eax
jne 0x45eda2
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 0x45ee81
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45edc6
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.00404a10
mov byte [ebp - 4], 5
mov eax, edi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x45ee00
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 0x45ee21
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.00404520
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 0x45ee56
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 0x45ef09
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x45ef09
mov byte [ebp - 4], 5
mov eax, edi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x45ee99
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 0x45eeba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x228]
mov ecx, ebx
push 0x4e5770
call fcn.00404b10
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45eee7
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 0x45ef09
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.004a024d
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00404bc0
push 0x80004005
call fcn.00404bc0
int3