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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e46c
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 0x484200
sub ecx, esi
sar ecx, 1
je 0x4842b1
test edx, edx
je 0x4842b1
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.0047a3d0
mov eax, dword [ebp - 0x440]
lea ecx, [ebp - 0x450]
push 1
dec eax
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.0047ad40
cmp dword [eax + 0x14], 8
lea ecx, [eax + 0x10]
jb 0x484263
mov eax, dword [eax]
push 1
push 0x58d068
push dword [ecx]
push eax
call fcn.0047a1e0
mov esi, eax
add esp, 0x10
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x484294
inc eax
push 2
push eax
push dword [ebp - 0x438]
call fcn.0045bfe0
add esp, 0xc
test esi, esi
je 0x4843cb
push 0x58d068
lea ecx, [ebp - 0x450]
call fcn.00482fe0
jmp 0x4843cb
push 0x410
lea eax, [ebp - 0x420]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4843cb
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 0x4842fb
xor ecx, ecx
jmp 0x484313
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x484304
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x438]
call fcn.0047a3d0
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x46c]
mov dword [ebp - 0x46c], 0x5c
push eax
lea ecx, [ebp - 0x438]
call fcn.00485480
cmp eax, 0xffffffff
je 0x4843aa
push 0xffffffffffffffff
inc eax
lea ecx, [ebp - 0x438]
push eax
lea eax, [ebp - 0x468]
push eax
call fcn.0047ad40
push eax
lea ecx, [ebp - 0x438]
call fcn.004796f0
lea ecx, [ebp - 0x468]
call fcn.0045d4a0
push str.Profile
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x468]
push eax
call fcn.00482b40
add esp, 0xc
lea ecx, [ebp - 0x450]
push eax
call fcn.004796f0
lea ecx, [ebp - 0x468]
call fcn.0045d4a0
mov eax, dword [ebp - 0x424]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x4843cb
inc eax
push 2
push eax
push dword [ebp - 0x438]
call fcn.0045bfe0
add esp, 0xc
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x468]
push eax
call fcn.00486340
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 2
jb 0x4843ef
mov edx, dword [edx]
mov dword [ebp - 0x424], 0xf
mov dword [ebp - 0x428], 0
mov byte [ebp - 0x438], 0
cmp byte [edx], 0
jne 0x484413
xor ecx, ecx
jmp 0x484421
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x484418
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.00483960
mov eax, dword [ebp - 0x424]
add esp, 8
cmp eax, 0x10
jb 0x484460
inc eax
push 1
push eax
push dword [ebp - 0x438]
call fcn.0045bfe0
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 0x48449c
push 1
inc eax
push eax
push dword [ebp - 0x468]
call fcn.0045bfe0
add esp, 0xc
lea eax, [ebp - 0x450]
push eax
push edi
call fcn.00486340
mov ecx, dword [ebp - 0x43c]
add esp, 8
cmp ecx, 8
jb 0x4844c9
push 2
inc ecx
push ecx
push dword [ebp - 0x450]
call fcn.0045bfe0
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.0053649e
mov esp, ebp
pop ebp
ret