Function at 0x401e51
Capabilities:
Check if file exists

Disassembly:
push 0xf4
mov eax, 0x45c0e9
call fcn.00454457
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xb0], edi
cmp dword [esi + 0x14], 8
jb 0x401e76
mov eax, dword [esi]
jmp 0x401e78
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40238d
push ecx
push 0xa
xor edx, edx
pop ecx
call fcn.00401d51
pop ecx
push 2
pop ebx
test eax, eax
je 0x401f3f
cmp edi, 1
je 0x401eab
cmp edi, ebx
jne 0x401f3f
cmp dword [esi + 0x14], 8
jb 0x401eb3
mov esi, dword [esi]
push esi
call dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
mov esi, eax
mov dword [ebp - 0xc8], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
test esi, esi
jne 0x401ecf
mov edi, ebx
jmp 0x401f31
mov dword [ebp - 0xa0], ebx
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 1
push eax
push 0x464130
push 0x17
push ebx
push 0x464190
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x401efb
mov edi, ebx
jmp 0x401f1e
mov eax, dword [ebp - 0xa0]
push SysReAllocString
mov ecx, dword [eax]
cmp edi, 1
jne 0x401f11
push esi
push ebx
jmp 0x401f13
push ebx
push esi
push eax
call dword [ecx + 0x40]
mov edi, eax
not edi
shr edi, 0x1f
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0xa0]
test ecx, ecx
je 0x401f31
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, edi
jmp 0x40238d
lea ecx, [ebp - 0xc4]
call fcn.004024e2
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0xc4]
test eax, eax
jne 0x401f5e
xor esi, esi
jmp 0x40237d
lea eax, [ebp - 0x7c]
push esi
mov ecx, eax
mov dword [ebp - 0x80], eax
call fcn.00402a24
push 3
pop eax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x80]
lea eax, [ebp - 0x98]
push eax
call fcn.0040291d
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 4
call fcn.004028fa
xor ebx, ebx
mov dword [ebp - 0xc0], ebx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x80]
cmp dword [eax + 0x14], 8
jb 0x401fa4
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xf0]
call fcn.00402c1b
lea esi, [ebp - 0xc0]
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0xc4]
push esi
sub esp, 0x10
mov esi, eax
mov edi, esp
mov edx, dword [ecx]
push ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [edx + 0x24]
test eax, eax
lea eax, [ebp - 0xf0]
push eax
sets byte [ebp - 0x99]
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp byte [ebp - 0x99], 0
je 0x401ff8
mov esi, ebx
jmp 0x40234a
mov dword [ebp - 0xbc], ebx
mov byte [ebp - 4], 7
lea eax, [ebp - 0x98]
cmp dword [ebp - 0x84], 8
lea ecx, [ebp - 0xb4]
mov esi, dword [ebp - 0xc0]
cmovae eax, dword [ebp - 0x98]
push eax
call fcn.00402bcd
lea edx, [ebp - 0xbc]
mov byte [ebp - 4], 8
mov ecx, dword [esi]
push edx
push dword [eax]
push esi
call dword [ecx + 0x30]
test eax, eax
mov byte [ebp - 4], 7
push dword [ebp - 0xb4]
sets byte [ebp - 0x99]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp byte [ebp - 0x99], 0
je 0x402064
mov esi, ebx
jmp 0x402336
mov edx, dword [ebp - 0xb0]
lea ecx, [ebp - 0x4c]
call fcn.004027da
xor eax, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 0xa
cmp byte [ebp - 0x30], al
je 0x4020ef
push str.explorer.exe
lea ecx, [ebp - 0x64]
call fcn.00401647
mov byte [ebp - 4], 0xb
mov eax, dword fs:[0x30]
mov ecx, dword [eax + 0x10]
add ecx, 0x38
mov dword [ebp - 0x2c], ecx
movzx eax, word [ecx]
push eax
push dword [ecx + 4]
lea ecx, [ebp - 0x28]
call fcn.0040192a
cmp dword [ebp - 0x50], 8
lea eax, [ebp - 0x64]
cmovae eax, dword [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x2c]
push dword [eax + 4]
call fcn.00436e5b
mov ax, word [ebp - 0x54]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
push ebx
push 1
mov byte [ebp - 4], 0xa
mov word [ecx], ax
lea ecx, [ebp - 0x64]
call fcn.00401bd2
cmp dword [ebp - 0x3c], 0
je 0x40214c
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x100]
cmovae eax, dword [ebp - 0x4c]
push eax
call fcn.00402c1b
sub esp, 0x10
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0xbc]
mov edi, esp
mov esi, eax
push ecx
mov edx, dword [ecx]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [edx + 0x5c]
xor ecx, ecx
test eax, eax
lea eax, [ebp - 0x100]
setns cl
push eax
mov dword [ebp - 0xa0], ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov esi, dword [ebp - 0xa0]
jmp 0x402323
cmp dword [ebp - 0x34], 0xffffffff
je 0x402321
mov dword [ebp - 0xac], ebx
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0xac]
mov eax, dword [ebp - 0xbc]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x58]
test eax, eax
js 0x4023f3
mov eax, dword [ebp - 0xac]
lea edx, [ebp - 0xb0]
mov dword [ebp - 0xb0], ebx
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
js 0x4023f3
push str.Shell32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ecx, eax
mov eax, ebx
test ecx, ecx
cmovne eax, ecx
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xcc], eax
test eax, eax
je 0x4023f3
mov esi, dword [ebp - 0x34]
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0xb4]
mov edx, esi
call fcn.00402b99
test eax, eax
je 0x4021ef
movzx ecx, word [eax]
add eax, 2
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
jmp 0x4021f1
mov eax, ebx
mov dword [ebp - 0xa8], eax
test eax, eax
jne 0x402202
mov esi, ebx
jmp 0x4023de
mov ecx, ebx
mov dword [ebp - 0xa0], ebx
cmp dword [ebp - 0xb0], ecx
jle 0x4022fa
mov dword [ebp - 0xa4], ebx
push 3
pop eax
mov word [ebp - 0xe0], ax
mov dword [ebp - 0xd8], ecx
lea edx, [ebp - 0xa4]
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0xac]
lea esi, [ebp - 0xe0]
push edx
sub esp, 0x10
mov edi, esp
mov ecx, dword [eax]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x28]
test eax, eax
lea eax, [ebp - 0xe0]
push eax
sets byte [ebp - 0x99]
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp byte [ebp - 0x99], 0
jne 0x4023c2
mov dword [ebp - 0xb8], ebx
mov byte [ebp - 4], 0x12
lea edx, [ebp - 0xb8]
mov eax, dword [ebp - 0xa4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
js 0x4023b2
push ebx
push 0x400
push dword [ebp - 0xa8]
push dword [ebp - 0xb8]
call dword [sym.imp.OLEAUT32.dll_VarR8Pow]
cmp eax, 1
je 0x402395
push dword [ebp - 0xb8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x4022db
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xa0]
inc ecx
mov dword [ebp - 0xa0], ecx
cmp ecx, dword [ebp - 0xb0]
jl 0x402216
mov eax, dword [ebp - 0xa8]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp - 0xb4]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x402321
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, ebx
lea ecx, [ebp - 0x2c]
call fcn.00401e19
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.00401bd2
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0xbc]
test eax, eax
je 0x40234a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xc0]
test eax, eax
je 0x40235e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
push 1
lea ecx, [ebp - 0x98]
call fcn.00401bd2
push ebx
push 1
lea ecx, [ebp - 0x7c]
call fcn.00401bd2
mov eax, dword [ebp - 0xc4]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x40238b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
call fcn.00454401
ret 8
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
xor ecx, ecx
test eax, eax
setns cl
mov dword [ebp - 0xa0], ecx
mov esi, ecx
jmp 0x4023b4
mov esi, ebx
push dword [ebp - 0xb8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x4023c4
mov esi, ebx
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x4023d8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xa8]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp - 0xb4]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
jmp 0x4023f5
mov esi, ebx
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x402323
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x402323