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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd54
mov dword [ebp - 0x9c], eax
mov eax, 0x5ecf5c
call fcn.005d0a3c
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.005d051b
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.gta.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.00469620
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.gta.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.004695e0
lea eax, [ebp - 0x10]
push dword [eax]
mov edx, 0x5eb4cc
lea eax, [ebp - 0x1c]
call fcn.005de4c0
inc dword [ebp - 0x7c]
mov ecx, dword [eax]
pop eax
pop edx
call fcn.0046f788
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.005de650
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.005de650
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.005de650
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.005de650
dec dword [ebp - 0x7c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.005de650
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 + 0x4e8]
mov eax, dword [ebp - 0x9c]
call fcn.004123f0
mov edx, dword [ebp - 0x9c]
cmp dword [edx + 0x500], 2
jge 0x40c56f
mov word [ebp - 0x88], 0x30
mov edx, 0x5eb4cd
lea eax, [ebp - 0x24]
call fcn.005de4c0
push eax
inc dword [ebp - 0x7c]
lea edx, [ebp - 0x2ac]
lea eax, [ebp - 0x20]
call fcn.005de5ec
inc dword [ebp - 0x7c]
xor ecx, ecx
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x28]
inc dword [ebp - 0x7c]
pop edx
call fcn.005de6a0
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, 0x4e8
call fcn.005de6a0
lea eax, [ebp - 0x2c]
push eax
mov edx, 0x5eb4df
lea eax, [ebp - 0x30]
call fcn.005de4c0
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.005de6a0
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.005de6a0
lea eax, [ebp - 0x38]
push eax
mov edx, 0x5eb4e1
lea eax, [ebp - 0x3c]
call fcn.005de4c0
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.005de6a0
lea edx, [ebp - 0x40]
lea eax, [ebp - 4]
call fcn.005de678
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.005de650
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.005de650
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.005de650
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.005de650
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.005de650
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.005de650
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.005de650
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.005de650
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.005de650
jmp 0x40c77c
mov word [ebp - 0x88], 0x3c
mov edx, 0x5eb4e6
lea eax, [ebp - 0x48]
call fcn.005de4c0
push eax
inc dword [ebp - 0x7c]
lea edx, [ebp - 0x2ac]
lea eax, [ebp - 0x44]
call fcn.005de5ec
inc dword [ebp - 0x7c]
xor ecx, ecx
mov dword [ebp - 0x4c], ecx
lea ecx, [ebp - 0x4c]
inc dword [ebp - 0x7c]
pop edx
call fcn.005de6a0
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, 0x4e8
call fcn.005de6a0
lea eax, [ebp - 0x50]
push eax
mov edx, 0x5eb4f8
lea eax, [ebp - 0x54]
call fcn.005de4c0
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.005de6a0
lea edx, [ebp - 0x58]
push edx
mov ecx, dword [ebp - 0x9c]
mov eax, dword [ecx + 0x500]
mov dword [ebp - 0xa4], eax
xor edx, edx
mov dword [ebp - 0x5c], edx
push dword [ebp - 0xa4]
push 0x5eb502
lea ecx, [ebp - 0x5c]
push ecx
call fcn.005de798
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.005de6a0
lea edx, [ebp - 0x60]
push edx
mov edx, 0x5eb4fa
lea eax, [ebp - 0x64]
call fcn.005de4c0
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.005de6a0
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.005de6a0
lea eax, [ebp - 0x6c]
push eax
mov edx, str..lnk
lea eax, [ebp - 0x70]
call fcn.005de4c0
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.005de6a0
lea edx, [ebp - 0x74]
lea eax, [ebp - 4]
call fcn.005de678
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.005de650
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x70]
mov edx, 2
call fcn.005de650
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x6c]
mov edx, 2
call fcn.005de650
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.005de650
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.005de650
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.005de650
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.005de650
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.005de650
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.005de650
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.005de650
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.005de650
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.005de650
dec dword [ebp - 0x7c]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.005de650
mov eax, dword [ebp - 4]
call fcn.005dd714
dec dword [ebp - 0x7c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.005de650
dec dword [ebp - 0x7c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.005de650
mov ecx, dword [ebp - 0x98]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret