Function at 0x101def8
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0xc], 0
push ebx
mov ebx, dword [ebp + 0xc]
cmp ebx, 0x104
push esi
push edi
jb 0x101df82
and dword [ebp - 4], 0
push 2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
mov edi, 0x1002da4
push edi
mov esi, 0x1002d94
push esi
mov dword [ebp - 0x10], ebx
call fcn.0103f91b
cmp dword [ebp - 4], 0
je 0x101dfdf
push dword [ebp - 4]
mov esi, dword [ebp + 8]
lea eax, [ebx - 2]
push eax
push esi
call fcn.01018462
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
jge 0x101df8b
mov eax, dword [section..data]
cmp eax, section..data
je 0x101df82
test byte [eax + 0x1c], 2
je 0x101df82
push edi
push 0x1002cac
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101420b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x101df90
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
je 0x101dfda
push 0x1002ce4
push ebx
push esi
call fcn.0101dcde
test eax, eax
jge 0x101dfda
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x101df82
test byte [ecx + 0x1c], 2
je 0x101df82
push eax
push 0x1002cac
push 0x11
push dword [ecx + 0x14]
push dword [ecx + 0x10]
jmp 0x101df7d
xor eax, eax
inc eax
jmp 0x101df84
push 2
add ebx, 0xfffffffe
push ebx
mov ebx, dword [ebp + 8]
push ebx
push 0x1002048
push edi
push esi
call fcn.01040ca3
xor esi, esi
cmp word [ebx], si
je 0x101e04f
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x101e001
sub eax, edx
sar eax, 1
cmp word [ebx + eax*2 - 2], 0x5c
je 0x101dfda
push 0x1002ce4
push dword [ebp + 0xc]
push ebx
call fcn.0101dcde
cmp eax, esi
jge 0x101dfda
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x101df82
test byte [ecx + 0x1c], 2
je 0x101df82
push eax
push 0x1002cac
push 0x12
jmp 0x101dfd2
lea eax, [ebp - 8]
push eax
push 5
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
mov esi, 0x1002cac
mov edi, section..data
jl 0x101e0a5
cmp dword [ebp - 8], 0
je 0x101e0a5
push ebx
push dword [ebp - 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x101e0c4
mov eax, dword [ebp + 8]
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x101e0c4
mov ecx, dword [section..data]
cmp ecx, edi
je 0x101e0ed
test byte [ecx + 0x1c], 2
je 0x101e0d0
push eax
push esi
push 0x13
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0101420b
cmp dword [ebp - 0xc], 0
jne 0x101e126
mov ecx, dword [section..data]
cmp ecx, edi
je 0x101e0ed
test byte [ecx + 0x1c], 2
je 0x101e0ed
push 0x1002d50
push esi
push 0x14
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01013fed
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x101e126
mov eax, dword [section..data]
cmp eax, edi
je 0x101df82
test byte [eax + 0x1c], 2
je 0x101df82
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [section..data]
push esi
push 0x15
jmp 0x101df77
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x101e12b
sub eax, edx
sar eax, 1
cmp eax, 1
jl 0x101dfda
cmp word [ebx + eax*2 - 2], 0x5c
je 0x101dfda
push 0x1002ce4
push dword [ebp + 0xc]
push ebx
call fcn.0101dcde
test eax, eax
jge 0x101dfda
mov ecx, dword [section..data]
cmp ecx, edi
je 0x101df82
test byte [ecx + 0x1c], 2
je 0x101df82
push eax
push esi
push 0x16
jmp 0x101dfd2