Function at 0x46f880
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [0x553948]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push str._verclsid.exe
lea eax, [ebp - 0x74]
push 0x25
push eax
mov byte [ebp - 0xd1], 0
call fcn.0042c160
push ebx
push str._verclsid.exe
lea ecx, [ebp - 0x3c]
push 0x29
push ecx
call fcn.0042c160
add esp, 0x20
push 0xc
xor edx, edx
push str.verclsid.exe
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], ebx
mov word [ebp - 0x20], dx
call fcn.004063e0
cmp dword [esi + 0x10], ebx
je 0x46fd92
mov ecx, esi
call fcn.0041a1e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46fd92
mov ecx, esi
call fcn.0041a1e0
push eax
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
je 0x46fd92
lea eax, [ebp - 0x74]
push eax
push esi
call fcn.004407c0
add esp, 8
test al, al
jne 0x46f996
lea ecx, [ebp - 0x3c]
push ecx
push esi
call fcn.004407c0
add esp, 8
test al, al
jne 0x46f996
mov edi, 8
cmp dword [ebp - 0xc], edi
jb 0x46f956
mov edx, dword [ebp - 0x20]
push edx
call fcn.00406fa9
add esp, 4
xor eax, eax
mov esi, 7
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov word [ebp - 0x20], ax
cmp dword [ebp - 0x28], edi
jb 0x46f978
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406fa9
add esp, 4
xor edx, edx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x3c], dx
cmp dword [ebp - 0x60], edi
jb 0x46fde7
mov eax, dword [ebp - 0x74]
push eax
jmp 0x46fddf
cmp dword [edi + 0x10], ebx
je 0x46fd92
push ebx
lea ecx, [ebp - 0xb4]
call fcn.00405e20
push edi
lea ecx, [ebp - 0xb4]
call fcn.00406650
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0xb4]
call fcn.004084d0
lea ecx, [ebp - 0xd0]
push ecx
lea ecx, [ebp - 0xb4]
call fcn.00410670
push 0xffffffffffffffff
push ebx
xor edx, edx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], ebx
mov word [ebp - 0x58], dx
call fcn.00406a40
lea ecx, [ebp - 0xd0]
call fcn.004071f0
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.004407c0
add esp, 8
test al, al
jne 0x46fa44
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x58]
push edx
call fcn.004407c0
add esp, 8
test al, al
jne 0x46fa44
mov ecx, dword [ebp - 0xe8]
lea eax, [ebp - 0x58]
push eax
push ecx
lea edx, [ebp - 0xd8]
push edx
lea ecx, [ebp - 0xe8]
call fcn.0046f810
mov ecx, dword [ebp - 0xe4]
mov esi, dword [ebp - 0xe8]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xd8], eax
jne 0x46fb39
mov edi, 8
cmp dword [ebp - 0x44], edi
jb 0x46fa8d
mov eax, dword [ebp - 0x58]
push eax
call fcn.00406fa9
mov esi, dword [ebp - 0xe8]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], ebx
mov word [ebp - 0x58], cx
cmp esi, ebx
je 0x46facb
mov edx, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xe4]
push edx
lea eax, [ebp - 0xdc]
push eax
push ecx
push esi
call fcn.00406fc0
mov edx, dword [ebp - 0xe8]
push edx
call fcn.00406fa9
add esp, 0x14
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0xe8], ebx
mov dword [ebp - 0xe4], ebx
mov dword [ebp - 0xe0], ebx
call fcn.0043b680
cmp dword [ebp - 0xc], edi
jb 0x46faf9
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406fa9
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov word [ebp - 0x20], cx
cmp dword [ebp - 0x28], edi
jb 0x46fb1b
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00406fa9
add esp, 4
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], ebx
xor eax, eax
mov word [ebp - 0x3c], ax
cmp dword [ebp - 0x60], edi
jb 0x46fde7
mov ecx, dword [ebp - 0x74]
push ecx
jmp 0x46fddf
cmp eax, ebx
jbe 0x46fc10
xor edi, edi
mov edx, dword [esi + edi + 0x10]
push 2
add esi, edi
push 0x518798
push edx
push 0
mov ecx, esi
call fcn.00407490
test eax, eax
je 0x46fbf8
mov eax, dword [esi + 0x10]
push 2
push 0x518790
push eax
push 0
mov ecx, esi
call fcn.00407490
test eax, eax
je 0x46fbce
mov ecx, dword [esi + 0x10]
push 2
push 0x518788
push ecx
push 0
mov ecx, esi
call fcn.00407490
test eax, eax
je 0x46fbce
mov edx, dword [esi + 0x10]
push 2
push 0x518780
push edx
push 0
mov ecx, esi
call fcn.00407490
test eax, eax
jne 0x46fcdf
inc ebx
add edi, 0x1c
cmp ebx, dword [ebp - 0xd8]
je 0x46fcdf
mov eax, dword [ebp - 0xe8]
add eax, edi
push eax
call fcn.0046d9e0
jmp 0x46fbed
inc ebx
add edi, 0x1c
cmp ebx, dword [ebp - 0xd8]
je 0x46fcdf
mov ecx, dword [ebp - 0xe8]
lea eax, [edi + ecx]
push eax
call fcn.0046d980
add esp, 4
test al, al
je 0x46fcdf
mov esi, dword [ebp - 0xe8]
inc ebx
add edi, 0x1c
cmp ebx, dword [ebp - 0xd8]
jb 0x46fb43
xor ebx, ebx
mov edi, 8
mov byte [ebp - 0xd1], 1
cmp dword [ebp - 0x44], edi
jb 0x46fc33
mov edx, dword [ebp - 0x58]
push edx
call fcn.00406fa9
mov esi, dword [ebp - 0xe8]
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], ebx
mov word [ebp - 0x58], ax
cmp esi, ebx
je 0x46fc71
mov ecx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0xe4]
push ecx
lea edx, [ebp - 0xdc]
push edx
push eax
push esi
call fcn.00406fc0
mov ecx, dword [ebp - 0xe8]
push ecx
call fcn.00406fa9
add esp, 0x14
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0xe8], ebx
mov dword [ebp - 0xe4], ebx
mov dword [ebp - 0xe0], ebx
call fcn.0043b680
cmp dword [ebp - 0xc], edi
jb 0x46fc9f
mov edx, dword [ebp - 0x20]
push edx
call fcn.00406fa9
add esp, 4
xor eax, eax
mov esi, 7
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov word [ebp - 0x20], ax
cmp dword [ebp - 0x28], edi
jb 0x46fcc1
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406fa9
add esp, 4
xor edx, edx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x3c], dx
cmp dword [ebp - 0x60], edi
jb 0x46fde7
mov eax, dword [ebp - 0x74]
push eax
jmp 0x46fddf
mov edi, 8
cmp dword [ebp - 0x44], edi
jb 0x46fcf5
mov edx, dword [ebp - 0x58]
push edx
call fcn.00406fa9
add esp, 4
xor eax, eax
xor esi, esi
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0xe8]
mov ebx, 7
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], esi
cmp eax, esi
je 0x46fd3c
mov ecx, dword [ebp - 0xd8]
push ecx
mov ecx, dword [ebp - 0xe4]
lea edx, [ebp - 0xdc]
push edx
push ecx
push eax
call fcn.00406fc0
mov edx, dword [ebp - 0xe8]
push edx
call fcn.00406fa9
add esp, 0x14
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0xe8], esi
mov dword [ebp - 0xe4], esi
mov dword [ebp - 0xe0], esi
call fcn.0043b680
cmp dword [ebp - 0xc], edi
jb 0x46fd6a
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406fa9
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esi
mov word [ebp - 0x20], cx
cmp dword [ebp - 0x28], edi
jb 0x46fd87
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00406fa9
add esp, 4
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], esi
jmp 0x46fb21
mov edi, 8
cmp dword [ebp - 0xc], edi
jb 0x46fda8
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406fa9
add esp, 4
xor edx, edx
mov esi, 7
mov word [ebp - 0x20], dx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], esi
cmp dword [ebp - 0x28], edi
jb 0x46fdca
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00406fa9
add esp, 4
xor ecx, ecx
mov word [ebp - 0x3c], cx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x60], edi
jb 0x46fde7
mov edx, dword [ebp - 0x74]
push edx
call fcn.00406fa9
add esp, 4
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0xd1]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401316
mov esp, ebp
pop ebp
ret