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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008390e
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [section..data]
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 + 0xc]
xor eax, eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x474], esi
cmp dword [edi + 0x10], eax
jne 0x100046a9
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], eax
mov word [esi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x470], 1
jmp 0x100048c8
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
xor eax, eax
mov dword [ebp - 4], 1
push 0x40e
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x46c], 0
lea eax, [ebp - 0x46c]
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x10004737
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov byte [ebp - 4], al
jmp 0x1000488d
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x46c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x10004761
mov eax, dword [ebp - 0x46c]
test eax, eax
je 0x1000471c
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x1000471c
cmp word [ebp - 0x420], 0
jne 0x1000476f
xor ecx, ecx
jmp 0x1000478f
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
jmp 0x10004780
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004780
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x438]
call fcn.10003000
mov eax, dword [ebp - 0x46c]
test eax, eax
je 0x100047b3
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x428], 0
je 0x1000487b
mov edx, 0x10
lea ecx, [ebp - 0x438]
call fcn.1000ac50
push edi
lea edx, [ebp - 0x438]
lea ecx, [ebp - 0x450]
call fcn.1000add0
add esp, 4
push eax
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 2
call fcn.10004990
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 1
call fcn.10002a80
push 0x10093a40
lea ecx, [ebp - 0x450]
call fcn.10002f90
lea eax, [ebp - 0x450]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x438]
lea ecx, [ebp - 0x468]
call fcn.1000add0
add esp, 4
push eax
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 4
call fcn.10004990
lea ecx, [ebp - 0x468]
mov byte [ebp - 4], 3
call fcn.10002a80
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 1
call fcn.10002a80
lea ecx, [ebp - 0x438]
call fcn.1000b830
test al, al
jne 0x1000487b
lea ecx, [ebp - 0x438]
call fcn.1000c500
lea eax, [ebp - 0x438]
mov ecx, esi
push eax
call fcn.10004920
mov byte [ebp - 4], 0
cmp dword [ebp - 0x424], 8
mov dword [ebp - 0x470], 1
jb 0x100048af
push dword [ebp - 0x438]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], eax
mov word [ebp - 0x438], ax
mov eax, esi
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.10081b94
mov esp, ebp
pop ebp
ret 8