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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d3074
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 0x46e0eb
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46e0eb
push 0x206
lea eax, [esp + 0xae]
push ebx
push eax
mov word [esp + 0xb4], bx
call fcn.00489f10
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.0048abc4
cmp eax, ebx
pop ecx
pop ecx
je 0x46d8ed
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 0x46e0e1
mov ecx, dword [esp + 0x74]
cmp ecx, ebx
je 0x46e0e1
lea esi, [esp + 0x88]
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], bx
call fcn.0040b941
mov dword [esp + 0x2bc], ebx
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x10]
push eax
push 0x4ee1a0
push 0x17
push ebx
push 0x4d79dc
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x46d9a1
mov dword [edi], 0xe
mov byte [esp + 0x2bc], bl
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x46d98d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
push 1
lea esi, [esp + 0x90]
call fcn.00408d3a
jmp 0x46e0e7
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 0x46da3d
xor esi, esi
mov byte [esp + 0x2bc], 3
mov eax, dword [esp + 0xc]
inc esi
cmp eax, ebx
mov dword [edi], esi
je 0x46da0d
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 0x46da36
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
push esi
jmp 0x46d990
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 0x4d79cc
push eax
call dword [ecx]
cmp eax, ebx
jge 0x46daab
mov dword [edi], 2
mov byte [esp + 0x2bc], 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x46da7c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 3
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x46da92
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 0x46d978
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 0x4d79ec
push eax
call dword [ecx]
cmp eax, ebx
jge 0x46daeb
mov dword [edi], esi
mov byte [esp + 0x2bc], 5
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x46da66
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x46da66
mov dword [esp + 0x1c], ebx
lea edx, [esp + 0x1c]
push edx
push 0x4d794c
mov byte [esp + 0x2c4], 7
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push 0x4d796c
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jge 0x46db32
mov dword [edi], 4
mov byte [esp + 0x2bc], 6
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x46dad0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x46dad0
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 0x46db6f
mov dword [edi], 5
mov byte [esp + 0x2bc], 7
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x46db1a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x46db1a
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x46db81
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 0x4d79fc
push ebx
push eax
call dword [ecx + 0x3c]
cmp eax, ebx
jge 0x46dba2
mov dword [edi], 6
jmp 0x46db57
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 0x4d7a0c
push eax
call dword [ecx]
cmp eax, ebx
jge 0x46dbea
mov dword [edi], 7
mov byte [esp + 0x2bc], 8
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x46db57
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x46db57
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x46dbfc
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 0x46dc17
mov dword [edi], 8
jmp 0x46dbcb
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 0x4d7a1c
push eax
call dword [ecx]
cmp eax, ebx
jge 0x46dc5f
mov byte [esp + 0x2bc], 9
mov eax, dword [esp + 0x2c]
cmp eax, ebx
mov dword [edi], 9
je 0x46dbcb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x46dbcb
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 0x46dcb4
cmp dword [ebp + 8], ebx
je 0x46dcb4
mov eax, 0x8007000e
mov word [esp + 0x78], 0xa
mov dword [esp + 0x80], eax
push eax
call fcn.00408113
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 0x46ddc2
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xa
mov byte [esp + 0x2bc], 0xa
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x46dd0f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 9
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x46dd25
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 8
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x46dd3b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 7
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x46dd51
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 6
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x46dd67
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 5
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x46dd7d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x46dd93
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 3
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x46dda9
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 0x46d978
mov dword [esp + 0x40], ebx
cmp dword [esp + 0x6c], ebx
mov byte [esp + 0x2bc], 0xd
mov esi, dword [esp + 0x30]
jne 0x46de62
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 0x46e0bd
cmp eax, ebx
je 0x46e0bd
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 0x46de82
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xc
mov byte [esp + 0x2bc], 0xd
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x46de51
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 0xb
mov eax, dword [esp + 0x40]
jmp 0x46e0ce
push dword [esp + 0x6c]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebx
mov dword [esp + 0x28], eax
jne 0x46dde0
push 0x8007000e
jmp 0x46dcaf
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 0x46dea0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xd
jmp 0x46de3b
cmp dword [esp + 0x70], ebx
mov dword [esp + 0x28], ebx
jle 0x46dfa3
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 0x46df40
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 0x46df3a
lea esi, [esp + 0x8c]
call fcn.0040ce15
test eax, eax
je 0x46df6a
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 0x46df56
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 0x46deae
jmp 0x46df94
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 0x46df94
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x70]
cmp dword [esp + 0x28], eax
jge 0x46dfa3
xor edi, edi
inc edi
jmp 0x46dfa5
xor edi, edi
mov byte [esp + 0x2bc], 0xd
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x46dfbb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 0xb
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x46dfd1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 0xa
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x46dfe7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 9
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x46dffd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 8
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x46e013
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 7
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x46e029
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 6
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x46e03f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 5
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x46e055
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x46e06b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x2bc], 3
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x46e081
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 0x46e0aa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
push 1
lea esi, [esp + 0x90]
call fcn.00408d3a
mov eax, edi
jmp 0x46e0ee
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0xb
mov byte [esp + 0x2bc], 0xb
cmp eax, ebx
je 0x46dcf9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x46dcf9
mov dword [edi], 0xf
xor eax, eax
jmp 0x46e0ee
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