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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50fabb
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 0x46adcb
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46adcb
push 0x206
lea eax, [esp + 0xae]
push ebx
push eax
mov word [esp + 0xb4], bx
call fcn.004f0540
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.004f10f1
cmp eax, ebx
pop ecx
pop ecx
je 0x46a5cd
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 0x46adc1
mov ecx, dword [esp + 0x74]
cmp ecx, ebx
je 0x46adc1
lea esi, [esp + 0x88]
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], bx
call fcn.00407871
mov dword [esp + 0x2bc], ebx
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x10]
push eax
push 0x544dd8
push 0x17
push ebx
push 0x53aa2c
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x46a681
mov dword [edi], 0xe
mov byte [esp + 0x2bc], bl
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x46a66d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
push 1
lea esi, [esp + 0x90]
call fcn.004075fc
jmp 0x46adc7
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 0x46a71d
xor esi, esi
mov byte [esp + 0x2bc], 3
mov eax, dword [esp + 0xc]
inc esi
cmp eax, ebx
mov dword [edi], esi
je 0x46a6ed
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 0x46a716
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
push esi
jmp 0x46a670
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 0x53aa3c
push eax
call dword [ecx]
cmp eax, ebx
jge 0x46a78b
mov dword [edi], 2
mov byte [esp + 0x2bc], 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x46a75c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 3
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x46a772
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 0x46a658
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 0x53aa4c
push eax
call dword [ecx]
cmp eax, ebx
jge 0x46a7cb
mov dword [edi], esi
mov byte [esp + 0x2bc], 5
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x46a746
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x46a746
mov dword [esp + 0x1c], ebx
lea edx, [esp + 0x1c]
push edx
push 0x53a9cc
mov byte [esp + 0x2c4], 7
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push 0x53a9ac
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jge 0x46a812
mov dword [edi], 4
mov byte [esp + 0x2bc], 6
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x46a7b0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x46a7b0
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 0x46a84f
mov dword [edi], 5
mov byte [esp + 0x2bc], 7
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x46a7fa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x46a7fa
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x46a861
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 0x53aa5c
push ebx
push eax
call dword [ecx + 0x3c]
cmp eax, ebx
jge 0x46a882
mov dword [edi], 6
jmp 0x46a837
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 0x53aa7c
push eax
call dword [ecx]
cmp eax, ebx
jge 0x46a8ca
mov dword [edi], 7
mov byte [esp + 0x2bc], 8
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x46a837
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x46a837
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x46a8dc
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 0x46a8f7
mov dword [edi], 8
jmp 0x46a8ab
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 0x53aa6c
push eax
call dword [ecx]
cmp eax, ebx
jge 0x46a93f
mov byte [esp + 0x2bc], 9
mov eax, dword [esp + 0x2c]
cmp eax, ebx
mov dword [edi], 9
je 0x46a8ab
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x46a8ab
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 0x46a994
cmp dword [ebp + 8], ebx
je 0x46a994
mov eax, 0x8007000e
mov word [esp + 0x78], 0xa
mov dword [esp + 0x80], eax
push eax
call fcn.00405a99
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 0x46aaa2
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xa
mov byte [esp + 0x2bc], 0xa
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x46a9ef
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 9
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x46aa05
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 8
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x46aa1b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 7
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x46aa31
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 6
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x46aa47
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 5
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x46aa5d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x46aa73
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 3
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x46aa89
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 0x46a658
mov dword [esp + 0x40], ebx
cmp dword [esp + 0x6c], ebx
mov byte [esp + 0x2bc], 0xd
mov esi, dword [esp + 0x30]
jne 0x46ab42
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 0x46ad9d
cmp eax, ebx
je 0x46ad9d
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 0x46ab62
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xc
mov byte [esp + 0x2bc], 0xd
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x46ab31
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 0xb
mov eax, dword [esp + 0x40]
jmp 0x46adae
push dword [esp + 0x6c]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebx
mov dword [esp + 0x28], eax
jne 0x46aac0
push 0x8007000e
jmp 0x46a98f
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 0x46ab80
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xd
jmp 0x46ab1b
cmp dword [esp + 0x70], ebx
mov dword [esp + 0x28], ebx
jle 0x46ac83
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 0x46ac20
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 0x46ac1a
lea esi, [esp + 0x8c]
call fcn.00409e49
test eax, eax
je 0x46ac4a
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 0x46ac36
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 0x46ab8e
jmp 0x46ac74
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 0x46ac74
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x70]
cmp dword [esp + 0x28], eax
jge 0x46ac83
xor edi, edi
inc edi
jmp 0x46ac85
xor edi, edi
mov byte [esp + 0x2bc], 0xd
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x46ac9b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 0xb
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x46acb1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 0xa
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x46acc7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 9
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x46acdd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 8
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x46acf3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 7
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x46ad09
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 6
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x46ad1f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 5
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x46ad35
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x46ad4b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 3
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x46ad61
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 0x46ad8a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
push 1
lea esi, [esp + 0x90]
call fcn.004075fc
mov eax, edi
jmp 0x46adce
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0xb
mov byte [esp + 0x2bc], 0xb
cmp eax, ebx
je 0x46a9d9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x46a9d9
mov dword [edi], 0xf
xor eax, eax
jmp 0x46adce
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