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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x570eaa
mov eax, dword fs:[0]
push eax
sub esp, 0xd5c
mov eax, dword [0x5f969c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xd34], ecx
mov ecx, dword [ebp - 0xd34]
call fcn.0045f300
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xd34]
add ecx, 4
call fcn.0049af40
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xd34]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0xd34]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp - 0xd34]
mov dword [edx + 0x10], 0
mov ecx, dword [ebp - 0xd34]
call fcn.00476080
push eax
push 0x58cfc0
push 1
push 0
push 0x58d030
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x49a8da
jmp 0x49ad1e
mov ecx, dword [ebp - 0xd34]
add ecx, 4
call fcn.00476080
push eax
mov ecx, dword [ebp - 0xd34]
call fcn.004dfdf0
push eax
call fcn.0049af60
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x10]
call fcn.00438030
mov byte [ebp - 4], 2
push 0x9c
lea ecx, [ebp - 0x10]
call fcn.0041a8c0
lea ecx, [ebp - 0x14]
call fcn.00438030
mov byte [ebp - 4], 3
push 0x9c
lea ecx, [ebp - 0x14]
call fcn.0041a8c0
push 0x585108
lea ecx, [ebp - 0x14]
call fcn.00456610
push 0x104
mov eax, dword [ebp - 0xd34]
add eax, 0x14
push eax
mov ecx, 0x5fbeec
call fcn.0044ab70
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
mov edx, dword [ebp - 0xd34]
add edx, 0x21c
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x14]
call fcn.004dfdf0
push eax
mov eax, dword [ebp - 0xd34]
add eax, 0x21c
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, dword [ebp - 0xd34]
add ecx, 4
call fcn.004dfdf0
mov dword [ebp - 0xd38], eax
push 0
mov ecx, dword [ebp - 0xd34]
add ecx, 0x21c
push ecx
lea ecx, [ebp - 0xd28]
call fcn.00462bb0
mov dword [ebp - 0xd3c], eax
mov edx, dword [ebp - 0xd3c]
mov dword [ebp - 0xd40], edx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xd40]
call fcn.00401410
push eax
mov eax, dword [ebp - 0xd38]
push eax
mov ecx, dword [ebp - 0xd38]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xd28]
call fcn.00401430
cmp dword [ebp - 0x18], 0
jl 0x49aa6f
mov ecx, dword [ebp - 0xd34]
call fcn.004dfdf0
mov dword [ebp - 0xd44], eax
push 2
lea ecx, [ebp - 0x474]
push ecx
push 0x104
lea edx, [ebp - 0x224]
push edx
mov eax, dword [ebp - 0xd44]
push eax
mov ecx, dword [ebp - 0xd44]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp - 0xd34]
add ecx, 0x14
push ecx
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
sbb eax, eax
add eax, 1
mov ecx, dword [ebp - 0xd34]
mov dword [ecx + 8], eax
push 0
push 2
mov edx, dword [ebp - 0xd34]
add edx, 0x62c
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x10]
call fcn.004dfdf0
push eax
mov eax, dword [ebp - 0xd34]
add eax, 0x62c
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x14]
call fcn.004dfdf0
push eax
mov ecx, dword [ebp - 0xd34]
add ecx, 0x62c
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, dword [ebp - 0xd34]
add ecx, 4
call fcn.004dfdf0
mov dword [ebp - 0xd48], eax
push 0
mov edx, dword [ebp - 0xd34]
add edx, 0x62c
push edx
lea ecx, [ebp - 0xd2c]
call fcn.00462bb0
mov dword [ebp - 0xd4c], eax
mov eax, dword [ebp - 0xd4c]
mov dword [ebp - 0xd50], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0xd50]
call fcn.00401410
push eax
mov ecx, dword [ebp - 0xd48]
push ecx
mov edx, dword [ebp - 0xd48]
mov eax, dword [edx]
mov ecx, dword [eax + 0x14]
call ecx
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xd2c]
call fcn.00401430
cmp dword [ebp - 0x18], 0
jl 0x49ab9c
mov ecx, dword [ebp - 0xd34]
call fcn.004dfdf0
mov dword [ebp - 0xd54], eax
push 2
lea edx, [ebp - 0x8cc]
push edx
push 0x104
lea eax, [ebp - 0x67c]
push eax
mov ecx, dword [ebp - 0xd54]
push ecx
mov edx, dword [ebp - 0xd54]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
call ecx
mov edx, dword [ebp - 0xd34]
add edx, 0x14
push edx
lea eax, [ebp - 0x67c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
sbb eax, eax
add eax, 1
mov ecx, dword [ebp - 0xd34]
mov dword [ecx + 0x10], eax
push 0
push 7
mov edx, dword [ebp - 0xd34]
add edx, 0x424
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x10]
call fcn.004dfdf0
push eax
mov eax, dword [ebp - 0xd34]
add eax, 0x424
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x14]
call fcn.004dfdf0
push eax
mov ecx, dword [ebp - 0xd34]
add ecx, 0x424
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, dword [ebp - 0xd34]
add ecx, 4
call fcn.004dfdf0
mov dword [ebp - 0xd58], eax
push 0
mov edx, dword [ebp - 0xd34]
add edx, 0x424
push edx
lea ecx, [ebp - 0xd30]
call fcn.00462bb0
mov dword [ebp - 0xd5c], eax
mov eax, dword [ebp - 0xd5c]
mov dword [ebp - 0xd60], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0xd60]
call fcn.00401410
push eax
mov ecx, dword [ebp - 0xd58]
push ecx
mov edx, dword [ebp - 0xd58]
mov eax, dword [edx]
mov ecx, dword [eax + 0x14]
call ecx
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xd30]
call fcn.00401430
cmp dword [ebp - 0x18], 0
jl 0x49acc9
mov ecx, dword [ebp - 0xd34]
call fcn.004dfdf0
mov dword [ebp - 0xd64], eax
push 2
lea edx, [ebp - 0xd24]
push edx
push 0x104
lea eax, [ebp - 0xad4]
push eax
mov ecx, dword [ebp - 0xd64]
push ecx
mov edx, dword [ebp - 0xd64]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
call ecx
mov edx, dword [ebp - 0xd34]
add edx, 0x14
push edx
lea eax, [ebp - 0xad4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
sbb eax, eax
add eax, 1
mov ecx, dword [ebp - 0xd34]
mov dword [ecx + 0xc], eax
call fcn.004f5ee0
movzx edx, al
test edx, edx
je 0x49ad06
mov ecx, dword [ebp - 0xd34]
call fcn.004dfdf0
mov dword [ebp - 0xd68], eax
push 7
mov eax, dword [ebp - 0xd34]
add eax, 0x14
push eax
mov ecx, dword [ebp - 0xd68]
push ecx
mov edx, dword [ebp - 0xd68]
mov eax, dword [edx]
mov ecx, dword [eax + 0x44]
call ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.0044fc20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0044fc20
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xd34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0053c85d
mov esp, ebp
pop ebp
ret