Function at 0x1026a96
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push esi
push edi
mov dword [ebp - 0xc], ecx
cmp ebx, ecx
je 0x1026ab7
cmp dword [ebp + 0xc], ecx
jbe 0x1026ab7
xor eax, eax
mov word [ebx], ax
mov eax, dword [ebp + 0xc]
cmp eax, 0x104
jb 0x1026b30
push 2
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
mov edi, 0x1003dac
push edi
mov esi, 0x1003d9c
push esi
mov dword [ebp + 8], ecx
call fcn.0104cccc
cmp dword [ebp + 8], 0
je 0x1026bb2
push dword [ebp + 8]
mov edi, dword [ebp + 0xc]
lea eax, [edi - 2]
push eax
push ebx
call fcn.0101b116
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
jge 0x1026b39
mov eax, dword [section..data]
cmp eax, section..data
je 0x1026b30
test byte [eax + 0x1c], 4
je 0x1026b30
push esi
push 0x1003cdc
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101b900
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1026b3e
sub eax, edx
sar eax, 1
cmp word [ebx + eax*2 - 2], 0x5c
je 0x1026b88
push 0x1003cec
push edi
push ebx
call fcn.01026864
test eax, eax
jge 0x1026b88
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1026b30
test byte [ecx + 0x1c], 4
je 0x1026b30
push eax
push 0x1003cdc
push 0x10
push dword [ecx + 0x14]
push dword [ecx + 0x10]
jmp 0x1026b2b
mov eax, dword [section..data]
cmp eax, section..data
je 0x1026bad
test byte [eax + 0x1c], 2
je 0x1026bad
push ebx
push 0x1003cdc
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010170e7
xor eax, eax
inc eax
jmp 0x1026b32
mov eax, dword [ebp + 0xc]
push 2
add eax, 0xfffffffe
push eax
push ebx
push 0x10020ec
push edi
push esi
call fcn.0104e13a
xor esi, esi
cmp word [ebx], si
je 0x1026c4c
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1026bd4
sub eax, edx
sar eax, 1
cmp word [ebx + eax*2 - 2], 0x5c
je 0x1026c25
push 0x1003cec
push dword [ebp + 0xc]
push ebx
call fcn.01026864
cmp eax, esi
jge 0x1026c25
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1026b30
test byte [ecx + 0x1c], 4
je 0x1026b30
push eax
push 0x1003cdc
push 0x12
jmp 0x1026b80
mov eax, dword [section..data]
cmp eax, section..data
je 0x1026bad
test byte [eax + 0x1c], 2
je 0x1026bad
push ebx
push 0x1003cdc
push 0x13
jmp 0x1026ba2
lea eax, [ebp - 4]
push eax
push 5
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov esi, 0x1003cdc
mov edi, section..data
test eax, eax
jl 0x1026ca2
cmp dword [ebp - 4], 0
je 0x1026ca2
push ebx
push dword [ebp - 4]
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 0x1026cc1
mov eax, dword [ebp - 8]
push dword [ebp - 4]
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 0x1026cc1
mov ecx, dword [section..data]
cmp ecx, edi
je 0x1026cea
test byte [ecx + 0x1c], 4
je 0x1026ccd
push eax
push esi
push 0x14
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0101b900
cmp dword [ebp - 0xc], 0
jne 0x1026d23
mov ecx, dword [section..data]
cmp ecx, edi
je 0x1026cea
test byte [ecx + 0x1c], 4
je 0x1026cea
push 0x1003d58
push esi
push 0x15
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010170e7
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x1026d23
mov eax, dword [section..data]
cmp eax, edi
je 0x1026b30
test byte [eax + 0x1c], 4
je 0x1026b30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [section..data]
push esi
push 0x16
jmp 0x1026b25
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1026d28
sub eax, edx
sar eax, 1
cmp eax, 1
jl 0x1026bad
cmp word [ebx + eax*2 - 2], 0x5c
je 0x1026bad
push 0x1003cec
push dword [ebp + 0xc]
push ebx
call fcn.01026864
test eax, eax
jge 0x1026bad
mov ecx, dword [section..data]
cmp ecx, edi
je 0x1026b30
test byte [ecx + 0x1c], 4
je 0x1026b30
push eax
push esi
push 0x17
jmp 0x1026b80