Function at 0x1001324
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1488
call fcn.01024980
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x1001796
mov dx, word [0x1046358]
push ebx
mov ebx, 0x82
xor eax, eax
mov ecx, ebx
lea edi, [ebp - 0x86e]
mov word [ebp - 0x870], dx
mov word [ebp - 0x664], dx
rep stosd dword es:[edi], eax
mov ecx, ebx
lea edi, [ebp - 0x662]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x1e]
mov word [ebp - 0x20], dx
stosd dword es:[edi], eax
push esi
mov esi, 0x80
stosw word es:[edi], ax
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0xe7a]
mov word [ebp - 0xe7c], dx
rep stosd dword es:[edi], eax
mov ecx, ebx
lea edi, [ebp - 0x456]
mov word [ebp - 0x458], dx
mov word [ebp - 0x18], dx
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x16]
mov ecx, esi
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
lea edi, [ebp - 0xc76]
mov word [ebp - 0xc78], dx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
xor esi, esi
push 2
push esi
push str.WMPLOC.DLL
call fcn.0102163f
mov ebx, eax
cmp ebx, esi
je 0x1001785
lea eax, [ebp - 0x870]
push 0x105
push eax
push 0x2f1
push ebx
call fcn.010216af
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp edi, esi
jl 0x100178a
lea eax, [ebp - 0x664]
push eax
push esi
push esi
push 0x2e
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
cmp edi, esi
jl 0x100178a
lea eax, [ebp - 0x870]
push eax
lea eax, [ebp - 0x664]
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [ebp - 0x664]
push 0x3a
push eax
call dword [sym.imp.MSVCRT.dll_wcschr]
mov edi, eax
add esp, 0x10
cmp edi, esi
je 0x100148f
lea ecx, [ebp - 0x664]
sub eax, ecx
and al, 0xfe
cmp eax, 2
jne 0x100148f
push eax
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
mov ebx, dword [sym.imp.MSVCRT.dll_wcscpy]
add edi, 2
lea eax, [ebp - 0xe7c]
push edi
push eax
mov word [ebp - 0x1c], si
call ebx
add esp, 0x14
jmp 0x10014a7
mov ebx, dword [sym.imp.MSVCRT.dll_wcscpy]
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0xe7c]
push eax
call ebx
pop ecx
pop ecx
lea eax, [ebp - 0x458]
push eax
push esi
push esi
push 5
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
cmp edi, esi
jl 0x100178a
lea eax, [ebp - 0x870]
push eax
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [ebp - 0x458]
push 0x3a
push eax
call dword [sym.imp.MSVCRT.dll_wcschr]
mov edi, eax
add esp, 0x10
cmp edi, esi
je 0x1001526
lea ecx, [ebp - 0x458]
sub eax, ecx
and al, 0xfe
cmp eax, 2
jne 0x1001526
push eax
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add edi, 2
lea eax, [ebp - 0xc78]
push edi
push eax
mov word [ebp - 0x14], si
call ebx
add esp, 0x14
jmp 0x1001538
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0xc78]
push eax
call ebx
pop ecx
pop ecx
mov eax, dword [ebp + 8]
push esi
push esi
push 5
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov edi, eax
cmp edi, esi
jl 0x100178a
jne 0x1001778
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov edi, 0x8001
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
jne 0x1001778
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x30]
push edx
push 0x1034440
push dword [ebp - 0x10]
mov ecx, dword [eax]
push 5
push eax
call dword [ecx + 0x28]
test eax, eax
jne 0x1001560
cmp word [ebp - 0x30], 8
jne 0x1001560
cmp dword [ebp - 0x28], eax
je 0x1001560
and word [ebp - 0x24c], ax
push edi
call esi
push dword [ebp - 0x28]
mov dword [ebp - 8], eax
call fcn.010213f0
push dword [ebp - 8]
mov dword [ebp - 4], eax
call esi
cmp dword [ebp - 4], 0xffffffff
jne 0x1001769
lea eax, [ebp - 0x870]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.MSVCRT.dll_wcsstr]
pop ecx
test eax, eax
pop ecx
je 0x100170f
lea eax, [ebp - 0x1284]
push eax
lea eax, [ebp - 0x1080]
push eax
lea eax, [ebp - 0x1488]
push eax
push 0
push dword [ebp - 0x28]
call dword [sym.imp.MSVCRT.dll__wsplitpath]
lea eax, [ebp - 0x870]
push eax
lea eax, [ebp - 0x1488]
push eax
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 0x1c
mov dword [ebp - 0xc], eax
test eax, eax
je 0x100170f
lea eax, [ebp - 0x870]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + eax*2]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xe7c]
push eax
lea eax, [ebp - 0xa74]
push eax
call ebx
push dword [ebp - 0xc]
lea eax, [ebp - 0xa74]
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [ebp - 0x1284]
push eax
lea eax, [ebp - 0x1080]
push eax
lea eax, [ebp - 0xa74]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.MSVCRT.dll__wmakepath]
add esp, 0x28
push edi
call esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x24c]
push eax
call fcn.010213f0
push dword [ebp - 8]
mov dword [ebp - 4], eax
call esi
cmp dword [ebp - 4], 0xffffffff
jne 0x100170f
lea eax, [ebp - 0xc78]
push eax
lea eax, [ebp - 0xa74]
push eax
call ebx
push dword [ebp - 0xc]
lea eax, [ebp - 0xa74]
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [ebp - 0x1284]
push eax
lea eax, [ebp - 0x1080]
push eax
lea eax, [ebp - 0xa74]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.MSVCRT.dll__wmakepath]
add esp, 0x24
push edi
call esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x24c]
push eax
call fcn.010213f0
push dword [ebp - 8]
mov dword [ebp - 4], eax
call esi
cmp dword [ebp - 4], 0xffffffff
jne 0x100170f
and word [ebp - 0x24c], 0
cmp word [ebp - 0x24c], 0
je 0x1001769
and word [ebp - 0x40], 0
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x40]
call fcn.0100179d
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x40]
push 0
push edx
mov ecx, dword [eax]
push 0x1034440
push dword [ebp - 0x10]
push 5
push eax
call dword [ecx + 0x40]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x40]
push 0
push edx
mov ecx, dword [eax]
push 0x1034480
push dword [ebp - 0x10]
push 5
push eax
call dword [ecx + 0x40]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x1001560
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edi, eax
jmp 0x100178a
mov edi, 0x80070002
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
pop esi
pop ebx
mov eax, edi
pop edi
leave
ret 4