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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xabc364
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0xae6d50]
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 0xa7c03b
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
jmp 0xa7bfc0
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0xa7bfc0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x238]
call fcn.00a51740
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.00a51560
cmp dword [ebp - 0x224], 8
jb 0xa7c013
mov eax, dword [ebp - 0x238]
push eax
call fcn.00a9e60d
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 0xa7c1e0
mov edx, dword [ebp + 0xc]
push edx
jmp 0xa7c1d8
xor eax, eax
cmp dword [ebp + 0x28], esi
je 0xa7c18b
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x244], esi
mov word [ebp - 0x254], ax
lea ecx, [ebp - 0x28c]
push 0xadce00
push ecx
lea ebx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.00a64e00
push eax
mov eax, 0xadcd88
lea edi, [ebp - 0x270]
mov byte [ebp - 4], 3
call fcn.00a64ee0
add esp, 0xc
push eax
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 4
call fcn.00a51560
mov edi, 8
cmp dword [ebp - 0x25c], edi
jb 0xa7c0b5
mov edx, dword [ebp - 0x270]
push edx
call fcn.00a9e60d
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 0xa7c0e9
mov ecx, dword [ebp - 0x28c]
push ecx
call fcn.00a9e60d
add esp, 4
push 0xadcdb8
push ecx
lea edx, [ebp + 0xc]
push edx
push 0xaeae58
call fcn.00a649f0
add esp, 0xc
push eax
call fcn.00a64730
add esp, 8
mov edi, eax
push edi
call fcn.00a7ee30
mov eax, dword [edi]
mov eax, dword [eax + 4]
xor ebx, ebx
test byte [eax + edi + 0xc], 6
jne 0xa7c136
mov eax, dword [eax + edi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0xa7c136
mov ebx, 4
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
add ecx, edi
cmp ebx, esi
je 0xa7c155
mov eax, dword [ecx + 0xc]
or eax, ebx
cmp dword [ecx + 0x38], esi
jne 0xa7c14e
or eax, 4
push esi
push eax
call fcn.00a52d10
mov edx, dword [ebp + 8]
cmp dword [edx + 0x354], esi
jne 0xa7c184
cmp dword [ebp - 0x240], 8
mov eax, dword [ebp - 0x254]
jae 0xa7c175
lea eax, [ebp - 0x254]
push 0x40
push 0xad4af4
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call fcn.00aa16a6
push esi
mov dword [edi + 0x14], ebx
mov dword [edi + 0x10], esi
push 0xac3064
mov ecx, edi
mov word [edi], ax
call fcn.00a51740
cmp dword [ebp - 0x224], 8
jb 0xa7c1b9
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.00a9e60d
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 0xa7c1e0
mov eax, dword [ebp + 0xc]
push eax
call fcn.00a9e60d
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.00a9e488
mov esp, ebp
pop ebp
ret