Function at 0x4570e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb34d
mov eax, dword fs:[0]
push eax
sub esp, 0x254
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
call fcn.00404d00
mov ecx, eax
test ecx, ecx
je 0x4574c0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
push str.ew.e
push str.viewce
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push str.web_sfCefVi_sxe
push eax
call fcn.00420260
mov esi, dword [0x50f3cc]
add esp, 0x10
test esi, esi
je 0x457164
lock inc dword [esi + 4]
mov esi, dword [0x50f3cc]
mov ecx, dword [0x50f3c8]
mov dword [ebp - 0x260], ecx
mov dword [ebp - 0x25c], esi
mov byte [ebp - 4], 1
lea edx, [ebp - 0x258]
mov eax, dword [ecx]
push edx
call dword [eax + 0x20]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x254]
mov edx, dword [eax]
call fcn.004756f0
mov byte [ebp - 4], 3
mov edx, dword [eax]
mov ecx, edx
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4571d0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x250]
call fcn.00426980
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 4
push 0
push eax
call fcn.0049c3c0
cmp dword [ebp - 0x23c], 8
lea eax, [ebp - 0x250]
cmovae eax, dword [ebp - 0x250]
push eax
lea eax, [ebp - 0x218]
push 0x4e2c70
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [ebp - 0x220]
lea eax, [ebp - 0x218]
add esp, 0x18
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor eax, eax
mov dword [ebp - 0x238], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
lea edx, [ecx + 2]
mov word [ebp - 0x238], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457271
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.00426980
mov byte [ebp - 4], 5
lea ebx, [ebp - 0x238]
cmp dword [ebp - 0x224], 8
cmovae ebx, dword [ebp - 0x238]
call fcn.00404d00
mov ecx, eax
test ecx, ecx
je 0x4574ca
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push ebx
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 6
call fcn.00404660
test al, al
jne 0x45730c
test ebx, ebx
jne 0x4572e4
xor ecx, ecx
jmp 0x4572ff
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4572f0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x21c]
call fcn.00404930
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x457350
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x457346
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4574d4
push edx
push ecx
call fcn.0049a567
add esp, 8
xor eax, eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x23c]
cmp edx, 8
jb 0x4573b1
mov ecx, dword [ebp - 0x250]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4573a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4574d4
push edx
push ecx
call fcn.0049a567
add esp, 8
xor eax, eax
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
mov byte [ebp - 4], 0xa
or ebx, 0xffffffff
mov edx, dword [ebp - 0x254]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4573f2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
mov eax, ebx
mov edx, dword [ebp - 0x258]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x457413
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
test esi, esi
je 0x45743a
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x45743a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x45743a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x21c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45746d
push ecx
lea eax, [esi - 0x10]
mov ebx, esp
push eax
mov dword [ebp - 0x25c], ebx
call fcn.00404440
add esp, 4
add eax, 0x10
mov dword [ebx], eax
call fcn.00456de0
or ebx, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x457488
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4574a4
mov ecx, dword [edi]
push edi
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.0049a9dd
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404ae0
push 0x80004005
call fcn.00404ae0
call fcn.0049f0ef
int3