Function at 0x1001301
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1002023
call fcn.01001da0
sub esp, 0x478
mov eax, dword [0x1003020]
push ebx
push esi
push edi
xor esi, esi
push esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, esi
mov dword [ebp - 0x42c], eax
jl 0x1001946
mov dword [ebp - 0x430], esi
lea eax, [ebp - 0x430]
push eax
push 0x10010ec
push 0x17
push esi
push 0x10011dc
mov dword [ebp - 4], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
mov dword [ebp - 0x42c], eax
jge 0x1001371
mov eax, dword [ebp - 0x430]
or dword [ebp - 4], 0xffffffff
cmp eax, esi
jmp 0x100193e
mov ebx, 0x82
xor eax, eax
mov ecx, ebx
lea edi, [ebp - 0x428]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x104
push esi
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
and word [ebp - 0x21c], 0
xor eax, eax
mov ecx, ebx
lea edi, [ebp - 0x21a]
rep stosd dword es:[edi], eax
push esi
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.01001280
push esi
push 0x100114c
lea eax, [ebp - 0x21c]
push eax
call fcn.01001280
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x448], eax
mov eax, dword [ebp - 0x430]
push dword [ebp - 0x448]
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 1
call dword [ecx + 0x28]
push dword [ebp - 0x448]
mov dword [ebp - 0x42c], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor edi, edi
cmp dword [ebp - 0x42c], edi
jl 0x10014c5
mov dword [ebp - 0x448], edi
mov eax, dword [ebp - 0x430]
lea edx, [ebp - 0x458]
push edx
mov dword [ebp - 0x458], edi
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 2
call dword [ecx + 0x24]
cmp eax, edi
mov dword [ebp - 0x42c], eax
jl 0x10014c5
mov esi, dword [ebp - 0x458]
mov dword [ebp - 0x448], esi
mov dword [ebp - 0x444], edi
lea ecx, [ebp - 0x460]
push ecx
mov dword [ebp - 0x460], edi
mov eax, dword [esi]
push esi
mov byte [ebp - 4], 3
call dword [eax + 0x28]
cmp eax, edi
mov dword [ebp - 0x42c], eax
jl 0x10014bb
mov eax, dword [ebp - 0x460]
mov ebx, eax
mov dword [ebp - 0x444], ebx
mov dword [ebp - 0x464], edi
lea edx, [ebp - 0x454]
push edx
push 1
mov dword [ebp - 0x454], edi
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 4
call dword [ecx + 0x1c]
cmp eax, edi
mov dword [ebp - 0x42c], eax
jge 0x10014d6
mov eax, dword [ebx]
push ebx
mov byte [ebp - 4], 2
call dword [eax + 8]
mov eax, dword [esi]
push esi
mov byte [ebp - 4], 0
call dword [eax + 8]
mov eax, dword [ebp - 0x430]
or dword [ebp - 4], 0xffffffff
cmp eax, edi
jmp 0x100193e
mov ebx, dword [ebp - 0x454]
and dword [ebp - 0x450], 0
mov dword [ebp - 0x464], ebx
and dword [ebp - 0x45c], 0
mov eax, dword [esi]
lea ecx, [ebp - 0x45c]
push ecx
push esi
mov byte [ebp - 4], 5
call dword [eax + 0x50]
test eax, eax
mov dword [ebp - 0x42c], eax
jl 0x1001596
mov edi, dword [ebp - 0x45c]
and dword [ebp - 0x438], 0
mov dword [ebp - 0x450], edi
and dword [ebp - 0x43c], 0
mov eax, dword [edi]
lea ecx, [ebp - 0x43c]
push ecx
push edi
mov byte [ebp - 4], 6
call dword [eax + 0x28]
test eax, eax
mov dword [ebp - 0x42c], eax
jl 0x100158c
mov eax, dword [ebp - 0x43c]
and dword [ebp - 0x434], 0
mov dword [ebp - 0x438], eax
mov ecx, dword [edi]
lea edx, [ebp - 0x43c]
push edx
push eax
push edi
mov byte [ebp - 4], 7
call dword [ecx + 0x20]
test eax, eax
mov dword [ebp - 0x42c], eax
jge 0x10015a7
cmp dword [ebp - 0x438], 0
mov byte [ebp - 4], 5
je 0x100158c
mov eax, dword [ebp - 0x438]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [edi]
push edi
mov byte [ebp - 4], 4
call dword [eax + 8]
test ebx, ebx
mov byte [ebp - 4], 3
je 0x1001918
jmp 0x1001912
mov eax, dword [ebp - 0x43c]
mov ecx, dword [ebx]
push eax
push ebx
mov dword [ebp - 0x434], eax
call dword [ecx + 0x20]
test eax, eax
mov dword [ebp - 0x42c], eax
jl 0x100170a
mov eax, dword [ebx]
lea ecx, [ebp - 0x43c]
push ecx
push ebx
call dword [eax + 0x1c]
test eax, eax
mov dword [ebp - 0x42c], eax
jl 0x100170a
push dword [ebp - 0x43c]
lea ecx, [ebp - 0x434]
call fcn.010012dd
mov eax, dword [ebp - 0x43c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 0x43c], 0
and dword [ebp - 0x440], 0
mov eax, dword [edi]
lea ecx, [ebp - 0x43c]
push ecx
push dword [ebp - 0x434]
mov byte [ebp - 4], 8
push edi
call dword [eax + 0x20]
test eax, eax
mov dword [ebp - 0x42c], eax
jl 0x100170a
mov eax, dword [ebp - 0x43c]
mov ecx, dword [ebx]
push eax
push ebx
mov dword [ebp - 0x440], eax
call dword [ecx + 0x20]
test eax, eax
mov dword [ebp - 0x42c], eax
jl 0x10016f1
mov eax, dword [ebx]
lea ecx, [ebp - 0x43c]
push ecx
push ebx
call dword [eax + 0x1c]
test eax, eax
mov dword [ebp - 0x42c], eax
jl 0x10016f1
push dword [ebp - 0x43c]
lea ecx, [ebp - 0x440]
call fcn.010012dd
mov eax, dword [ebp - 0x43c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 0x43c], 0
and dword [ebp - 0x44c], 0
mov eax, dword [edi]
lea ecx, [ebp - 0x43c]
push ecx
push dword [ebp - 0x440]
mov byte [ebp - 4], 9
push edi
call dword [eax + 0x24]
test eax, eax
mov dword [ebp - 0x42c], eax
jl 0x10016f1
mov eax, dword [ebp - 0x43c]
mov ecx, dword [ebx]
push eax
push ebx
mov dword [ebp - 0x44c], eax
call dword [ecx + 0x20]
test eax, eax
mov dword [ebp - 0x42c], eax
jge 0x100174b
cmp dword [ebp - 0x44c], 0
mov byte [ebp - 4], 8
je 0x10016f1
mov eax, dword [ebp - 0x44c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x440], 0
mov byte [ebp - 4], 7
je 0x100170a
mov eax, dword [ebp - 0x440]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x434], 0
mov byte [ebp - 4], 6
je 0x1001723
mov eax, dword [ebp - 0x434]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x438], 0
mov byte [ebp - 4], 5
je 0x100173c
mov eax, dword [ebp - 0x438]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [edi]
push edi
mov byte [ebp - 4], 4
call dword [eax + 8]
jmp 0x100190e
mov word [ebp - 0x474], 0xa
mov dword [ebp - 0x46c], 0x80020004
cmp byte [ebp + 8], 0
lea edi, [ebp - 0x484]
lea esi, [ebp - 0x474]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
je 0x1001788
push 0x100111c
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0xb
jmp 0x100179a
push 0x10010fc
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0xc
mov ecx, dword [ebx]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x484]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
push ebx
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x80]
push dword [ebp + 8]
mov dword [ebp - 0x42c], eax
mov byte [ebp - 4], 0xa
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x42c], 0
jge 0x100187d
lea eax, [ebp - 0x474]
push eax
mov byte [ebp - 4], 9
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x10017ee
push eax
call fcn.01001afa
mov eax, dword [ebp - 0x44c]
test eax, eax
mov byte [ebp - 4], 8
je 0x1001802
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x440]
test eax, eax
mov byte [ebp - 4], 7
je 0x1001816
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x434]
test eax, eax
mov byte [ebp - 4], 6
je 0x100182a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x438]
test eax, eax
mov byte [ebp - 4], 5
je 0x100183e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x450]
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 4
call dword [ecx + 8]
mov eax, dword [ebx]
push ebx
mov byte [ebp - 4], 3
call dword [eax + 8]
mov eax, dword [ebp - 0x444]
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 2
call dword [ecx + 8]
mov eax, dword [ebp - 0x448]
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 0
call dword [ecx + 8]
jmp 0x1001932
mov esi, dword [ebp - 0x448]
mov eax, dword [esi]
push 0
push esi
call dword [eax + 0x24]
mov dword [ebp - 0x42c], eax
test eax, eax
lea eax, [ebp - 0x474]
push eax
mov byte [ebp - 4], 9
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x10018ae
push eax
call fcn.01001afa
mov eax, dword [ebp - 0x44c]
test eax, eax
mov byte [ebp - 4], 8
je 0x10018c2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x440]
test eax, eax
mov byte [ebp - 4], 7
je 0x10018d6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x434]
test eax, eax
mov byte [ebp - 4], 6
je 0x10018ea
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x438]
test eax, eax
mov byte [ebp - 4], 5
je 0x10018fe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x450]
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 4
call dword [ecx + 8]
mov byte [ebp - 4], 3
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov eax, dword [ebp - 0x444]
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 2
call dword [ecx + 8]
mov eax, dword [esi]
push esi
mov byte [ebp - 4], 0
call dword [eax + 8]
mov eax, dword [ebp - 0x430]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x1001946
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x42c]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.01001a5c
pop edi
pop esi
pop ebx
leave
ret 4