Function at 0x4d9380
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ec870
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 0x4d96f3
call fcn.00510740
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4d96f3
mov dword [ebp - 0x24], 0
call fcn.004b4040
mov ecx, eax
test ecx, ecx
je 0x4d9709
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
call fcn.004b4040
mov ecx, eax
test ecx, ecx
je 0x4d9713
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 0x4d951b
sub eax, ecx
sar eax, 1
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x4d951b
xor esi, esi
test eax, eax
cmovns esi, eax
cmp esi, dword [ecx - 0xc]
jl 0x4d946a
add ecx, 0xfffffff0
push ecx
call fcn.004bfdc0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
jmp 0x4d9496
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x4d947a
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x4d9486
call fcn.004b4040
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 0x4d94c1
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 0x4d9518
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 0x4d9512
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 0x4d9536
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 0x4d96ab
cmp dword [ebp - 0x24], 0
je 0x4d96ab
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 0x4d95e9
cmp dword [esi - 0xc], 0
jl 0x4d95e9
push eax
push esi
call fcn.0058d0d6
add esp, 8
test eax, eax
je 0x4d95e9
sub eax, esi
sar eax, 1
jne 0x4d95e9
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x1c], 1
jmp 0x4d95f3
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 0x4d964a
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]
lea ecx, [ebp - 0x64]
call fcn.004c34a0
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4d9676
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 0x4d9692
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
lea ecx, [ebp - 0x64]
call fcn.004c34a0
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4d96ce
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 0x4d96ea
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