Function at 0x121bf40
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x125c364
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x1286d50]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov edi, ecx
mov dword [ebp - 0x290], esi
mov dword [ebp - 4], esi
mov ebx, 7
xor eax, eax
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x228], esi
mov word [ebp - 0x238], ax
lea ecx, [ebp - 0x21c]
push ecx
push esi
push esi
push edx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, esi
jne 0x121c03b
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
jmp 0x121bfc0
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x121bfc0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x238]
call fcn.011f1740
xor ecx, ecx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x10], esi
lea edx, [ebp - 0x238]
mov word [edi], cx
push edx
mov ecx, edi
call fcn.011f1560
cmp dword [ebp - 0x224], 8
jb 0x121c013
mov eax, dword [ebp - 0x238]
push eax
call fcn.0123e60d
add esp, 4
xor ecx, ecx
cmp dword [ebp + 0x20], 8
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x228], esi
mov word [ebp - 0x238], cx
jb 0x121c1e0
mov edx, dword [ebp + 0xc]
push edx
jmp 0x121c1d8
xor eax, eax
cmp dword [ebp + 0x28], esi
je 0x121c18b
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x244], esi
mov word [ebp - 0x254], ax
lea ecx, [ebp - 0x28c]
push 0x127ce00
push ecx
lea ebx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.01204e00
push eax
mov eax, 0x127cd88
lea edi, [ebp - 0x270]
mov byte [ebp - 4], 3
call fcn.01204ee0
add esp, 0xc
push eax
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 4
call fcn.011f1560
mov edi, 8
cmp dword [ebp - 0x25c], edi
jb 0x121c0b5
mov edx, dword [ebp - 0x270]
push edx
call fcn.0123e60d
add esp, 4
xor eax, eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x25c], 7
mov dword [ebp - 0x260], esi
mov word [ebp - 0x270], ax
cmp dword [ebp - 0x278], edi
jb 0x121c0e9
mov ecx, dword [ebp - 0x28c]
push ecx
call fcn.0123e60d
add esp, 4
push 0x127cdb8
push ecx
lea edx, [ebp + 0xc]
push edx
push 0x128ae58
call fcn.012049f0
add esp, 0xc
push eax
call fcn.01204730
add esp, 8
mov edi, eax
push edi
call fcn.0121ee30
mov eax, dword [edi]
mov eax, dword [eax + 4]
xor ebx, ebx
test byte [eax + edi + 0xc], 6
jne 0x121c136
mov eax, dword [eax + edi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x121c136
mov ebx, 4
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
add ecx, edi
cmp ebx, esi
je 0x121c155
mov eax, dword [ecx + 0xc]
or eax, ebx
cmp dword [ecx + 0x38], esi
jne 0x121c14e
or eax, 4
push esi
push eax
call fcn.011f2d10
mov edx, dword [ebp + 8]
cmp dword [edx + 0x354], esi
jne 0x121c184
cmp dword [ebp - 0x240], 8
mov eax, dword [ebp - 0x254]
jae 0x121c175
lea eax, [ebp - 0x254]
push 0x40
push 0x1274af4
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call fcn.012416a6
push esi
mov dword [edi + 0x14], ebx
mov dword [edi + 0x10], esi
push 0x1263064
mov ecx, edi
mov word [edi], ax
call fcn.011f1740
cmp dword [ebp - 0x224], 8
jb 0x121c1b9
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.0123e60d
add esp, 4
xor edx, edx
cmp dword [ebp + 0x20], 8
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x228], esi
mov word [ebp - 0x238], dx
jb 0x121c1e0
mov eax, dword [ebp + 0xc]
push eax
call fcn.0123e60d
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0123e488
mov esp, ebp
pop ebp
ret