Function at 0x4772a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d74dd
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x655140]
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.00402de0
mov ecx, eax
test ecx, ecx
je 0x477550
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
push str.ew.e
push 0x63acdc
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push str.web_sfCefVi_sxe
push eax
call fcn.00409210
mov esi, dword [0x67a844]
add esp, 0x10
test esi, esi
je 0x477324
lock inc dword [esi + 4]
mov esi, dword [0x67a844]
mov ecx, dword [0x67a840]
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x22c], esi
mov byte [ebp - 4], 1
lea edx, [ebp - 0x224]
mov eax, dword [ecx]
push edx
call dword [eax + 0x20]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x228]
mov edx, dword [eax]
call fcn.0048b5c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x260]
push dword [eax]
call fcn.00407f40
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 4
push 0
push eax
call fcn.004b69d0
add esp, 0xc
lea eax, [ebp - 0x260]
cmp dword [ebp - 0x24c], 7
cmova eax, dword [ebp - 0x260]
push eax
lea eax, [ebp - 0x218]
push 0x6344cc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [ebp - 0x220]
lea eax, [ebp - 0x218]
add esp, 0xc
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00407f40
mov byte [ebp - 4], 5
lea ebx, [ebp - 0x248]
cmp dword [ebp - 0x234], 7
cmova ebx, dword [ebp - 0x248]
call fcn.00402de0
mov ecx, eax
test ecx, ecx
je 0x47755a
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.00408c10
test al, al
jne 0x47744c
test ebx, ebx
jne 0x477423
xor eax, eax
jmp 0x47743f
mov eax, ebx
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x477430
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x21c]
call fcn.00408fa0
lea ecx, [ebp - 0x248]
call fcn.00408bb0
lea ecx, [ebp - 0x260]
call fcn.00408bb0
mov byte [ebp - 4], 0xa
or ebx, 0xffffffff
mov edx, dword [ebp - 0x228]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x477486
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 - 0x224]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4774a7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
test esi, esi
je 0x4774ce
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x4774ce
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x4774ce
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 0x4774fd
push ecx
mov ebx, esp
lea ecx, [esi - 0x10]
mov dword [ebp - 0x22c], ebx
call fcn.00408e50
add eax, 0x10
mov dword [ebx], eax
call fcn.00476fc0
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 0x477518
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 0x477534
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.004b3f1a
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402a80
push 0x80004005
call fcn.00402a80
int3