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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48518d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x860
mov eax, dword [0x4ab00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x840], esi
mov eax, dword [ebx + 8]
mov dword [ebp - 0x870], esi
mov dword [ebp - 0x870], eax
xor eax, eax
mov dword [ebp - 0x82c], 0
mov dword [ebp - 0x828], 7
mov word [ebp - 0x83c], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x840], eax
lea eax, [ebp - 0x840]
push eax
push 0
push 0
push 0x11
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jns 0x415a22
movups xmm0, xmmword [ebp - 0x83c]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x82c]
movq qword [esi + 0x10], xmm0
jmp 0x415c17
mov eax, dword [ebp - 0x840]
xorps xmm0, xmm0
movq qword [ebp - 0x824], xmm0
mov dword [ebp - 0x81c], 0
mov dword [ebp - 0x858], 0
mov dword [ebp - 0x844], 0
mov dword [ebp - 0x860], edi
mov dword [ebp - 0x85c], eax
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x81c], 0
mov edi, dword [ebx + 0xc]
mov byte [ebp - 4], 1
cmp edi, 4
ja case.default.0x415a8b
jmp dword [edi*4 + 0x415c38]
lea eax, [ebp - 0x86c]
push 0x6e
push eax
call fcn.0046cd70
add esp, 8
mov byte [ebp - 4], 2
jmp 0x415b03
lea eax, [ebp - 0x86c]
push 0x6f
push eax
call fcn.0046cd70
add esp, 8
mov byte [ebp - 4], 3
jmp 0x415b03
lea eax, [ebp - 0x86c]
push 0x70
push eax
call fcn.0046cd70
add esp, 8
mov byte [ebp - 4], 4
jmp 0x415b03
lea eax, [ebp - 0x86c]
push 0x71
push eax
call fcn.0046cd70
add esp, 8
mov byte [ebp - 4], 5
jmp 0x415b03
lea eax, [ebp - 0x86c]
push 0x72
push eax
call fcn.0046cd70
add esp, 8
mov byte [ebp - 4], 6
push dword [eax + 4]
lea ecx, [ebp - 0x824]
push dword [eax]
call fcn.0046ce70
mov byte [ebp - 4], 1
push dword [ebp - 0x864]
call fcn.0046bc3a
push dword [ebp - 0x86c]
call fcn.0046bc3a
mov eax, dword [ebp - 0x824]
add esp, 8
mov dword [ebp - 0x854], eax
test eax, eax
jne 0x415b4a
mov dword [ebp - 0x854], 0x491dd8
mov ecx, 0x43
mov dword [ebp - 0x84c], 0x4158f0
cmp edi, 4
mov eax, 0x243
cmove eax, ecx
mov dword [ebp - 0x850], eax
mov eax, dword [ebp - 0x870]
mov dword [ebp - 0x848], eax
lea eax, [ebp - 0x860]
push eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
push dword [ebp - 0x840]
mov edi, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test edi, edi
je 0x415bd9
lea eax, [ebp - 0x818]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x415bd2
lea ecx, [ebp - 0x818]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415bb0
sub ecx, edx
lea eax, [ebp - 0x818]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x83c]
call fcn.00402430
push edi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
movups xmm0, xmmword [ebp - 0x83c]
mov dword [esi + 0x10], 0
push dword [ebp - 0x81c]
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x82c]
movq qword [esi + 0x10], xmm0
call fcn.0046bc3a
push dword [ebp - 0x824]
call fcn.0046bc3a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046b9f0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret