Function at 0x140015d10
Capabilities:
Create thread
Set current directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x140031040]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov r12, rdx
mov r15, rcx
test rdx, rdx
je 0x140016047
mov qword [rcx + 0x10], rdx
mov ecx, 0xa0
call fcn.14001e160
mov qword [rbp - 0x80], rax
mov rcx, rax
call fcn.14001b760
mov rbx, rax
mov qword [rbp - 0x80], rax
mov ecx, 0x18
call fcn.14001e160
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov r13d, 1
mov dword [rax + 8], r13d
mov dword [rax + 0xc], r13d
lea rcx, vtable.std::_Ref_count_class_libowobs::Thread_.0
mov qword [rax], rcx
mov qword [rax + 0x10], rbx
mov qword [r15 + 0x18], rbx
mov rbx, qword [r15 + 0x20]
mov qword [r15 + 0x20], rax
lea rdi, [r13 - 2]
test rbx, rbx
je 0x140015de7
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, r13d
jne 0x140015de7
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, r13d
jne 0x140015de7
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rbx, qword [r15 + 0x18]
xor esi, esi
cmp qword [rbx + 0x10], rsi
jne 0x140015e82
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x18], rax
lea rcx, [rbx + 0x28]
mov qword [rcx + 0x10], rsi
mov rax, rcx
cmp qword [rcx + 0x18], 0xf
jbe 0x140015e20
mov rax, qword [rcx]
mov byte [rax], sil
mov r8d, 0x12
lea rdx, str.obs_command_thread
call fcn.1400067d0
mov rcx, rbx
call fcn.14001bb60
mov byte [rbx + 0x48], sil
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140015e54
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], rsi
mov byte [rbx + 8], 1
lea rax, [rbx + 0x20]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9, rbx
lea r8, [0x14001bd00]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x140015e94
lea rdx, str.fail_to_start_obs_command_thread
mov ecx, 0xc8
call qword [sym.imp.obs.dll_blog]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
lea rdx, [rbp - 0x10]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x20], rsi
lea rax, [rbp - 0x10]
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rax + r8*2], si
jne 0x140015ed0
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x38]
call fcn.140003670
lea r10, [rbp - 0x38]
mov r11, qword [rbp - 0x38]
mov rbx, qword [rbp - 0x20]
cmp rbx, 7
cmova r10, r11
mov rcx, qword [rbp - 0x28]
cmp rcx, 1
jb 0x140015f77
dec rcx
mov rax, rdi
cmp rcx, rax
cmovb rax, rcx
lea r9, [r10 + rax*2]
movzx edx, word [r9]
cmp dx, 0x5c
jne 0x140015f48
mov r8, r13
lea rax, [0x140026240]
mov rcx, r9
nop dword [rax]
cmp dx, word [rax]
jne 0x140015f48
add rcx, 2
add rax, 2
sub r8, 1
je 0x140015f53
movzx edx, word [rcx]
jmp 0x140015f30
cmp r9, r10
je 0x140015f77
sub r9, 2
jmp 0x140015f16
sub r9, r10
sar r9, 1
cmp r9, rdi
je 0x140015f77
lea rax, [rbp - 0x38]
cmp rbx, 7
cmova rax, r11
mov word [rax + r9*2], si
mov rbx, qword [rbp - 0x20]
mov r11, qword [rbp - 0x38]
lea rcx, [rbp - 0x38]
cmp rbx, 7
cmova rcx, r11
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rdx, qword [rbp - 0x20]
cmp rdx, 7
jbe 0x140015fcc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015fc7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140015fc7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001e19c
mov rax, qword [r15 + 0x20]
test rax, rax
je 0x140015fd9
lock inc dword [rax + 8]
mov rsi, qword [r15 + 0x18]
mov qword [rsp + 0x40], rsi
mov rbx, qword [r15 + 0x20]
mov qword [rsp + 0x48], rbx
mov r14, qword [r15 + 8]
lea rdx, str.starting_up_obs
mov ecx, 0x12c
call qword [sym.imp.obs.dll_blog]
xor r8d, r8d
xor edx, edx
lea rcx, str.en_US
call qword [sym.imp.obs.dll_obs_startup]
test al, al
jne 0x140016079
test rbx, rbx
je 0x140016047
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140016047
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140016047
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 8]
xor al, al
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.14001e140
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov qword [r14 + 0x70], r12
test rbx, rbx
je 0x140016090
lock inc dword [rbx + 8]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov qword [r14 + 0x78], rsi
mov rsi, qword [r14 + 0x80]
mov qword [r14 + 0x80], rbx
test rsi, rsi
je 0x1400160d5
mov eax, edi
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x1400160d0
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
mov eax, edi
lock xadd dword [rsi + 0xc], eax
cmp eax, 1
jne 0x1400160d0
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 8]
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x140016108
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140016108
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140016108
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 8]
call qword [sym.imp.obs.dll_obs_data_create]
mov rdi, rax
mov qword [rbp - 0x78], rax
mov rcx, rax
call qword [sym.imp.obs.dll_obs_data_addref]
nop
mov rcx, rdi
call qword [sym.imp.obs.dll_obs_data_release]
lea rdx, str.sample_rate
mov rcx, rdi
call qword [sym.imp.obs.dll_obs_data_has_default_value]
test al, al
jne 0x140016152
mov r8d, 0xac44
lea rdx, str.sample_rate
mov rcx, rdi
call qword [sym.imp.obs.dll_obs_data_set_default_int]
lea rdx, [0x140022278]
mov rcx, rdi
call qword [sym.imp.obs.dll_obs_data_has_default_value]
test al, al
jne 0x140016179
xor r8d, r8d
lea rdx, [0x140022278]
mov rcx, rdi
call qword [sym.imp.obs.dll_obs_data_set_default_bool]
lea rdx, str.sample_rate
mov rcx, rdi
call qword [sym.imp.obs.dll_obs_data_get_int]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x3c], 2
lea rdx, [0x140022278]
mov rcx, rdi
call qword [sym.imp.obs.dll_obs_data_get_bool]
mov ecx, dword [rsp + 0x3c]
test al, al
cmovne ecx, r13d
mov dword [rsp + 0x3c], ecx
lea rcx, [rsp + 0x38]
call qword [sym.imp.obs.dll_obs_reset_audio]
call qword [sym.imp.obs.dll_obs_data_create]
mov rbx, rax
mov qword [rsp + 0x38], rax
mov rcx, rax
call qword [sym.imp.obs.dll_obs_data_addref]
nop
mov rcx, rbx
call qword [sym.imp.obs.dll_obs_data_release]
call qword [sym.imp.obs.dll_obs_data_create]
mov rbx, rax
mov qword [rbp - 0x80], rax
mov rcx, rax
call qword [sym.imp.obs.dll_obs_data_addref]
nop
mov rcx, rbx
call qword [sym.imp.obs.dll_obs_data_release]
mov r14, qword [r15 + 8]
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x38]
mov rcx, r14
call fcn.140010af0
test al, al
je 0x140016270
movss xmm1, dword [0x140026d04]
movss xmm0, dword [0x140026d00]
call qword [sym.imp.obs.dll_obs_set_video_levels]
lea rcx, [rbp - 0x70]
call qword [sym.imp.obs.dll_obs_get_video_info]
test al, al
je 0x140016250
mov eax, dword [rbp - 0x54]
mov dword [r14 + 0xe8], eax
mov eax, dword [rbp - 0x58]
mov dword [r14 + 0xe4], eax
mov r9d, dword [r14 + 0xe8]
mov r8d, dword [r14 + 0xe4]
lea rdx, str.init_obs_video__width:_d_height:_d_
mov ecx, 0x12c
call qword [sym.imp.obs.dll_blog]
call qword [sym.imp.obs.dll_obs_load_all_modules]
call qword [sym.imp.obs.dll_obs_post_load_modules]
mov ecx, 0x18
call fcn.14001e160
mov rsi, rax
mov qword [rsp + 0x30], rax
mov rdx, qword [r15 + 0x10]
mov rcx, qword [r15 + 8]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
lea rax, vtable.obs_control::CommandQueryMachineInfo.0
mov qword [rsi], rax
mov dword [rsp + 0x50], 2
lea rdx, [rsp + 0x50]
lea rcx, [r15 + 0x28]
call fcn.140016660
mov qword [rax], rsi
mov ecx, 0x20
call fcn.14001e160
mov rsi, rax
mov qword [rsp + 0x30], rax
mov rdx, qword [r15 + 0x10]
mov rcx, qword [r15 + 8]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
lea rax, vtable.obs_control::CommandStart.0
mov qword [rsi], rax
mov byte [rsi + 0x18], 0
mov dword [rsp + 0x54], 3
lea rdx, [rsp + 0x54]
lea rcx, [r15 + 0x28]
call fcn.140016660
mov qword [rax], rsi
mov ecx, 0x18
call fcn.14001e160
mov rsi, rax
mov qword [rsp + 0x30], rax
mov rdx, qword [r15 + 0x10]
mov rcx, qword [r15 + 8]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
lea rax, vtable.obs_control::CommandStop.0
mov qword [rsi], rax
mov dword [rsp + 0x58], 4
lea rdx, [rsp + 0x58]
lea rcx, [r15 + 0x28]
call fcn.140016660
mov qword [rax], rsi
mov ecx, 0x18
call fcn.14001e160
mov rsi, rax
mov qword [rsp + 0x30], rax
mov rdx, qword [r15 + 0x10]
mov rcx, qword [r15 + 8]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
lea rax, vtable.obs_control::CommandSetVolume.0
mov qword [rsi], rax
mov dword [rsp + 0x5c], 5
lea rdx, [rsp + 0x5c]
lea rcx, [r15 + 0x28]
call fcn.140016660
mov qword [rax], rsi
mov ecx, 0x18
call fcn.14001e160
mov rsi, rax
mov qword [rsp + 0x30], rax
mov rdx, qword [r15 + 0x10]
mov rcx, qword [r15 + 8]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
lea rax, vtable.obs_control::CommandGameFocusChanged.0
mov qword [rsi], rax
mov dword [rsp + 0x60], 6
lea rdx, [rsp + 0x60]
lea rcx, [r15 + 0x28]
call fcn.140016660
mov qword [rax], rsi
mov ecx, 0x18
call fcn.14001e160
mov rsi, rax
mov qword [rsp + 0x30], rax
mov rdx, qword [r15 + 0x10]
mov rcx, qword [r15 + 8]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
lea rax, vtable.obs_control::CommandAddGameSource.0
mov qword [rsi], rax
mov dword [rsp + 0x64], 7
lea rdx, [rsp + 0x64]
lea rcx, [r15 + 0x28]
call fcn.140016660
mov qword [rax], rsi
mov ecx, 0x18
call fcn.14001e160
mov rsi, rax
mov qword [rsp + 0x30], rax
mov rdx, qword [r15 + 0x10]
mov rcx, qword [r15 + 8]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
lea rax, vtable.obs_control::CommandStartReplayCapture.0
mov qword [rsi], rax
mov dword [rsp + 0x68], 8
lea rdx, [rsp + 0x68]
lea rcx, [r15 + 0x28]
call fcn.140016660
mov qword [rax], rsi
mov ecx, 0x18
call fcn.14001e160
mov rsi, rax
mov qword [rsp + 0x30], rax
mov rdx, qword [r15 + 0x10]
mov rcx, qword [r15 + 8]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
lea rax, vtable.obs_control::CommandStopReplayCapture.0
mov qword [rsi], rax
mov dword [rsp + 0x6c], 9
lea rdx, [rsp + 0x6c]
lea rcx, [r15 + 0x28]
call fcn.140016660
mov qword [rax], rsi
mov ecx, 0x18
call fcn.14001e160
mov rsi, rax
mov qword [rsp + 0x30], rax
mov rdx, qword [r15 + 0x10]
mov rcx, qword [r15 + 8]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
lea rax, vtable.obs_control::CommandTobiiGaze.0
mov qword [rsi], rax
mov dword [rsp + 0x70], 0xa
lea rdx, [rsp + 0x70]
lea rcx, [r15 + 0x28]
call fcn.140016660
mov qword [rax], rsi
mov ecx, 0x18
call fcn.14001e160
mov rsi, rax
mov qword [rsp + 0x30], rax
mov r8, qword [r15 + 0x10]
mov rdx, qword [r15 + 8]
mov qword [rax + 8], rdx
mov qword [rax + 0x10], r8
lea rax, vtable.obs_control::CommandSetBRB.0
mov qword [rsi], rax
mov dword [rsp + 0x74], 0xb
lea rdx, [rsp + 0x74]
lea rcx, [r15 + 0x28]
call fcn.140016660
mov qword [rax], rsi
mov ecx, 0x18
call fcn.14001e160
mov rsi, rax
mov qword [rsp + 0x30], rax
mov r8, qword [r15 + 0x10]
mov rdx, qword [r15 + 8]
mov qword [rax + 8], rdx
mov qword [rax + 0x10], r8
lea rax, vtable.obs_control::CommandSplitVideo.0
mov qword [rsi], rax
mov dword [rsp + 0x78], 0xc
lea rdx, [rsp + 0x78]
lea rcx, [r15 + 0x28]
call fcn.140016660
mov qword [rax], rsi
mov byte [r15 + 0x38], 1
mov rcx, rbx
call qword [sym.imp.obs.dll_obs_data_release]
nop
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.obs.dll_obs_data_release]
nop
mov rcx, rdi
call qword [sym.imp.obs.dll_obs_data_release]
mov al, 1
jmp 0x140016049