Function at 0x474ba0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5093be
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x556620]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x7c]
mov edi, dword [ebp + 0xc]
push 0
push str._verclsid.exe
push 0x25
push eax
mov byte [ebp - 0xbd], 0
call fcn.0042b3f0
push 0
push str._verclsid.exe
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 0
push 0x29
push eax
call fcn.0042b3f0
add esp, 0x20
push 0xc
xor eax, eax
mov byte [ebp - 4], 1
push str.verclsid.exe
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
call fcn.004073d0
cmp dword [esi + 0x10], 0
mov byte [ebp - 4], 2
je 0x474f6b
mov ecx, esi
call fcn.0041e2d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x474f6b
mov ecx, esi
call fcn.0041e2d0
push eax
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
je 0x474f6b
lea eax, [ebp - 0x7c]
push eax
push esi
call fcn.00441880
add esp, 8
test al, al
jne 0x474c8f
lea eax, [ebp - 0x4c]
push eax
push esi
call fcn.00441880
add esp, 8
test al, al
je 0x474f6b
cmp dword [edi + 0x10], 0
je 0x474f6b
push 0x30
lea eax, [ebp - 0xac]
push 0
push eax
call fcn.004dead0
add esp, 0xc
lea ecx, [ebp - 0xac]
push 0
call fcn.00407290
push edi
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 3
call fcn.00407630
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0xac]
push eax
movq qword [ebp - 0x1c], xmm0
call fcn.00409720
lea eax, [ebp - 0xe0]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0xac]
call fcn.00415740
xor ecx, ecx
mov byte [ebp - 4], 5
push 0xffffffffffffffff
push ecx
mov word [ebp - 0x64], cx
lea ecx, [ebp - 0x64]
push eax
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], 0
call fcn.00407980
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 7
call fcn.00408450
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.00441880
add esp, 8
test al, al
jne 0x474d6d
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00441880
add esp, 8
test al, al
jne 0x474d6d
lea eax, [ebp - 0x64]
push eax
push 1
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040fbd0
mov ecx, dword [ebp - 0x18]
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x1c]
sub ecx, edi
imul ecx
mov dword [ebp - 0xc8], edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xc4], eax
je 0x474efe
xor esi, esi
test eax, eax
je 0x474ef7
mov eax, dword [ebp - 0xc8]
xor edi, edi
lea ebx, [ebx]
add eax, edi
push 2
push 0x518d30
mov ecx, eax
push dword [eax + 0x10]
push 0
call fcn.00408670
test eax, eax
je 0x474eda
mov eax, dword [ebp - 0xc8]
push 2
add eax, edi
push 0x518d38
mov ecx, eax
push dword [eax + 0x10]
push 0
call fcn.00408670
test eax, eax
je 0x474e98
mov eax, dword [ebp - 0xc8]
push 2
add eax, edi
push 0x518d40
mov ecx, eax
push dword [eax + 0x10]
push 0
call fcn.00408670
test eax, eax
je 0x474e98
mov eax, dword [ebp - 0xc8]
add eax, edi
push 0x518d48
push eax
call fcn.00420a90
add esp, 8
test al, al
je 0x474e4f
inc esi
add edi, 0x18
cmp esi, dword [ebp - 0xc4]
je 0x474e4f
mov eax, dword [ebp - 0x1c]
add eax, edi
push eax
call fcn.00473240
add esp, 4
test al, al
jne 0x474eda
mov ecx, dword [ebp - 0x1c]
cmp dword [ebp - 0x50], 8
jb 0x474e66
push dword [ebp - 0x64]
call fcn.0040823e
mov ecx, dword [ebp - 0x1c]
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], ax
test ecx, ecx
je 0x474f5c
push dword [ebp - 0xc4]
lea eax, [ebp - 0xbe]
push eax
push dword [ebp - 0x18]
push ecx
jmp 0x474f37
inc esi
add edi, 0x18
cmp esi, dword [ebp - 0xc4]
je 0x474e4f
mov ecx, dword [ebp - 0x1c]
xorps xmm0, xmm0
cmp dword [ecx + edi + 0x10], 0
lea eax, [ecx + edi]
movdqu xmmword [ebp - 0xbc], xmm0
je 0x474e52
cmp dword [eax + 0x14], 8
jb 0x474ec4
mov eax, dword [eax]
lea ecx, [ebp - 0xbc]
push ecx
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
js 0x474e4f
inc esi
add edi, 0x18
cmp esi, dword [ebp - 0xc4]
jae 0x474ef4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc8], eax
jmp 0x474db0
mov edi, dword [ebp - 0x1c]
mov byte [ebp - 0xbd], 1
cmp dword [ebp - 0x50], 8
jb 0x474f12
push dword [ebp - 0x64]
call fcn.0040823e
mov edi, dword [ebp - 0x1c]
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
mov dword [ebp - 0x54], eax
test edi, edi
je 0x474f5c
push dword [ebp - 0xc4]
lea eax, [ebp - 0xbe]
push eax
push dword [ebp - 0x18]
push edi
call fcn.00408200
push dword [ebp - 0x1c]
call fcn.0040823e
add esp, 0x14
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 2
call fcn.0043bf70
cmp dword [ebp - 0x20], 8
jb 0x474f7c
push dword [ebp - 0x34]
call fcn.0040823e
add esp, 4
xor eax, eax
mov dword [ebp - 0x20], 7
cmp dword [ebp - 0x38], 8
mov word [ebp - 0x34], ax
mov dword [ebp - 0x24], eax
jb 0x474f9d
push dword [ebp - 0x4c]
call fcn.0040823e
add esp, 4
xor eax, eax
mov dword [ebp - 0x38], 7
cmp dword [ebp - 0x68], 8
mov word [ebp - 0x4c], ax
mov dword [ebp - 0x3c], eax
jb 0x474fbe
push dword [ebp - 0x7c]
call fcn.0040823e
add esp, 4
mov al, byte [ebp - 0xbd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401580
mov esp, ebp
pop ebp
ret