Function at 0x415430
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 0x47c11d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x860
mov eax, dword [0x49f008]
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 0x4154f2
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 0x4156e7
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.0x41555b
jmp dword [edi*4 + 0x415708]
lea eax, [ebp - 0x86c]
push 0x6e
push eax
call fcn.004643b0
add esp, 8
mov byte [ebp - 4], 2
jmp 0x4155d3
lea eax, [ebp - 0x86c]
push 0x6f
push eax
call fcn.004643b0
add esp, 8
mov byte [ebp - 4], 3
jmp 0x4155d3
lea eax, [ebp - 0x86c]
push 0x70
push eax
call fcn.004643b0
add esp, 8
mov byte [ebp - 4], 4
jmp 0x4155d3
lea eax, [ebp - 0x86c]
push 0x71
push eax
call fcn.004643b0
add esp, 8
mov byte [ebp - 4], 5
jmp 0x4155d3
lea eax, [ebp - 0x86c]
push 0x72
push eax
call fcn.004643b0
add esp, 8
mov byte [ebp - 4], 6
push dword [eax + 4]
lea ecx, [ebp - 0x824]
push dword [eax]
call fcn.004644b0
mov byte [ebp - 4], 1
push dword [ebp - 0x864]
call fcn.004634ea
push dword [ebp - 0x86c]
call fcn.004634ea
mov eax, dword [ebp - 0x824]
add esp, 8
mov dword [ebp - 0x854], eax
test eax, eax
jne 0x41561a
mov dword [ebp - 0x854], 0x487d18
mov ecx, 0x43
mov dword [ebp - 0x84c], 0x4153c0
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 0x4156a9
lea eax, [ebp - 0x818]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4156a2
lea ecx, [ebp - 0x818]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415680
sub ecx, edx
lea eax, [ebp - 0x818]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x83c]
call fcn.00402380
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.004634ea
push dword [ebp - 0x824]
call fcn.004634ea
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.004632a0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret