Function at 0x458b70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [0x5246a8]
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.00420570
push ebx
push str._verclsid.exe
lea ecx, [ebp - 0x3c]
push 0x29
push ecx
call fcn.00420570
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.00406040
cmp dword [esi + 0x10], ebx
je 0x459082
mov ecx, esi
call fcn.00417930
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x459082
mov ecx, esi
call fcn.00417930
push eax
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
je 0x459082
lea eax, [ebp - 0x74]
push eax
push esi
call fcn.0045b070
add esp, 8
test al, al
jne 0x458c86
lea ecx, [ebp - 0x3c]
push ecx
push esi
call fcn.0045b070
add esp, 8
test al, al
jne 0x458c86
mov edi, 8
cmp dword [ebp - 0xc], edi
jb 0x458c46
mov edx, dword [ebp - 0x20]
push edx
call fcn.00406d09
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 0x458c68
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406d09
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 0x4590d7
mov eax, dword [ebp - 0x74]
push eax
jmp 0x4590cf
cmp dword [edi + 0x10], ebx
je 0x459082
push ebx
lea ecx, [ebp - 0xb4]
call fcn.00405a80
push edi
lea ecx, [ebp - 0xb4]
call fcn.004062b0
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0xb4]
call fcn.00408190
lea ecx, [ebp - 0xd0]
push ecx
lea ecx, [ebp - 0xb4]
call fcn.0040fcb0
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.004066a0
lea ecx, [ebp - 0xd0]
call fcn.00406f50
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.0045b070
add esp, 8
test al, al
jne 0x458d34
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x58]
push edx
call fcn.0045b070
add esp, 8
test al, al
jne 0x458d34
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.00458b00
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 0x458e29
mov edi, 8
cmp dword [ebp - 0x44], edi
jb 0x458d7d
mov eax, dword [ebp - 0x58]
push eax
call fcn.00406d09
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 0x458dbb
mov edx, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xe4]
push edx
lea eax, [ebp - 0xdc]
push eax
push ecx
push esi
call fcn.00406d20
mov edx, dword [ebp - 0xe8]
push edx
call fcn.00406d09
add esp, 0x14
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0xe8], ebx
mov dword [ebp - 0xe4], ebx
mov dword [ebp - 0xe0], ebx
call fcn.0042f340
cmp dword [ebp - 0xc], edi
jb 0x458de9
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406d09
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 0x458e0b
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00406d09
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 0x4590d7
mov ecx, dword [ebp - 0x74]
push ecx
jmp 0x4590cf
cmp eax, ebx
jbe 0x458f00
xor edi, edi
mov edx, dword [esi + edi + 0x10]
push 2
add esi, edi
push 0x4ec918
push edx
push 0
mov ecx, esi
call fcn.004071f0
test eax, eax
je 0x458ee8
mov eax, dword [esi + 0x10]
push 2
push 0x4ec910
push eax
push 0
mov ecx, esi
call fcn.004071f0
test eax, eax
je 0x458ebe
mov ecx, dword [esi + 0x10]
push 2
push 0x4ec908
push ecx
push 0
mov ecx, esi
call fcn.004071f0
test eax, eax
je 0x458ebe
mov edx, dword [esi + 0x10]
push 2
push 0x4ec900
push edx
push 0
mov ecx, esi
call fcn.004071f0
test eax, eax
jne 0x458fcf
inc ebx
add edi, 0x1c
cmp ebx, dword [ebp - 0xd8]
je 0x458fcf
mov eax, dword [ebp - 0xe8]
add eax, edi
push eax
call fcn.00457580
jmp 0x458edd
inc ebx
add edi, 0x1c
cmp ebx, dword [ebp - 0xd8]
je 0x458fcf
mov ecx, dword [ebp - 0xe8]
lea eax, [edi + ecx]
push eax
call fcn.004574e0
add esp, 4
test al, al
je 0x458fcf
mov esi, dword [ebp - 0xe8]
inc ebx
add edi, 0x1c
cmp ebx, dword [ebp - 0xd8]
jb 0x458e33
xor ebx, ebx
mov edi, 8
mov byte [ebp - 0xd1], 1
cmp dword [ebp - 0x44], edi
jb 0x458f23
mov edx, dword [ebp - 0x58]
push edx
call fcn.00406d09
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 0x458f61
mov ecx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0xe4]
push ecx
lea edx, [ebp - 0xdc]
push edx
push eax
push esi
call fcn.00406d20
mov ecx, dword [ebp - 0xe8]
push ecx
call fcn.00406d09
add esp, 0x14
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0xe8], ebx
mov dword [ebp - 0xe4], ebx
mov dword [ebp - 0xe0], ebx
call fcn.0042f340
cmp dword [ebp - 0xc], edi
jb 0x458f8f
mov edx, dword [ebp - 0x20]
push edx
call fcn.00406d09
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 0x458fb1
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406d09
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 0x4590d7
mov eax, dword [ebp - 0x74]
push eax
jmp 0x4590cf
mov edi, 8
cmp dword [ebp - 0x44], edi
jb 0x458fe5
mov edx, dword [ebp - 0x58]
push edx
call fcn.00406d09
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 0x45902c
mov ecx, dword [ebp - 0xd8]
push ecx
mov ecx, dword [ebp - 0xe4]
lea edx, [ebp - 0xdc]
push edx
push ecx
push eax
call fcn.00406d20
mov edx, dword [ebp - 0xe8]
push edx
call fcn.00406d09
add esp, 0x14
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0xe8], esi
mov dword [ebp - 0xe4], esi
mov dword [ebp - 0xe0], esi
call fcn.0042f340
cmp dword [ebp - 0xc], edi
jb 0x45905a
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406d09
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 0x459077
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00406d09
add esp, 4
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], esi
jmp 0x458e11
mov edi, 8
cmp dword [ebp - 0xc], edi
jb 0x459098
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406d09
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 0x4590ba
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00406d09
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 0x4590d7
mov edx, dword [ebp - 0x74]
push edx
call fcn.00406d09
add esp, 4
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0xd1]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401306
mov esp, ebp
pop ebp
ret