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

Disassembly:
sub esp, 0x18
mov eax, dword [0x4d9540]
push ebx
lea ecx, [esp + 0x18]
push esi
push ecx
push 0x1a
push 0
mov dword [esp + 0x14], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jl 0x454f82
mov edx, dword [esp + 0x1c]
push edi
push edx
lea ecx, [esp + 0x18]
call fcn.004acdc0
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
call fcn.004ad580
mov ecx, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, eax
mov eax, dword [esi]
cmp ecx, eax
je 0x454eba
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x454e8e
mov edx, dword [0x4d9544]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x454e95
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x454ea5
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.00401630
jmp 0x454eba
lea ecx, [esp + 0xc]
call fcn.0040e950
mov esi, dword [esi]
mov dword [esp + 0xc], esi
add esi, 0xfffffff4
push esi
call edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x4d9544]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x454ee5
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x454ee5
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x454f78
lea edx, [esp + 0x1c]
push edx
call fcn.00489c40
mov ecx, dword [esp + 0x10]
mov esi, eax
add esp, 4
mov eax, dword [esi]
cmp ecx, eax
je 0x454f4d
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x454f21
mov edx, dword [0x4d9544]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x454f28
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x454f38
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x14]
call fcn.00401630
jmp 0x454f4d
lea ecx, [esp + 0xc]
call fcn.0040e950
mov esi, dword [esi]
mov dword [esp + 0xc], esi
add esi, 0xfffffff4
push esi
call edi
mov eax, dword [esp + 0x1c]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x454f78
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x454f78
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
lea ecx, [esp + 0x14]
call fcn.004acdf0
pop edi
mov eax, dword [0x4d9540]
mov ecx, 0x4da060
test ecx, ecx
mov dword [esp + 0xc], eax
je 0x454fce
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x454fce
push esi
lea ecx, [esp + 0x10]
call fcn.004012f0
test eax, eax
je 0x454fce
mov edx, dword [esp + 0xc]
inc esi
push esi
push 0x4da060
push edx
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0xc]
push 0xffffffffffffffff
call fcn.00401970
mov eax, dword [0x4d9540]
mov dword [esp + 0x10], eax
mov eax, dword [0x4ecd48]
push eax
mov ecx, dword [eax - 8]
mov eax, dword [esp + 0x10]
push ecx
push eax
mov edx, dword [eax - 8]
lea ecx, [esp + 0x1c]
push edx
call fcn.004017b0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
call fcn.00401200
lea ecx, [esp + 0x10]
call fcn.004014c0
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401850
mov eax, dword [esp + 0x18]
mov ecx, dword [0x4d9544]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x455047
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x455047
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0xc]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x455072
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x455072
mov edx, dword [esp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
lea eax, [esp + 8]
push eax
call fcn.0048ba60
add esp, 4
lea ecx, [esp + 8]
push 0x104
call fcn.0040f900
push eax
call fcn.00407e00
mov esi, dword [esp + 0x28]
add esp, 4
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.00401200
lea ecx, [esp + 8]
call fcn.004014c0
mov eax, esi
pop esi
pop ebx
add esp, 0x18
ret