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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e44c
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x5fad8c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x43c], 7
mov dword [ebp - 0x440], 0
mov word [ebp - 0x450], ax
push 0x410
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x420]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x420]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x420]
mov edx, eax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x484520
sub ecx, esi
sar ecx, 1
je 0x4845d1
test edx, edx
je 0x4845d1
xor eax, eax
cmp word [ebp - 0x420], ax
cmove ecx, eax
lea eax, [ebp - 0x420]
push ecx
push eax
lea ecx, [ebp - 0x450]
call fcn.0047a540
mov eax, dword [ebp - 0x440]
lea ecx, [ebp - 0x450]
push 1
dec eax
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.0047aeb0
cmp dword [eax + 0x14], 8
lea ecx, [eax + 0x10]
jb 0x484583
mov eax, dword [eax]
push 1
push 0x58d068
push dword [ecx]
push eax
call fcn.0047a350
mov esi, eax
add esp, 0x10
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x4845b4
inc eax
push 2
push eax
push dword [ebp - 0x438]
call fcn.0045bf60
add esp, 0xc
test esi, esi
je 0x4846eb
push 0x58d068
lea ecx, [ebp - 0x450]
call fcn.00483300
jmp 0x4846eb
push 0x410
lea eax, [ebp - 0x420]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4846eb
xor eax, eax
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
mov byte [ebp - 4], 1
cmp word [ebp - 0x420], ax
jne 0x48461b
xor ecx, ecx
jmp 0x484633
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x484624
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x438]
call fcn.0047a540
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x46c]
mov dword [ebp - 0x46c], 0x5c
push eax
lea ecx, [ebp - 0x438]
call fcn.004857a0
cmp eax, 0xffffffff
je 0x4846ca
push 0xffffffffffffffff
inc eax
lea ecx, [ebp - 0x438]
push eax
lea eax, [ebp - 0x468]
push eax
call fcn.0047aeb0
push eax
lea ecx, [ebp - 0x438]
call fcn.00479860
lea ecx, [ebp - 0x468]
call fcn.0045d430
push str.Profile
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x468]
push eax
call fcn.00482cb0
add esp, 0xc
lea ecx, [ebp - 0x450]
push eax
call fcn.00479860
lea ecx, [ebp - 0x468]
call fcn.0045d430
mov eax, dword [ebp - 0x424]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x4846eb
inc eax
push 2
push eax
push dword [ebp - 0x438]
call fcn.0045bf60
add esp, 0xc
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x468]
push eax
call fcn.00486660
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 2
jb 0x48470f
mov edx, dword [edx]
mov dword [ebp - 0x424], 0xf
mov dword [ebp - 0x428], 0
mov byte [ebp - 0x438], 0
cmp byte [edx], 0
jne 0x484733
xor ecx, ecx
jmp 0x484741
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x484738
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x438]
call fcn.00455d10
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 3
push 0
push eax
call fcn.00483c80
mov eax, dword [ebp - 0x424]
add esp, 8
cmp eax, 0x10
jb 0x484780
inc eax
push 1
push eax
push dword [ebp - 0x438]
call fcn.0045bf60
add esp, 0xc
mov eax, dword [ebp - 0x454]
mov dword [ebp - 0x424], 0xf
mov dword [ebp - 0x428], 0
mov byte [ebp - 0x438], 0
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x4847bc
push 1
inc eax
push eax
push dword [ebp - 0x468]
call fcn.0045bf60
add esp, 0xc
lea eax, [ebp - 0x450]
push eax
push edi
call fcn.00486660
mov ecx, dword [ebp - 0x43c]
add esp, 8
cmp ecx, 8
jb 0x4847e9
push 2
inc ecx
push ecx
push dword [ebp - 0x450]
call fcn.0045bf60
add esp, 0xc
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053658e
mov esp, ebp
pop ebp
ret