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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50e409
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 0x46a96d
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46a96d
push 0x206
lea eax, [esp + 0xae]
push ebx
push eax
mov word [esp + 0xb4], bx
call fcn.004ef140
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.004efcf1
cmp eax, ebx
pop ecx
pop ecx
je 0x46a16e
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 0x46a963
mov ecx, dword [esp + 0x74]
cmp ecx, ebx
je 0x46a963
lea esi, [esp + 0x88]
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], bx
call fcn.004077d1
mov dword [esp + 0x2bc], ebx
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x10]
push eax
push 0x542b68
push 0x17
push ebx
push 0x538a4c
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x46a222
mov dword [edi], 0xe
mov byte [esp + 0x2bc], bl
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x46a20e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
push 1
lea esi, [esp + 0x90]
call fcn.0040755c
jmp 0x46a969
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 0x46a2be
xor esi, esi
mov byte [esp + 0x2bc], 3
mov eax, dword [esp + 0xc]
inc esi
cmp eax, ebx
mov dword [edi], esi
je 0x46a28e
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 0x46a2b7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
push esi
jmp 0x46a211
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 0x538a5c
push eax
call dword [ecx]
cmp eax, ebx
jge 0x46a32c
mov dword [edi], 2
mov byte [esp + 0x2bc], 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x46a2fd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 3
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x46a313
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 0x46a1f9
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 0x538a6c
push eax
call dword [ecx]
cmp eax, ebx
jge 0x46a36c
mov dword [edi], esi
mov byte [esp + 0x2bc], 5
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x46a2e7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x46a2e7
mov dword [esp + 0x1c], ebx
lea edx, [esp + 0x1c]
push edx
push 0x5389bc
mov byte [esp + 0x2c4], 7
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push 0x53899c
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jge 0x46a3b3
mov dword [edi], 4
mov byte [esp + 0x2bc], 6
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x46a351
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x46a351
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 0x46a3f0
mov dword [edi], 5
mov byte [esp + 0x2bc], 7
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x46a39b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x46a39b
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x46a402
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 0x538a1c
push ebx
push eax
call dword [ecx + 0x3c]
cmp eax, ebx
jge 0x46a423
mov dword [edi], 6
jmp 0x46a3d8
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 0x538a3c
push eax
call dword [ecx]
cmp eax, ebx
jge 0x46a46b
mov dword [edi], 7
mov byte [esp + 0x2bc], 8
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x46a3d8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x46a3d8
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x46a47d
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 0x46a498
mov dword [edi], 8
jmp 0x46a44c
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 0x538a2c
push eax
call dword [ecx]
cmp eax, ebx
jge 0x46a4e0
mov byte [esp + 0x2bc], 9
mov eax, dword [esp + 0x2c]
cmp eax, ebx
mov dword [edi], 9
je 0x46a44c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x46a44c
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 0x46a535
cmp dword [ebp + 8], ebx
je 0x46a535
mov eax, 0x8007000e
mov word [esp + 0x78], 0xa
mov dword [esp + 0x80], eax
push eax
call fcn.004059e9
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 0x46a643
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xa
mov byte [esp + 0x2bc], 0xa
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x46a590
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 9
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x46a5a6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 8
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x46a5bc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 7
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x46a5d2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 6
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x46a5e8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 5
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x46a5fe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x46a614
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 3
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x46a62a
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 0x46a1f9
mov dword [esp + 0x40], ebx
cmp dword [esp + 0x6c], ebx
mov byte [esp + 0x2bc], 0xd
mov esi, dword [esp + 0x30]
jne 0x46a6e3
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 0x46a93f
cmp eax, ebx
je 0x46a93f
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 0x46a703
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xc
mov byte [esp + 0x2bc], 0xd
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x46a6d2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 0xb
mov eax, dword [esp + 0x40]
jmp 0x46a950
push dword [esp + 0x6c]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebx
mov dword [esp + 0x28], eax
jne 0x46a661
push 0x8007000e
jmp 0x46a530
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 0x46a721
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xd
jmp 0x46a6bc
cmp dword [esp + 0x70], ebx
mov dword [esp + 0x28], ebx
jle 0x46a825
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 0x46a7c2
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 0x46a7bc
lea esi, [esp + 0x8c]
call fcn.00409cac
test al, al
pop ecx
jne 0x46a7ec
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 0x46a7d8
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 0x46a72f
jmp 0x46a816
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 0x46a816
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x70]
cmp dword [esp + 0x28], eax
jge 0x46a825
xor edi, edi
inc edi
jmp 0x46a827
xor edi, edi
mov byte [esp + 0x2bc], 0xd
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x46a83d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 0xb
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x46a853
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 0xa
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x46a869
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 9
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x46a87f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 8
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x46a895
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 7
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x46a8ab
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 6
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x46a8c1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 5
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x46a8d7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x46a8ed
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 3
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x46a903
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 0x46a92c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
push 1
lea esi, [esp + 0x90]
call fcn.0040755c
mov eax, edi
jmp 0x46a970
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0xb
mov byte [esp + 0x2bc], 0xb
cmp eax, ebx
je 0x46a57a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x46a57a
mov dword [edi], 0xf
xor eax, eax
jmp 0x46a970
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