Function at 0x1800168b0
Capabilities:
Create directory
Create thread
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x180066040]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rdi, qword [rcx + 0x18]
mov rbx, qword [rcx + 0x10]
mov rsi, qword [rcx + 8]
lea rax, [rsp + 0x170]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1a
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x180016b33
mov rax, 0xffffffffffffffff
mov rcx, rax
inc rcx
cmp byte [rbx + rcx], 0
jne 0x180016912
mov rdx, rax
nop
inc rdx
cmp byte [rdi + rdx], 0
jne 0x180016920
add rcx, rdx
lea rdx, [rsp + 0x170]
inc rax
cmp byte [rdx + rax], 0
jne 0x180016934
add rax, 2
add rax, rcx
cmp rax, 0x104
jae 0x180016b33
lea r8, [0x18005ab54]
mov edx, 0x104
lea rcx, [rsp + 0x170]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov r8, rbx
mov edx, 0x104
lea rcx, [rsp + 0x170]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
xor edx, edx
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1800169a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x180016b33
lea r8, [0x18005ab54]
mov edx, 0x104
lea rcx, [rsp + 0x170]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov r8, rdi
mov edx, 0x104
lea rcx, [rsp + 0x170]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x38]
lea rax, [rsp + 0x170]
mov ebx, 2
mov edx, ebx
nop
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rdx, 1
jne 0x1800169f0
mov eax, dword [rax]
mov dword [rcx], eax
mov qword [rsp + 0x140], rdi
mov ecx, 0x118
call fcn.180051108
mov r9, rax
mov rcx, rax
lea rax, [rsp + 0x30]
nop dword [rax]
nop word [rax + rax]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rbx, 1
jne 0x180016a70
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
mov rax, qword [rax + 0x10]
mov qword [rcx + 0x10], rax
mov qword [rsp + 0x160], r9
lea rax, [rsp + 0x158]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
lea r8, [0x180050490]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x150], rax
test rax, rax
je 0x180016b64
cmp dword [rsp + 0x158], ebx
je 0x180016b58
movaps xmm0, xmmword [rsp + 0x150]
movdqa xmmword [rsp + 0x160], xmm0
lea rcx, [rsp + 0x160]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x180016b58
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1800510e0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x158], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3