Function at 0x101deb2
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 0x101df3c
and dword [ebp - 4], 0
push 2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
mov edi, 0x1002dac
push edi
mov esi, 0x1002d9c
push esi
mov dword [ebp - 0x10], ebx
call fcn.0103fa05
cmp dword [ebp - 4], 0
je 0x101df99
push dword [ebp - 4]
mov esi, dword [ebp + 8]
lea eax, [ebx - 2]
push eax
push esi
call fcn.010183fd
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
jge 0x101df45
mov eax, dword [section..data]
cmp eax, section..data
je 0x101df3c
test byte [eax + 0x1c], 2
je 0x101df3c
push edi
push 0x1002cb4
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01040e4a
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 0x101df4a
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
je 0x101df94
push 0x1002cec
push ebx
push esi
call fcn.0101dc98
test eax, eax
jge 0x101df94
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x101df3c
test byte [ecx + 0x1c], 2
je 0x101df3c
push eax
push 0x1002cb4
push 0x11
push dword [ecx + 0x14]
push dword [ecx + 0x10]
jmp 0x101df37
xor eax, eax
inc eax
jmp 0x101df3e
push 2
add ebx, 0xfffffffe
push ebx
mov ebx, dword [ebp + 8]
push ebx
push 0x1002050
push edi
push esi
call fcn.01040d8c
xor esi, esi
cmp word [ebx], si
je 0x101e009
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x101dfbb
sub eax, edx
sar eax, 1
cmp word [ebx + eax*2 - 2], 0x5c
je 0x101df94
push 0x1002cec
push dword [ebp + 0xc]
push ebx
call fcn.0101dc98
cmp eax, esi
jge 0x101df94
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x101df3c
test byte [ecx + 0x1c], 2
je 0x101df3c
push eax
push 0x1002cb4
push 0x12
jmp 0x101df8c
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, 0x1002cb4
mov edi, section..data
jl 0x101e05f
cmp dword [ebp - 8], 0
je 0x101e05f
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 0x101e07e
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 0x101e07e
mov ecx, dword [section..data]
cmp ecx, edi
je 0x101e0a7
test byte [ecx + 0x1c], 2
je 0x101e08a
push eax
push esi
push 0x13
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01040e4a
cmp dword [ebp - 0xc], 0
jne 0x101e0e0
mov ecx, dword [section..data]
cmp ecx, edi
je 0x101e0a7
test byte [ecx + 0x1c], 2
je 0x101e0a7
push 0x1002d58
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 0x101e0e0
mov eax, dword [section..data]
cmp eax, edi
je 0x101df3c
test byte [eax + 0x1c], 2
je 0x101df3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [section..data]
push esi
push 0x15
jmp 0x101df31
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x101e0e5
sub eax, edx
sar eax, 1
cmp eax, 1
jl 0x101df94
cmp word [ebx + eax*2 - 2], 0x5c
je 0x101df94
push 0x1002cec
push dword [ebp + 0xc]
push ebx
call fcn.0101dc98
test eax, eax
jge 0x101df94
mov ecx, dword [section..data]
cmp ecx, edi
je 0x101df3c
test byte [ecx + 0x1c], 2
je 0x101df3c
push eax
push esi
push 0x16
jmp 0x101df8c