Function at 0x473def
Capabilities:
Check if file exists

Disassembly:
push 0x58
mov eax, 0x5df9c5
call fcn.004c299a
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x64], ebx
cmp dword [edi + 0x14], 8
jb 0x473e0c
mov eax, dword [edi]
jmp 0x473e0e
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
je 0x473f1e
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
call fcn.00406d00
and dword [ebp - 4], 0
lea edx, [ebp - 0x28]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0046cf20
pop ecx
test al, al
je 0x473f0b
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x48]
call fcn.00405430
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x60]
call fcn.00421aa0
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.00405430
push 0
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x40]
call fcn.00419950
pop ecx
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.00405680
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 3
mov esi, dword [eax]
cmp esi, dword [eax + 4]
je 0x473eff
push esi
lea ecx, [ebp - 0x48]
call fcn.00405430
push 0xfde9
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x60]
call fcn.00419950
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.004054e0
add bl, 1
jne 0x473fad
mov eax, dword [ebp + 8]
add esi, 0x18
cmp esi, dword [eax + 4]
jne 0x473e9a
mov ebx, dword [ebp - 0x64]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.004054e0
mov ecx, edi
call fcn.0046d505
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405680
push ecx
mov edx, edi
mov ecx, ebx
call fcn.00473ce0
pop ecx
test al, al
je 0x47403f
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.00406d00
push 0xffffffffffffffff
lea edx, [ebp - 0x28]
mov dword [ebp - 4], 6
mov ecx, edi
call fcn.0046cf20
pop ecx
test al, al
je 0x474033
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x48]
call fcn.00405430
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x60]
call fcn.00421aa0
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 7
call fcn.00405430
push ebx
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x40]
call fcn.00419950
pop ecx
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 9
call fcn.00405680
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 9
mov esi, dword [eax]
jmp 0x474022
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004054e0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405680
mov al, 1
jmp 0x474048
push esi
lea ecx, [ebp - 0x48]
call fcn.00405430
push 0xfde9
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x60]
call fcn.00419950
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.004054e0
add bl, 1
jne 0x47404e
mov eax, dword [ebp + 8]
add esi, 0x18
cmp esi, dword [eax + 4]
jne 0x473fc9
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.004054e0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405680
mov ecx, edi
call fcn.0046d505
xor al, al
call fcn.004c2944
ret
mov byte [ebp - 4], 6
jmp 0x473fb1