Function at 0x45c890
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b73cd
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4e4018]
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
call fcn.00404a90
mov ecx, eax
test ecx, ecx
je 0x45ca98
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push str.ew.e
push 0x4ce968
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push str.web_sfCefVi_sxe
push eax
call fcn.00403d00
mov edi, dword [0x4f9128]
add esp, 0x10
mov dword [ebp - 0x14], 0
test edi, edi
je 0x45c912
lock inc dword [edi + 4]
mov edi, dword [0x4f9128]
mov ecx, dword [0x4f9124]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 1
lea edx, [ebp - 0x20]
mov eax, dword [ecx]
push edx
call dword [eax + 0x24]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
mov edx, dword [eax]
call fcn.00470230
mov byte [ebp - 4], 3
mov edx, dword [eax]
mov ecx, edx
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45c960
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.0042c850
mov byte [ebp - 4], 4
lea edx, [ebp - 0x40]
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x58]
push esi
call fcn.0045c460
add esp, 4
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x45c99b
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x14]
call fcn.004066c0
lea ecx, [ebp - 0x58]
call fcn.0042c7f0
lea ecx, [ebp - 0x40]
call fcn.0042c7f0
mov byte [ebp - 4], 9
or ebx, 0xffffffff
mov edx, dword [ebp - 0x1c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45c9d5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov eax, ebx
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45c9f3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
test edi, edi
je 0x45ca1a
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x45ca1a
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x45ca1a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45ca42
push ecx
mov edi, esp
mov dword [ebp - 0x24], edi
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00416ab0
add eax, 0x10
mov dword [edi], eax
call fcn.0045c530
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45ca60
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x45ca7c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.0048782e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404860
int3