Function at 0x4c4d40
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x5fcf80
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x50], ebx
mov esi, dword [esp + 0x58]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call edi
test eax, eax
mov ebp, dword [esp + 0x5c]
je 0x4c4f35
push ebp
call edi
test eax, eax
je 0x4c4f35
mov eax, 0xa
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ebx
lea edi, [esp + 0x30]
mov byte [esp + 0x50], 3
call fcn.004c5700
lea edi, [esp + 0x18]
call fcn.004c5700
lea eax, [esp + 0x30]
push eax
push ecx
add esi, 0xfffffff0
mov eax, esi
mov dword [esp + 0x1c], esp
mov edi, esp
call fcn.0040a210
add eax, 0x10
mov dword [edi], eax
call fcn.004c4f90
cmp eax, ebx
je 0x4c4ee9
lea ecx, [esp + 0x18]
push ecx
push ecx
lea eax, [ebp - 0x10]
mov dword [esp + 0x1c], esp
mov edi, esp
call fcn.0040a210
add eax, 0x10
mov dword [edi], eax
call fcn.004c4f90
cmp eax, ebx
je 0x4c4ee9
mov edx, dword [esp + 0x34]
cmp edx, dword [esp + 0x1c]
je 0x4c4e63
lea eax, [esp + 0x18]
call fcn.004c5770
lea eax, [esp + 0x30]
call fcn.004c5770
lea ecx, [esp + 0x58]
call fcn.00403870
lea ecx, [esp + 0x5c]
call fcn.00403870
mov eax, 1
jmp 0x4c4f77
lea ecx, [esp + 0x30]
call fcn.004c3790
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.004c3790
cmp esi, ebx
mov edi, eax
je 0x4c4ec0
lea ecx, [ecx]
cmp edi, ebx
je 0x4c4ec0
mov ecx, dword [edi]
push esi
call fcn.004152c0
test eax, eax
jne 0x4c4e35
mov ecx, dword [edi + 4]
lea eax, [esi + 4]
push eax
call fcn.004152c0
test eax, eax
jne 0x4c4e35
lea ecx, [esp + 0x30]
push ecx
mov eax, esi
call fcn.004c5840
lea edx, [esp + 0x18]
mov esi, eax
push edx
mov eax, edi
call fcn.004c5840
cmp esi, ebx
mov edi, eax
jne 0x4c4e80
lea eax, [esp + 0x18]
call fcn.004c5770
lea eax, [esp + 0x30]
call fcn.004c5770
lea ecx, [esp + 0x58]
call fcn.00403870
lea ecx, [esp + 0x5c]
call fcn.00403870
jmp 0x4c4f75
lea edi, [esp + 0x18]
call fcn.004c5700
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x4c4f03
push eax
call fcn.005d27e0
add esp, 4
lea edi, [esp + 0x30]
call fcn.004c5700
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x4c4f1d
push eax
call fcn.005d27e0
add esp, 4
mov byte [esp + 0x50], bl
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4c4f55
mov ecx, dword [esi]
push esi
jmp 0x4c4f4e
lea eax, [esi - 0x10]
mov byte [esp + 0x50], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c4f55
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x50], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c4f75
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 8