Function at 0x4c7870
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5eb710
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x6670f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c7d71
call fcn.00510740
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4c7d71
mov dword [ebp - 0x24], 0
call fcn.004bfba0
mov ecx, eax
test ecx, ecx
je 0x4c7d87
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
call fcn.004bfba0
mov ecx, eax
test ecx, ecx
je 0x4c7d91
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
push ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004bc730
push 0x5c
push dword [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0058cb87
mov ecx, dword [ebp - 0x10]
add esp, 8
or ebx, 0xffffffff
test eax, eax
je 0x4c7a0b
sub eax, ecx
sar eax, 1
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x4c7a0b
xor esi, esi
test eax, eax
cmovns esi, eax
cmp esi, dword [ecx - 0xc]
jl 0x4c795a
add ecx, 0xfffffff0
push ecx
call fcn.004bfdc0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
jmp 0x4c7986
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x4c796a
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x4c7976
call fcn.004bfba0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push esi
push dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
call fcn.004bfc50
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x14]
call fcn.004bfcd0
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4c79b1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x28]
mov esi, dword [ecx - 0xc]
lea eax, [esi - 1]
cmp edx, eax
jge 0x4c7a08
lea eax, [edx + 1]
sub esi, eax
lea ecx, [ebp - 0x10]
push esi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004ca170
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x18]
call fcn.004bfcd0
mov edx, dword [ebp - 0x1c]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c7a02
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 1
lea edx, [ecx - 0x10]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c7a26
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x34
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.0058c8f0
add esp, 0xc
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x64]
push 1
push edi
push esi
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 5
push eax
call fcn.00514ed0
test eax, eax
je 0x4c7c62
cmp dword [ebp - 0x24], 0
je 0x4c7c62
mov ecx, dword [ebp + 0xc]
push dword [ebp - 0x58]
add ecx, 4
call fcn.004c36d0
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ecx + 8]
call fcn.004bfcd0
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ecx + 0xc]
call fcn.004bfcd0
mov ecx, dword [ebp + 0xc]
push dword [ebp - 0x54]
lea ecx, [ecx + 0x10]
call fcn.004c36d0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x44]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 0x5c]
mov dword [ecx + 0x20], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 8]
test eax, eax
je 0x4c7ad9
cmp dword [esi - 0xc], 0
jl 0x4c7ad9
push eax
push esi
call fcn.0058d0d6
add esp, 8
test eax, eax
je 0x4c7ad9
sub eax, esi
sar eax, 1
jne 0x4c7ad9
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x1c], 1
jmp 0x4c7ae3
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x1c], 0
push 0
push 0
push 3
push 0
push 1
push 0x80
push dword [ebp + 8]
mov dword [eax + 0x14], 1
mov dword [eax + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x4c7b3a
lea ecx, [ebp - 0x30]
xorps xmm0, xmm0
push ecx
push 0
push 0
push eax
movlpd qword [ebp - 0x30], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x30]
mov dword [ecx + 0x24], eax
mov ecx, dword [ebp - 0x20]
push 1
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x4c7b5a
push eax
call fcn.0050edcc
add esp, 4
mov dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x4c7b71
push eax
call fcn.0050edcc
add esp, 4
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x4c7b88
push eax
call fcn.0050edcc
add esp, 4
mov dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4c7b9f
push eax
call fcn.0050edcc
add esp, 4
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4c7bb6
push eax
call fcn.0050edcc
add esp, 4
mov dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x4c7bcd
push eax
call fcn.0050edcc
add esp, 4
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4c7be4
push eax
call fcn.0050edcc
add esp, 4
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4c7bfb
push eax
call fcn.0050edcc
add esp, 4
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4c7c12
push eax
call fcn.0050edcc
add esp, 4
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4c7c2d
mov ecx, dword [edi]
push edi
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 0x4c7c49
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x4c7c79
push eax
call fcn.0050edcc
add esp, 4
mov dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x4c7c90
push eax
call fcn.0050edcc
add esp, 4
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x4c7ca7
push eax
call fcn.0050edcc
add esp, 4
mov dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4c7cbe
push eax
call fcn.0050edcc
add esp, 4
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4c7cd5
push eax
call fcn.0050edcc
add esp, 4
mov dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x4c7cec
push eax
call fcn.0050edcc
add esp, 4
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4c7d03
push eax
call fcn.0050edcc
add esp, 4
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4c7d1a
push eax
call fcn.0050edcc
add esp, 4
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4c7d31
push eax
call fcn.0050edcc
add esp, 4
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4c7d4c
mov ecx, dword [edi]
push edi
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 0x4c7d68
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x20]
push 1
mov eax, dword [ecx]
call dword [eax]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004b3510
push 0x80004005
call fcn.004b3510
int3