Function at 0x47e880
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2863
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x4ff1a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x46c], ebx
mov byte [ebp - 0x446], bl
cmp esi, edi
je 0x47e941
xor eax, eax
mov word [ebp - 0x444], ax
mov eax, esi
mov dword [ebp - 0x430], 7
mov dword [ebp - 0x434], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x47e8e2
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x444]
call fcn.0040e680
mov dword [ebp - 4], edi
mov ebx, 1
mov dword [ebp - 0x46c], ebx
cmp dword [ebp - 0x434], edi
je 0x47e941
cmp dword [ebp - 0x430], 8
mov eax, dword [ebp - 0x444]
jae 0x47e929
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
mov byte [ebp - 0x445], 0
test al, al
jne 0x47e948
mov byte [ebp - 0x445], 1
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x47e98e
and ebx, 0xfffffffe
mov dword [ebp - 0x46c], ebx
cmp dword [ebp - 0x430], 8
jb 0x47e975
mov ecx, dword [ebp - 0x444]
push ecx
call fcn.00490458
add esp, 4
xor edx, edx
mov dword [ebp - 0x430], 7
mov dword [ebp - 0x434], edi
mov word [ebp - 0x444], dx
cmp byte [ebp - 0x445], 0
jne 0x47eb1a
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x206
lea ecx, [ebp - 0x422]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x424], ax
call fcn.004911e0
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push esi
lea edx, [ebp - 0x424]
push 0x104
push edx
mov ebx, eax
call fcn.0049195d
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.SHELL32
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 0x480], esi
cmp esi, edi
je 0x47ed4f
push 0x206
lea edx, [ebp - 0x21a]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0x21c], cx
call fcn.004911e0
mov ecx, dword [ebp + 8]
add esp, 0xc
push 0x104
lea eax, [ebp - 0x21c]
push eax
push ecx
push esi
call dword [sym.imp.USER32.dll_LoadStringW]
cmp eax, edi
jle 0x47ed48
lea edx, [ebp - 0x21c]
push edx
push str.shell_buffer_string_:__s_n
call fcn.004ae7ff
add esp, 8
lea eax, [ebp - 0x460]
push eax
push 0x4c417c
push 1
push edi
push 0x4c418c
mov dword [ebp - 0x460], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jl 0x47ed48
lea edx, [ebp - 0x424]
mov ecx, 8
push edx
mov dword [ebp - 0x458], edi
mov word [ebp - 0x43c], cx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x434], eax
cmp eax, edi
jne 0x47eab2
push 0x8007000e
call fcn.004ae540
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x43c]
mov ecx, dword [ebp - 0x460]
mov edx, dword [ecx]
lea eax, [ebp - 0x458]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [ebp - 0x438]
mov dword [eax + 4], esi
mov esi, dword [ebp - 0x434]
mov dword [eax + 8], esi
mov esi, dword [ebp - 0x430]
push ecx
mov ecx, dword [edx + 0x24]
mov dword [eax + 0xc], esi
call ecx
test eax, eax
js 0x47ed20
cmp dword [ebp - 0x458], edi
jne 0x47eb21
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0x43c]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor al, al
jmp 0x47ed5b
lea eax, [ebp - 0x468]
mov dword [ebp - 0x45c], edi
push eax
mov edi, ebx
call fcn.00436f00
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x468]
xor edi, edi
cmp eax, edi
je 0x47eb49
mov eax, dword [eax]
jmp 0x47eb4b
xor eax, eax
mov ecx, dword [ebp - 0x458]
mov edx, dword [ecx]
lea esi, [ebp - 0x45c]
push esi
push eax
mov eax, dword [edx + 0x30]
push ecx
call eax
test eax, eax
js 0x47ed03
mov eax, dword [ebp - 0x45c]
lea edx, [ebp - 0x44c]
mov dword [ebp - 0x44c], edi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x58]
call eax
test eax, eax
js 0x47ecf5
mov eax, dword [ebp - 0x44c]
lea edx, [ebp - 0x454]
mov dword [ebp - 0x454], edi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
js 0x47ece7
lea ecx, [ebp - 0x47c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [ebp - 4], 3
xor ecx, ecx
mov edx, 3
mov dword [ebp - 0x474], ecx
mov word [ebp - 0x47c], dx
cmp dword [ebp - 0x454], edi
jle 0x47ecd6
mov ebx, dword [ebp - 0x47c]
mov edx, dword [ebp - 0x44c]
lea eax, [ebp - 0x450]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [ebp - 0x478]
mov dword [eax + 4], ebx
mov dword [ebp - 0x450], edi
mov esi, dword [edx]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x470]
push edx
mov edx, dword [esi + 0x28]
mov dword [eax + 0xc], ecx
call edx
test eax, eax
js 0x47ecbd
mov eax, dword [ebp - 0x450]
lea edx, [ebp - 0x464]
mov dword [ebp - 0x464], edi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
test eax, eax
js 0x47ecaf
mov eax, dword [ebp - 0x464]
lea ecx, [ebp - 0x21c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47ec76
cmp dx, di
je 0x47ec72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47ec76
add eax, 4
add ecx, 4
cmp dx, di
jne 0x47ec50
xor eax, eax
jmp 0x47ec7b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x47eca2
mov eax, dword [ebp - 0x450]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x28]
push eax
call edx
test eax, eax
mov eax, dword [ebp - 0x454]
setns byte [ebp - 0x446]
mov dword [ebp - 0x474], eax
mov ecx, dword [ebp - 0x464]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x450]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp - 0x474]
inc ecx
mov dword [ebp - 0x474], ecx
cmp ecx, dword [ebp - 0x454]
jl 0x47ebe0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x47c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x44c]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [ebp - 0x45c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x458]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 1
lea edi, [ebp - 0x468]
call fcn.00436fa0
mov eax, dword [ebp - 0x460]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov esi, dword [ebp - 0x480]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, byte [ebp - 0x446]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004911d1
mov esp, ebp
pop ebp
ret