Function at 0x46b510
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [0x54e938]
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.00429c80
push ebx
push str._verclsid.exe
lea ecx, [ebp - 0x3c]
push 0x29
push ecx
call fcn.00429c80
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.00406300
cmp dword [esi + 0x10], ebx
je 0x46ba22
mov ecx, esi
call fcn.0041a2d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46ba22
mov ecx, esi
call fcn.0041a2d0
push eax
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
je 0x46ba22
lea eax, [ebp - 0x74]
push eax
push esi
call fcn.0043dfb0
add esp, 8
test al, al
jne 0x46b626
lea ecx, [ebp - 0x3c]
push ecx
push esi
call fcn.0043dfb0
add esp, 8
test al, al
jne 0x46b626
mov edi, 8
cmp dword [ebp - 0xc], edi
jb 0x46b5e6
mov edx, dword [ebp - 0x20]
push edx
call fcn.00406ec9
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 0x46b608
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406ec9
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 0x46ba77
mov eax, dword [ebp - 0x74]
push eax
jmp 0x46ba6f
cmp dword [edi + 0x10], ebx
je 0x46ba22
push ebx
lea ecx, [ebp - 0xb4]
call fcn.00405d40
push edi
lea ecx, [ebp - 0xb4]
call fcn.00406570
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0xb4]
call fcn.00408350
lea ecx, [ebp - 0xd0]
push ecx
lea ecx, [ebp - 0xb4]
call fcn.004104f0
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.00406960
lea ecx, [ebp - 0xd0]
call fcn.00407110
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.0043dfb0
add esp, 8
test al, al
jne 0x46b6d4
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x58]
push edx
call fcn.0043dfb0
add esp, 8
test al, al
jne 0x46b6d4
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.0046b4a0
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 0x46b7c9
mov edi, 8
cmp dword [ebp - 0x44], edi
jb 0x46b71d
mov eax, dword [ebp - 0x58]
push eax
call fcn.00406ec9
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 0x46b75b
mov edx, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xe4]
push edx
lea eax, [ebp - 0xdc]
push eax
push ecx
push esi
call fcn.00406ee0
mov edx, dword [ebp - 0xe8]
push edx
call fcn.00406ec9
add esp, 0x14
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0xe8], ebx
mov dword [ebp - 0xe4], ebx
mov dword [ebp - 0xe0], ebx
call fcn.00438ee0
cmp dword [ebp - 0xc], edi
jb 0x46b789
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406ec9
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 0x46b7ab
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00406ec9
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 0x46ba77
mov ecx, dword [ebp - 0x74]
push ecx
jmp 0x46ba6f
cmp eax, ebx
jbe 0x46b8a0
xor edi, edi
mov edx, dword [esi + edi + 0x10]
push 2
add esi, edi
push 0x514620
push edx
push 0
mov ecx, esi
call fcn.004073b0
test eax, eax
je 0x46b888
mov eax, dword [esi + 0x10]
push 2
push 0x514618
push eax
push 0
mov ecx, esi
call fcn.004073b0
test eax, eax
je 0x46b85e
mov ecx, dword [esi + 0x10]
push 2
push 0x514610
push ecx
push 0
mov ecx, esi
call fcn.004073b0
test eax, eax
je 0x46b85e
mov edx, dword [esi + 0x10]
push 2
push 0x514608
push edx
push 0
mov ecx, esi
call fcn.004073b0
test eax, eax
jne 0x46b96f
inc ebx
add edi, 0x1c
cmp ebx, dword [ebp - 0xd8]
je 0x46b96f
mov eax, dword [ebp - 0xe8]
add eax, edi
push eax
call fcn.00469b70
jmp 0x46b87d
inc ebx
add edi, 0x1c
cmp ebx, dword [ebp - 0xd8]
je 0x46b96f
mov ecx, dword [ebp - 0xe8]
lea eax, [edi + ecx]
push eax
call fcn.00469b10
add esp, 4
test al, al
je 0x46b96f
mov esi, dword [ebp - 0xe8]
inc ebx
add edi, 0x1c
cmp ebx, dword [ebp - 0xd8]
jb 0x46b7d3
xor ebx, ebx
mov edi, 8
mov byte [ebp - 0xd1], 1
cmp dword [ebp - 0x44], edi
jb 0x46b8c3
mov edx, dword [ebp - 0x58]
push edx
call fcn.00406ec9
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 0x46b901
mov ecx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0xe4]
push ecx
lea edx, [ebp - 0xdc]
push edx
push eax
push esi
call fcn.00406ee0
mov ecx, dword [ebp - 0xe8]
push ecx
call fcn.00406ec9
add esp, 0x14
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0xe8], ebx
mov dword [ebp - 0xe4], ebx
mov dword [ebp - 0xe0], ebx
call fcn.00438ee0
cmp dword [ebp - 0xc], edi
jb 0x46b92f
mov edx, dword [ebp - 0x20]
push edx
call fcn.00406ec9
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 0x46b951
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406ec9
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 0x46ba77
mov eax, dword [ebp - 0x74]
push eax
jmp 0x46ba6f
mov edi, 8
cmp dword [ebp - 0x44], edi
jb 0x46b985
mov edx, dword [ebp - 0x58]
push edx
call fcn.00406ec9
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 0x46b9cc
mov ecx, dword [ebp - 0xd8]
push ecx
mov ecx, dword [ebp - 0xe4]
lea edx, [ebp - 0xdc]
push edx
push ecx
push eax
call fcn.00406ee0
mov edx, dword [ebp - 0xe8]
push edx
call fcn.00406ec9
add esp, 0x14
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0xe8], esi
mov dword [ebp - 0xe4], esi
mov dword [ebp - 0xe0], esi
call fcn.00438ee0
cmp dword [ebp - 0xc], edi
jb 0x46b9fa
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406ec9
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 0x46ba17
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00406ec9
add esp, 4
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], esi
jmp 0x46b7b1
mov edi, 8
cmp dword [ebp - 0xc], edi
jb 0x46ba38
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406ec9
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 0x46ba5a
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00406ec9
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 0x46ba77
mov edx, dword [ebp - 0x74]
push edx
call fcn.00406ec9
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