Function at 0x21050aab
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov dword [ebp - 0x124], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 4], 0
push 0x108
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.2105e780
add esp, 0xc
mov dword [ebp - 0x114], 0
cmp dword [ebp + 0xc], 0
je 0x21050b0a
mov ecx, dword [ebp + 0xc]
mov word [ecx], 0
mov edx, dword [ebp - 0x124]
cmp dword [edx], 0
je 0x21050b2d
mov eax, dword [ebp - 0x124]
cmp dword [eax + 4], 0
je 0x21050b2d
mov dword [ebp - 0x128], 1
jmp 0x21050b37
mov dword [ebp - 0x128], 0
cmp dword [ebp - 0x128], 0
jne 0x21050b47
xor eax, eax
jmp 0x21050d00
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x124]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x124]
mov edx, dword [ecx + 4]
mov ecx, dword [edx]
push eax
call dword [ecx + 0x14]
test eax, eax
je 0x21050b70
xor eax, eax
jmp 0x21050d00
lea edx, [ebp - 0x11c]
push edx
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x124]
mov eax, dword [edx]
mov edx, dword [eax]
push ecx
call dword [edx + 0x10]
test eax, eax
je 0x21050b96
jmp 0x21050cfe
lea eax, [ebp - 0x120]
push eax
push 4
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x21050bb0
jmp 0x21050cfc
mov ecx, dword [ebp - 0x120]
push ecx
mov edx, dword [ebp - 0x11c]
push edx
call fcn.21050ddb
add esp, 8
test eax, eax
jne 0x21050bcf
jmp 0x21050cfa
cmp dword [ebp + 0xc], 0
je 0x21050c7a
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
je 0x21050bec
jmp 0x21050cf8
lea ecx, [ebp - 4]
push ecx
push 0x21080920
push 0
mov edx, dword [ebp - 0x120]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
call dword [ecx + 0x14]
test eax, eax
je 0x21050c13
jmp 0x21050cf6
mov eax, dword [ebp - 0x120]
push eax
call fcn.21050d9c
add esp, 4
mov ecx, dword [ebp - 0x11c]
add ecx, eax
mov dword [ebp - 0x118], ecx
lea edx, [ebp - 0x110]
push edx
push 0xa001
mov eax, dword [ebp - 0x118]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
push eax
call dword [edx + 0x2c]
test eax, eax
je 0x21050c58
jmp 0x21050cf4
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x118]
push eax
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrRetToBufW]
test eax, eax
je 0x21050c7a
jmp 0x21050cf2
mov dword [ebp - 0x114], 1
cmp dword [ebp - 0x110], 0
jne 0x21050c9a
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 4], 0
je 0x21050cac
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
call dword [ecx + 8]
cmp dword [ebp - 8], 0
je 0x21050cbe
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
call dword [ecx + 8]
cmp dword [ebp - 0x120], 0
je 0x21050cd4
mov eax, dword [ebp - 0x120]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x11c], 0
je 0x21050cea
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x114]
jmp 0x21050d00
jmp 0x21050c84
jmp 0x21050c84
jmp 0x21050c84
jmp 0x21050c84
jmp 0x21050c84
jmp 0x21050c84
jmp 0x21050c84
mov esp, ebp
pop ebp
ret 0xc