Function at 0x473cc4
Capabilities:
Check if file exists

Disassembly:
push 0x58
mov eax, 0x5df9a5
call fcn.004c2889
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x64], ebx
cmp dword [edi + 0x14], 8
jb 0x473ce1
mov eax, dword [edi]
jmp 0x473ce3
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
je 0x473df3
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.0046cdf5
pop ecx
test al, al
je 0x473de0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x48]
call fcn.00404f90
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x60]
call fcn.004215b0
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.00419480
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 0x473dd4
push esi
lea ecx, [ebp - 0x48]
call fcn.00404f90
push 0xfde9
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x60]
call fcn.00419480
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 0x473e82
mov eax, dword [ebp + 8]
add esi, 0x18
cmp esi, dword [eax + 4]
jne 0x473d6f
mov ebx, dword [ebp - 0x64]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00405040
mov ecx, edi
call fcn.0046d3da
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004051e0
push ecx
mov edx, edi
mov ecx, ebx
call fcn.00473bb5
pop ecx
test al, al
je 0x473f14
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.0046cdf5
pop ecx
test al, al
je 0x473f08
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x48]
call fcn.00404f90
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x60]
call fcn.004215b0
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.00419480
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 0x473ef7
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 0x473f1d
push esi
lea ecx, [ebp - 0x48]
call fcn.00404f90
push 0xfde9
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x60]
call fcn.00419480
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 0x473f23
mov eax, dword [ebp + 8]
add esi, 0x18
cmp esi, dword [eax + 4]
jne 0x473e9e
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.0046d3da
xor al, al
call fcn.004c2833
ret
mov byte [ebp - 4], 6
jmp 0x473e86