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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd50
push ebx
mov dword [ebp - 0x98], eax
mov eax, 0x5c2d04
call fcn.005ae2c8
mov word [ebp - 0x84], 0xc
xor edx, edx
mov dword [ebp - 4], edx
inc dword [ebp - 0x78]
mov word [ebp - 0x84], 0x18
mov word [ebp - 0x84], 0x24
push 1
push 0
lea ecx, [ebp - 0x99]
push ecx
call fcn.005addf7
add esp, 0xc
lea eax, [ebp - 0x99]
mov dl, byte [eax]
push edx
xor ecx, ecx
mov dword [ebp - 8], ecx
lea eax, [ebp - 8]
push eax
inc dword [ebp - 0x78]
xor edx, edx
mov dword [ebp - 0x10], edx
lea edx, [ebp - 0x10]
inc dword [ebp - 0x78]
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax + 0x388]
mov eax, dword [ecx + 0x110]
call fcn.00469330
lea edx, [ebp - 0x10]
push dword [edx]
xor ecx, ecx
mov dword [ebp - 0xc], ecx
lea edx, [ebp - 0xc]
inc dword [ebp - 0x78]
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax + 0x388]
mov eax, dword [ecx + 0x110]
call fcn.004692f0
lea edx, [ebp - 0xc]
push dword [edx]
mov edx, 0x5c1422
lea eax, [ebp - 0x14]
call fcn.005bbcb4
inc dword [ebp - 0x78]
mov ecx, dword [eax]
pop eax
pop edx
call fcn.0046f498
dec dword [ebp - 0x78]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x78]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x78]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.005bbe44
mov word [ebp - 0x84], 0x18
push 1
push 0x17
lea ecx, [ebp - 0x2b0]
push ecx
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderPathW
mov eax, dword [ebp - 0x98]
mov edx, dword [eax + 0x4f8]
mov eax, dword [ebp - 0x98]
call fcn.0041218c
mov edx, dword [ebp - 0x98]
cmp dword [edx + 0x510], 2
jge 0x40bcad
mov word [ebp - 0x84], 0x30
mov edx, 0x5c1423
lea eax, [ebp - 0x1c]
call fcn.005bbcb4
inc dword [ebp - 0x78]
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x2b0]
lea eax, [ebp - 0x18]
call fcn.005bbde0
inc dword [ebp - 0x78]
xor ecx, ecx
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x20]
inc dword [ebp - 0x78]
pop edx
call fcn.005bbe94
lea eax, [ebp - 0x20]
xor edx, edx
mov dword [ebp - 0x24], edx
lea ecx, [ebp - 0x24]
inc dword [ebp - 0x78]
mov edx, dword [ebp - 0x98]
add edx, 0x4f8
call fcn.005bbe94
lea eax, [ebp - 0x24]
push eax
mov edx, 0x5c1435
lea eax, [ebp - 0x28]
call fcn.005bbcb4
inc dword [ebp - 0x78]
lea edx, [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x2c]
inc dword [ebp - 0x78]
pop eax
call fcn.005bbe94
lea eax, [ebp - 0x2c]
xor edx, edx
mov dword [ebp - 0x30], edx
lea ecx, [ebp - 0x30]
inc dword [ebp - 0x78]
lea edx, [ebp - 8]
call fcn.005bbe94
lea eax, [ebp - 0x30]
push eax
mov edx, 0x5c1437
lea eax, [ebp - 0x34]
call fcn.005bbcb4
inc dword [ebp - 0x78]
lea edx, [ebp - 0x34]
xor eax, eax
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x38]
inc dword [ebp - 0x78]
pop eax
call fcn.005bbe94
lea edx, [ebp - 0x38]
lea eax, [ebp - 4]
call fcn.005bbe6c
dec dword [ebp - 0x78]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x78]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x78]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x78]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x78]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x78]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x78]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x78]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x78]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.005bbe44
jmp 0x40bebd
mov word [ebp - 0x84], 0x3c
mov edx, 0x5c143c
lea eax, [ebp - 0x40]
call fcn.005bbcb4
inc dword [ebp - 0x78]
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x2b0]
lea eax, [ebp - 0x3c]
call fcn.005bbde0
inc dword [ebp - 0x78]
xor ecx, ecx
mov dword [ebp - 0x44], ecx
lea ecx, [ebp - 0x44]
inc dword [ebp - 0x78]
pop edx
call fcn.005bbe94
lea eax, [ebp - 0x44]
xor edx, edx
mov dword [ebp - 0x48], edx
lea ecx, [ebp - 0x48]
inc dword [ebp - 0x78]
mov edx, dword [ebp - 0x98]
add edx, 0x4f8
call fcn.005bbe94
lea eax, [ebp - 0x48]
push eax
mov edx, 0x5c144e
lea eax, [ebp - 0x4c]
call fcn.005bbcb4
inc dword [ebp - 0x78]
lea edx, [ebp - 0x4c]
xor eax, eax
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x50]
inc dword [ebp - 0x78]
pop eax
call fcn.005bbe94
lea edx, [ebp - 0x50]
push edx
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x510]
mov dword [ebp - 0xa0], eax
xor edx, edx
mov dword [ebp - 0x54], edx
push dword [ebp - 0xa0]
push 0x5c1458
lea ecx, [ebp - 0x54]
push ecx
call fcn.005bbf8c
add esp, 0xc
lea edx, [ebp - 0x54]
inc dword [ebp - 0x78]
xor eax, eax
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x58]
inc dword [ebp - 0x78]
pop eax
call fcn.005bbe94
lea edx, [ebp - 0x58]
push edx
mov edx, 0x5c1450
lea eax, [ebp - 0x5c]
call fcn.005bbcb4
inc dword [ebp - 0x78]
lea edx, [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x60]
inc dword [ebp - 0x78]
pop eax
call fcn.005bbe94
lea eax, [ebp - 0x60]
xor edx, edx
mov dword [ebp - 0x64], edx
lea ecx, [ebp - 0x64]
inc dword [ebp - 0x78]
lea edx, [ebp - 8]
call fcn.005bbe94
lea eax, [ebp - 0x64]
push eax
mov edx, 0x5c1453
lea eax, [ebp - 0x68]
call fcn.005bbcb4
inc dword [ebp - 0x78]
lea edx, [ebp - 0x68]
xor eax, eax
mov dword [ebp - 0x6c], eax
lea ecx, [ebp - 0x6c]
inc dword [ebp - 0x78]
pop eax
call fcn.005bbe94
lea edx, [ebp - 0x6c]
lea eax, [ebp - 4]
call fcn.005bbe6c
dec dword [ebp - 0x78]
lea eax, [ebp - 0x6c]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x78]
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x78]
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x78]
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x78]
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x78]
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x78]
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x78]
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x78]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x78]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x78]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x78]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x78]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.005bbe44
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00468c4c
test al, al
jne 0x40bf9e
push 0x5c145e
push 0
push 1
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x388]
add eax, 0x110
mov dword [ebp - 0xa8], eax
mov edx, dword [ebp - 0xa8]
cmp dword [edx], 0
je 0x40bf04
mov ecx, dword [ebp - 0xa8]
mov eax, dword [ecx]
jmp 0x40bf09
mov eax, 0x5c1466
push eax
push 0
mov word [ebp - 0x84], 0x48
xor edx, edx
mov dword [ebp - 0x70], edx
lea edx, [ebp - 0x70]
inc dword [ebp - 0x78]
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax + 0x388]
mov eax, dword [ecx + 0x110]
call fcn.004691d4
cmp dword [ebp - 0x70], 0
je 0x40bf42
mov ecx, dword [ebp - 0x70]
jmp 0x40bf47
mov ecx, 0x5c1464
mov eax, dword [ebp - 0x98]
mov edx, dword [eax + 0x388]
add edx, 0x110
mov dword [ebp - 0xa4], edx
mov ebx, dword [ebp - 0xa4]
cmp dword [ebx], 0
je 0x40bf74
mov eax, dword [ebp - 0xa4]
mov edx, dword [eax]
jmp 0x40bf79
mov edx, 0x5c1462
cmp dword [ebp - 4], 0
je 0x40bf84
mov eax, dword [ebp - 4]
jmp 0x40bf89
mov eax, 0x5c1460
call fcn.0040365c
dec dword [ebp - 0x78]
lea eax, [ebp - 0x70]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x78]
lea eax, [ebp - 8]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x78]
lea eax, [ebp - 4]
mov edx, 2
call fcn.005bbe44
mov ecx, dword [ebp - 0x94]
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret