Function at 0x473c51
Capabilities:
Check if file exists

Disassembly:
push 0x58
mov eax, 0x5df995
call fcn.004c281e
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x64], ebx
cmp dword [edi + 0x14], 8
jb 0x473c6e
mov eax, dword [edi]
jmp 0x473c70
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
je 0x473d80
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
call fcn.00406850
and dword [ebp - 4], 0
lea edx, [ebp - 0x28]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0046cd81
pop ecx
test al, al
je 0x473d6d
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x48]
call fcn.00404f90
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x60]
call fcn.004215d0
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.00404f90
push 0
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x40]
call fcn.00419490
pop ecx
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.004051e0
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 3
mov esi, dword [eax]
cmp esi, dword [eax + 4]
je 0x473d61
push esi
lea ecx, [ebp - 0x48]
call fcn.00404f90
push 0xfde9
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x60]
call fcn.00419490
pop ecx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x60]
cmp dword [ebp - 0x4c], 8
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x60]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, eax
mov byte [ebp - 4], 3
neg ebx
lea ecx, [ebp - 0x60]
sbb bl, bl
call fcn.00405040
add bl, 1
jne 0x473e0f
mov eax, dword [ebp + 8]
add esi, 0x18
cmp esi, dword [eax + 4]
jne 0x473cfc
mov ebx, dword [ebp - 0x64]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00405040
mov ecx, edi
call fcn.0046d366
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004051e0
push ecx
mov edx, edi
mov ecx, ebx
call fcn.00473b42
pop ecx
test al, al
je 0x473ea1
xor ebx, ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], ebx
push ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
call fcn.00406850
push 0xffffffffffffffff
lea edx, [ebp - 0x28]
mov dword [ebp - 4], 6
mov ecx, edi
call fcn.0046cd81
pop ecx
test al, al
je 0x473e95
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x48]
call fcn.00404f90
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x60]
call fcn.004215d0
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 7
call fcn.00404f90
push ebx
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x40]
call fcn.00419490
pop ecx
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 9
call fcn.004051e0
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 9
mov esi, dword [eax]
jmp 0x473e84
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00405040
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004051e0
mov al, 1
jmp 0x473eaa
push esi
lea ecx, [ebp - 0x48]
call fcn.00404f90
push 0xfde9
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x60]
call fcn.00419490
pop ecx
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x60]
cmp dword [ebp - 0x4c], 8
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x60]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, eax
mov byte [ebp - 4], 9
neg ebx
lea ecx, [ebp - 0x60]
sbb bl, bl
call fcn.00405040
add bl, 1
jne 0x473eb0
mov eax, dword [ebp + 8]
add esi, 0x18
cmp esi, dword [eax + 4]
jne 0x473e2b
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.00405040
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004051e0
mov ecx, edi
call fcn.0046d366
xor al, al
call fcn.004c27c8
ret
mov byte [ebp - 4], 6
jmp 0x473e13