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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd54
mov dword [ebp - 0x9c], eax
mov eax, 0x5c2ee0
call fcn.005ae2c8
mov word [ebp - 0x88], 0xc
xor edx, edx
mov dword [ebp - 4], edx
inc dword [ebp - 0x7c]
mov word [ebp - 0x88], 0x18
mov word [ebp - 0x88], 0x24
push 1
push 0
lea ecx, [ebp - 0x9d]
push ecx
call fcn.005addf7
add esp, 0xc
lea eax, [ebp - 0x9d]
mov dl, byte [eax]
push edx
xor ecx, ecx
mov dword [ebp - 8], ecx
lea eax, [ebp - 8]
push eax
inc dword [ebp - 0x7c]
xor edx, edx
mov dword [ebp - 0x14], edx
lea edx, [ebp - 0x14]
inc dword [ebp - 0x7c]
mov eax, dword [ebp - 0x9c]
mov eax, dword [eax + 0x388]
call sym.default.exe__TWMActionManager_rFileName_qqrv
lea eax, [ebp - 0x14]
mov eax, dword [eax]
xor edx, edx
mov dword [ebp - 0x18], edx
lea edx, [ebp - 0x18]
inc dword [ebp - 0x7c]
call fcn.00469330
lea eax, [ebp - 0x18]
push dword [eax]
xor ecx, ecx
mov dword [ebp - 0xc], ecx
lea edx, [ebp - 0xc]
inc dword [ebp - 0x7c]
mov eax, dword [ebp - 0x9c]
mov eax, dword [eax + 0x388]
call sym.default.exe__TWMActionManager_rFileName_qqrv
lea eax, [ebp - 0xc]
mov eax, dword [eax]
xor edx, edx
mov dword [ebp - 0x10], edx
lea edx, [ebp - 0x10]
inc dword [ebp - 0x7c]
call fcn.004692f0
lea eax, [ebp - 0x10]
push dword [eax]
mov edx, 0x5c1468
lea eax, [ebp - 0x1c]
call fcn.005bbcb4
inc dword [ebp - 0x7c]
mov ecx, dword [eax]
pop eax
pop edx
call fcn.0046f498
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x7c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.005bbe44
mov word [ebp - 0x88], 0x18
push 1
push 0x17
lea ecx, [ebp - 0x2ac]
push ecx
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderPathW
mov eax, dword [ebp - 0x9c]
mov edx, dword [eax + 0x4f8]
mov eax, dword [ebp - 0x9c]
call fcn.0041218c
mov edx, dword [ebp - 0x9c]
cmp dword [edx + 0x510], 2
jge 0x40c2b2
mov word [ebp - 0x88], 0x30
mov edx, 0x5c1469
lea eax, [ebp - 0x24]
call fcn.005bbcb4
inc dword [ebp - 0x7c]
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x2ac]
lea eax, [ebp - 0x20]
call fcn.005bbde0
inc dword [ebp - 0x7c]
xor ecx, ecx
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x28]
inc dword [ebp - 0x7c]
pop edx
call fcn.005bbe94
lea eax, [ebp - 0x28]
xor edx, edx
mov dword [ebp - 0x2c], edx
lea ecx, [ebp - 0x2c]
inc dword [ebp - 0x7c]
mov edx, dword [ebp - 0x9c]
add edx, 0x4f8
call fcn.005bbe94
lea eax, [ebp - 0x2c]
push eax
mov edx, 0x5c147b
lea eax, [ebp - 0x30]
call fcn.005bbcb4
inc dword [ebp - 0x7c]
lea edx, [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x34]
inc dword [ebp - 0x7c]
pop eax
call fcn.005bbe94
lea eax, [ebp - 0x34]
xor edx, edx
mov dword [ebp - 0x38], edx
lea ecx, [ebp - 0x38]
inc dword [ebp - 0x7c]
lea edx, [ebp - 8]
call fcn.005bbe94
lea eax, [ebp - 0x38]
push eax
mov edx, 0x5c147d
lea eax, [ebp - 0x3c]
call fcn.005bbcb4
inc dword [ebp - 0x7c]
lea edx, [ebp - 0x3c]
xor eax, eax
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x40]
inc dword [ebp - 0x7c]
pop eax
call fcn.005bbe94
lea edx, [ebp - 0x40]
lea eax, [ebp - 4]
call fcn.005bbe6c
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.005bbe44
jmp 0x40c4c2
mov word [ebp - 0x88], 0x3c
mov edx, 0x5c1482
lea eax, [ebp - 0x48]
call fcn.005bbcb4
inc dword [ebp - 0x7c]
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x2ac]
lea eax, [ebp - 0x44]
call fcn.005bbde0
inc dword [ebp - 0x7c]
xor ecx, ecx
mov dword [ebp - 0x4c], ecx
lea ecx, [ebp - 0x4c]
inc dword [ebp - 0x7c]
pop edx
call fcn.005bbe94
lea eax, [ebp - 0x4c]
xor edx, edx
mov dword [ebp - 0x50], edx
lea ecx, [ebp - 0x50]
inc dword [ebp - 0x7c]
mov edx, dword [ebp - 0x9c]
add edx, 0x4f8
call fcn.005bbe94
lea eax, [ebp - 0x50]
push eax
mov edx, 0x5c1494
lea eax, [ebp - 0x54]
call fcn.005bbcb4
inc dword [ebp - 0x7c]
lea edx, [ebp - 0x54]
xor eax, eax
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x58]
inc dword [ebp - 0x7c]
pop eax
call fcn.005bbe94
lea edx, [ebp - 0x58]
push edx
mov ecx, dword [ebp - 0x9c]
mov eax, dword [ecx + 0x510]
mov dword [ebp - 0xa4], eax
xor edx, edx
mov dword [ebp - 0x5c], edx
push dword [ebp - 0xa4]
push 0x5c149e
lea ecx, [ebp - 0x5c]
push ecx
call fcn.005bbf8c
add esp, 0xc
lea edx, [ebp - 0x5c]
inc dword [ebp - 0x7c]
xor eax, eax
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x60]
inc dword [ebp - 0x7c]
pop eax
call fcn.005bbe94
lea edx, [ebp - 0x60]
push edx
mov edx, 0x5c1496
lea eax, [ebp - 0x64]
call fcn.005bbcb4
inc dword [ebp - 0x7c]
lea edx, [ebp - 0x64]
xor eax, eax
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x68]
inc dword [ebp - 0x7c]
pop eax
call fcn.005bbe94
lea eax, [ebp - 0x68]
xor edx, edx
mov dword [ebp - 0x6c], edx
lea ecx, [ebp - 0x6c]
inc dword [ebp - 0x7c]
lea edx, [ebp - 8]
call fcn.005bbe94
lea eax, [ebp - 0x6c]
push eax
mov edx, str..lnk
lea eax, [ebp - 0x70]
call fcn.005bbcb4
inc dword [ebp - 0x7c]
lea edx, [ebp - 0x70]
xor eax, eax
mov dword [ebp - 0x74], eax
lea ecx, [ebp - 0x74]
inc dword [ebp - 0x7c]
pop eax
call fcn.005bbe94
lea edx, [ebp - 0x74]
lea eax, [ebp - 4]
call fcn.005bbe6c
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x70]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x6c]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.005bbe44
mov eax, dword [ebp - 4]
call fcn.005bafa0
dec dword [ebp - 0x7c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0x7c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.005bbe44
mov ecx, dword [ebp - 0x98]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret