Function at 0x46a3aa
Capabilities:
Check if file exists
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50fb06
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2a8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
mov dword [esp + 0x70], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp dword [ebp + 8], ebx
je 0x46ac4e
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46ac4e
push 0x206
lea eax, [esp + 0xae]
push ebx
push eax
mov word [esp + 0xb4], bx
call fcn.004f04c0
add esp, 0xc
push dword [ebp + 8]
lea eax, [esp + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0xa8]
push 0x5c
push eax
call fcn.004f1071
cmp eax, ebx
pop ecx
pop ecx
je 0x46a450
mov word [eax], bx
add eax, 2
mov dword [esp + 0x6c], eax
lea eax, [esp + 0xa8]
mov dword [ebp + 8], eax
push ebx
lea eax, [esp + 0x78]
push eax
push 0x150a
push str.shell32.dll
mov dword [esp + 0x84], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
cmp eax, ebx
je 0x46ac44
mov ecx, dword [esp + 0x74]
cmp ecx, ebx
je 0x46ac44
lea esi, [esp + 0x88]
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], bx
call fcn.00407704
mov dword [esp + 0x2bc], ebx
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x10]
push eax
push 0x544dc8
push 0x17
push ebx
push 0x53aa1c
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x46a504
mov dword [edi], 0xe
mov byte [esp + 0x2bc], bl
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x46a4f0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
push 1
lea esi, [esp + 0x90]
call fcn.0040748f
jmp 0x46ac4a
push 3
pop esi
mov word [esp + 0x48], si
mov dword [esp + 0x50], ebx
mov word [esp + 0x58], si
mov dword [esp + 0x60], ebx
mov dword [esp + 0xc], ebx
lea edx, [esp + 0xc]
push edx
push 1
lea edx, [esp + 0xac]
push edx
push 8
lea edx, [esp + 0x68]
push edx
mov byte [esp + 0x2d0], 4
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x5c]
push edx
mov dword [esp + 0xbc], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
cmp eax, ebx
jge 0x46a5a0
xor esi, esi
mov byte [esp + 0x2bc], 3
mov eax, dword [esp + 0xc]
inc esi
cmp eax, ebx
mov dword [edi], esi
je 0x46a570
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x58]
push eax
call edi
lea eax, [esp + 0x48]
push eax
call edi
mov byte [esp + 0x2bc], bl
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x46a599
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
push esi
jmp 0x46a4f3
mov dword [esp + 0x14], ebx
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x2c0], 5
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0x53aa2c
push eax
call dword [ecx]
cmp eax, ebx
jge 0x46a60e
mov dword [edi], 2
mov byte [esp + 0x2bc], 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x46a5df
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 3
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x46a5f5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x58]
push eax
call edi
lea eax, [esp + 0x48]
push eax
call edi
jmp 0x46a4db
mov dword [esp + 0x18], ebx
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x2c0], 6
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push 0x53aa3c
push eax
call dword [ecx]
cmp eax, ebx
jge 0x46a64e
mov dword [edi], esi
mov byte [esp + 0x2bc], 5
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x46a5c9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x46a5c9
mov dword [esp + 0x1c], ebx
lea edx, [esp + 0x1c]
push edx
push 0x53a9bc
mov byte [esp + 0x2c4], 7
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push 0x53a99c
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jge 0x46a695
mov dword [edi], 4
mov byte [esp + 0x2bc], 6
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x46a633
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x46a633
mov dword [esp + 0x20], ebx
mov byte [esp + 0x2bc], 8
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push eax
call dword [ecx + 0x3c]
cmp eax, ebx
jge 0x46a6d2
mov dword [edi], 5
mov byte [esp + 0x2bc], 7
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x46a67d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x46a67d
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x46a6e4
mov dword [esp + 0xc], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push 0x53aa4c
push ebx
push eax
call dword [ecx + 0x3c]
cmp eax, ebx
jge 0x46a705
mov dword [edi], 6
jmp 0x46a6ba
mov dword [esp + 0x24], ebx
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x2c0], 9
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0x53aa6c
push eax
call dword [ecx]
cmp eax, ebx
jge 0x46a74d
mov dword [edi], 7
mov byte [esp + 0x2bc], 8
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x46a6ba
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x46a6ba
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x46a75f
mov dword [esp + 0xc], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push eax
call dword [ecx + 0x1c]
cmp eax, ebx
jge 0x46a77a
mov dword [edi], 8
jmp 0x46a72e
mov dword [esp + 0x2c], ebx
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x2c0], 0xa
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0x53aa5c
push eax
call dword [ecx]
cmp eax, ebx
jge 0x46a7c2
mov byte [esp + 0x2bc], 9
mov eax, dword [esp + 0x2c]
cmp eax, ebx
mov dword [edi], 9
je 0x46a72e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x46a72e
mov dword [esp + 0x30], ebx
lea eax, [esp + 0x78]
mov byte [esp + 0x2bc], 0xb
push eax
mov word [esp + 0x7c], bx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push dword [ebp + 8]
mov word [esp + 0x7c], 8
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebx
mov dword [esp + 0x80], eax
jne 0x46a817
cmp dword [ebp + 8], ebx
je 0x46a817
mov eax, 0x8007000e
mov word [esp + 0x78], 0xa
mov dword [esp + 0x80], eax
push eax
call fcn.004059cb
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x2c0], 0xc
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0x8c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x24]
mov esi, eax
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp esi, ebx
jge 0x46a925
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xa
mov byte [esp + 0x2bc], 0xa
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x46a872
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 9
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x46a888
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 8
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x46a89e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 7
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x46a8b4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 6
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x46a8ca
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 5
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x46a8e0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x46a8f6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 3
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x46a90c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x58]
push eax
call esi
lea eax, [esp + 0x48]
push eax
call esi
jmp 0x46a4db
mov dword [esp + 0x40], ebx
cmp dword [esp + 0x6c], ebx
mov byte [esp + 0x2bc], 0xd
mov esi, dword [esp + 0x30]
jne 0x46a9c5
mov dword [esp + 0x28], ebx
lea ecx, [esp + 0x40]
push ecx
mov byte [esp + 0x2c0], 0xe
push dword [esp + 0x2c]
mov eax, dword [esi]
push esi
call dword [eax + 0x30]
push dword [esp + 0x28]
mov esi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp esi, ebx
mov eax, dword [esp + 0x40]
jl 0x46ac20
cmp eax, ebx
je 0x46ac20
mov dword [esp + 0x3c], ebx
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x2c0], 0xf
mov ecx, dword [eax]
push eax
call dword [ecx + 0x58]
cmp eax, ebx
jge 0x46a9e5
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xc
mov byte [esp + 0x2bc], 0xd
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x46a9b4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 0xb
mov eax, dword [esp + 0x40]
jmp 0x46ac31
push dword [esp + 0x6c]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebx
mov dword [esp + 0x28], eax
jne 0x46a943
push 0x8007000e
jmp 0x46a812
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
lea edx, [esp + 0x70]
push edx
push eax
call dword [ecx + 0x1c]
cmp eax, ebx
jge 0x46aa03
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xd
jmp 0x46a99e
cmp dword [esp + 0x70], ebx
mov dword [esp + 0x28], ebx
jle 0x46ab06
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x28]
mov word [esp + 0x78], 3
mov dword [esp + 0x80], eax
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x2c0], 0x11
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0x8c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x28]
test eax, eax
lea eax, [esp + 0x78]
push eax
setl byte [esp + 0x3f]
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp byte [esp + 0x3b], bl
jne 0x46aaa3
mov dword [esp + 0x44], ebx
mov byte [esp + 0x2bc], 0x12
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
lea edx, [esp + 0x44]
push edx
push eax
call dword [ecx + 0x24]
test eax, eax
push dword [esp + 0x44]
jl 0x46aa9d
lea esi, [esp + 0x8c]
call fcn.00409c76
test eax, eax
je 0x46aacd
push dword [esp + 0x44]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [esp + 0x2bc], 0xf
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x46aab9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc dword [esp + 0x28]
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x70]
jl 0x46aa11
jmp 0x46aaf7
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
push dword [esp + 0x44]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [esp + 0x2bc], 0xf
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x46aaf7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x70]
cmp dword [esp + 0x28], eax
jge 0x46ab06
xor edi, edi
inc edi
jmp 0x46ab08
xor edi, edi
mov byte [esp + 0x2bc], 0xd
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x46ab1e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 0xb
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x46ab34
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 0xa
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x46ab4a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 9
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x46ab60
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 8
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x46ab76
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 7
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x46ab8c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 6
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x46aba2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 5
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x46abb8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x46abce
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 3
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x46abe4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x58]
push eax
call esi
lea eax, [esp + 0x48]
push eax
call esi
mov byte [esp + 0x2bc], bl
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x46ac0d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
push 1
lea esi, [esp + 0x90]
call fcn.0040748f
mov eax, edi
jmp 0x46ac51
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0xb
mov byte [esp + 0x2bc], 0xb
cmp eax, ebx
je 0x46a85c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x46a85c
mov dword [edi], 0xf
xor eax, eax
jmp 0x46ac51
xor eax, eax
inc eax
mov ecx, dword [esp + 0x2b4]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret