Function at 0x45ae60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd57d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4f80c0]
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]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], edi
push eax
mov dword [ebp - 0x14], 0
call fcn.00471790
add esp, 4
mov dword [ebp - 4], 0
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45af1e
call fcn.00405000
mov ecx, eax
test ecx, ecx
je 0x45b06b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x4dd498
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00404960
test al, al
jne 0x45aef3
push 0
push 0x4dd498
mov ecx, edi
call fcn.00404c10
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45b04b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x45b04b
call fcn.00405000
mov ecx, eax
test ecx, ecx
je 0x45b06b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
push ecx
mov esi, esp
mov dword [ebp - 0x24], esp
mov dword [ebp - 0x1c], esi
call fcn.00405000
mov ecx, eax
test ecx, ecx
je 0x45b075
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.InsTM
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00404960
test al, al
jne 0x45af84
push 5
push str.InsTM
mov ecx, esi
call fcn.00404c10
push ecx
mov byte [ebp - 4], 4
mov esi, esp
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
push eax
call fcn.00404710
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 2
call fcn.0045b080
test eax, eax
je 0x45afff
mov ebx, dword [ebp - 0x18]
add ebx, 0xfffffff0
push ebx
call fcn.00404710
add eax, 0x10
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov dword [edi], eax
add esp, 4
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x45afde
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x45b04b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x45b04b
push 0x4dd498
mov ecx, edi
call fcn.00404d30
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp - 0x18]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45b02c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x45b04b
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
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.00498d60
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00404de0
push 0x80004005
call fcn.00404de0
int3