Function at 0x180001360
Capabilities:
Create thread
Get common file path
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x190
mov rax, qword [0x1800b6040]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rsi, rcx
mov ebp, 1
test edx, edx
je 0x180001614
cmp edx, ebp
jne 0x1800016d7
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
call fcn.180071720
mov ecx, eax
mov ebx, eax
call fcn.180071c70
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x50], xmm0
mov r8, 0xffffffffffffffff
movdqu xmmword [rsp + 0x60], xmm1
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1800013d0
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1800017f0
test ebx, ebx
je 0x1800013f3
cmp ebx, ebp
jne 0x18000171b
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x104
call sub.VCRUNTIME140.dll_memset
mov edx, 0xf8
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsd xmm0, qword [str.dsound.dll]
lea rcx, [rsp + 0x70]
mov eax, eax
add rcx, rax
mov eax, dword [0x180079a30]
movsd qword [rcx], xmm0
mov dword [rcx + 8], eax
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1800bb240], rax
test rax, rax
je 0x180001702
lea rdx, str.DirectSoundCaptureCreate
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800bb240]
lea rdx, str.DirectSoundCaptureCreate8
mov qword [0x1800bb200], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800bb240]
lea rdx, str.DirectSoundCaptureEnumerateA
mov qword [0x1800bb210], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800bb240]
lea rdx, str.DirectSoundCaptureEnumerateW
mov qword [0x1800bb1f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800bb240]
lea rdx, str.DirectSoundCreate
mov qword [0x1800bb230], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800bb240]
lea rdx, str.DirectSoundCreate8
mov qword [0x1800bb250], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800bb240]
lea rdx, str.DirectSoundEnumerateA
mov qword [0x1800bb208], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800bb240]
lea rdx, str.DirectSoundEnumerateW
mov qword [0x1800bb1f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800bb240]
lea rdx, str.DirectSoundFullDuplexCreate
mov qword [0x1800bb248], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800bb240]
lea rdx, str.DllCanUnloadNow
mov qword [0x1800bb220], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800bb240]
lea rdx, str.DllGetClassObject
mov qword [0x1800bb218], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800bb240]
lea rdx, str.GetDeviceID
mov qword [0x1800bb238], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
lea r8, [0x180001f20]
mov r9, rsi
mov qword [0x1800bb228], rax
mov qword [rsp + 0x28], rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
je 0x1800015cb
lea edx, [rdi + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x1800016d7
mov rcx, qword [rsp + 0x50]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000160a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000160a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180076cb4
jmp 0x1800016d7
mov rcx, qword [0x1800bb240]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
mov ebx, edi
xor eax, eax
lock cmpxchg dword [0x1800bb310], ebp
je 0x180001652
cmp rbx, 0x20
jae 0x18000163b
xor ecx, ecx
jmp 0x18000163d
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800bb310], ebp
jne 0x180001631
cmp qword [0x1800bb318], rdi
je 0x1800016d1
xor ecx, ecx
call fcn.1800715d0
test eax, eax
jne 0x1800016d1
mov rcx, qword [0x1800bc780]
mov qword [0x1800bc780], rdi
test rcx, rcx
je 0x180001699
nop dword [rax]
mov rbx, qword [rcx]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rbx
test rbx, rbx
jne 0x180001680
mov r8, qword [0x1800bc770]
xor edx, edx
mov rcx, qword [0x1800bb318]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1800bb318]
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
mov qword [0x1800bb318], rdi
mov qword [0x1800bc770], rdi
mov qword [0x1800bc778], rdi
xchg dword [0x1800bb310], edi
mov eax, ebp
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.180076c50
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
lea r8, str.Source_dsound.dll_missing
mov ecx, 0x10
lea rdx, str.Exiting
call fcn.180001080
int3
movups xmm0, xmmword [rsp + 0x50]
lea r9, [rsp + 0x30]
mov ecx, 0x10
movups xmm1, xmmword [rsp + 0x60]
lea r8, str.Unable_to_initialize_MinHook:__p
lea rdx, str.Exiting
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x40], xmm1
call fcn.180001080
int3