Function at 0x140017710
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 [0x140034040]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov r15, rdx
mov r13, rcx
test rdx, rdx
je 0x140017a3f
mov qword [rcx + 0x10], rdx
mov ecx, 0xa0
call fcn.140020074
mov qword [rbp - 0x80], rax
mov rcx, rax
call fcn.14001d630
mov rbx, rax
mov qword [rbp - 0x80], rax
mov ecx, 0x18
call fcn.140020074
mov qword [rbp - 0x78], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov r12d, 1
mov dword [rax + 8], r12d
mov dword [rax + 0xc], r12d
lea rcx, vtable.std::_Ref_count_class_libowobs::Thread_.0
mov qword [rax], rcx
mov qword [rax + 0x10], rbx
mov qword [r13 + 0x18], rbx
mov rbx, qword [r13 + 0x20]
mov qword [r13 + 0x20], rax
lea rdi, [r12 - 2]
test rbx, rbx
je 0x1400177e7
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, r12d
jne 0x1400177e7
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, r12d
jne 0x1400177e7
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rbx, qword [r13 + 0x18]
xor esi, esi
cmp qword [rbx + 0x10], rsi
jne 0x140017882
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 0x140017820
mov rax, qword [rcx]
mov byte [rax], sil
mov r8d, 0x12
lea rdx, str.obs_command_thread
call fcn.140003890
mov rcx, rbx
call fcn.14001da40
mov byte [rbx + 0x48], sil
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140017854
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, [0x14001dbe0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x140017894
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]
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x30]
call fcn.1400169f0
lea r10, [rbp - 0x30]
mov rbx, qword [rbp - 0x18]
cmp rbx, 7
seta sil
mov r11, qword [rbp - 0x30]
cmova r10, r11
mov rcx, qword [rbp - 0x20]
cmp rcx, 1
jb 0x14001795d
dec rcx
mov rax, rdi
cmp rcx, rax
cmovb rax, rcx
lea r9, [r10 + rax*2]
lea r14, [0x140028870]
mov r8, r9
sub r8, r14
cmp word [r9], 0x5c
jne 0x1400179ad
mov rdx, r12
mov rcx, r14
nop word [rax + rax]
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x1400179ad
add rcx, 2
sub rdx, 1
jne 0x140017920
sub r9, r10
sar r9, 1
cmp r9, rdi
je 0x14001795d
lea rax, [rbp - 0x30]
test sil, sil
cmovne rax, r11
xor ecx, ecx
mov word [rax + r9*2], cx
mov rbx, qword [rbp - 0x18]
mov r11, qword [rbp - 0x30]
lea rcx, [rbp - 0x30]
cmp rbx, 7
cmova rcx, r11
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rdx, qword [rbp - 0x18]
cmp rdx, 7
jbe 0x1400179c4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400179bf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400179bf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp r9, r10
je 0x14001795d
sub r9, 2
sub r8, 2
jmp 0x140017904
call fcn.140020040
mov r14, qword [r13 + 8]
mov rax, qword [r13 + 0x20]
test rax, rax
je 0x1400179d5
lock inc dword [rax + 8]
mov rsi, qword [r13 + 0x18]
mov qword [rsp + 0x40], rsi
mov rbx, qword [r13 + 0x20]
mov qword [rsp + 0x48], rbx
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 0x140017a71
test rbx, rbx
je 0x140017a3f
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140017a3f
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140017a3f
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.140020020
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 + 0x40], r15
test rbx, rbx
je 0x140017a88
lock inc dword [rbx + 8]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov qword [r14 + 0x48], rsi
mov rsi, qword [r14 + 0x50]
mov qword [r14 + 0x50], rbx
test rsi, rsi
je 0x140017ac7
mov eax, edi
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x140017ac2
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
mov eax, edi
lock xadd dword [rsi + 0xc], eax
cmp eax, 1
jne 0x140017ac2
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 8]
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x140017afa
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140017afa
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 0x140017afa
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 - 0x70], 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, [0x140024a48]
mov rcx, rdi
call qword [sym.imp.obs.dll_obs_data_has_default_value]
test al, al
jne 0x140017b44
mov r8d, 0xac44
lea rdx, [0x140024a48]
mov rcx, rdi
call qword [sym.imp.obs.dll_obs_data_set_default_int]
lea rdx, [0x140024a38]
mov rcx, rdi
call qword [sym.imp.obs.dll_obs_data_has_default_value]
test al, al
jne 0x140017b6b
xor r8d, r8d
lea rdx, [0x140024a38]
mov rcx, rdi
call qword [sym.imp.obs.dll_obs_data_set_default_bool]
lea rdx, [0x140024a48]
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, [0x140024a38]
mov rcx, rdi
call qword [sym.imp.obs.dll_obs_data_get_bool]
mov ecx, dword [rsp + 0x3c]
test al, al
cmovne ecx, r12d
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 - 0x78], 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 rsi, rax
mov qword [rbp - 0x80], rax
mov rcx, rax
call qword [sym.imp.obs.dll_obs_data_addref]
nop
mov rcx, rsi
call qword [sym.imp.obs.dll_obs_data_release]
mov r15, qword [r13 + 8]
lea r9, [rbp - 0x78]
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x38]
mov rcx, r15
call fcn.140011db0
test al, al
je 0x140017c86
movss xmm1, dword [0x140029324]
movss xmm0, dword [0x140029320]
call qword [sym.imp.obs.dll_obs_set_video_levels]
lea rcx, [rbp - 0x68]
call qword [sym.imp.obs.dll_obs_get_video_info]
test al, al
je 0x140017c66
mov eax, dword [rbp - 0x4c]
mov dword [r15 + 0xb8], eax
mov eax, dword [rbp - 0x50]
mov dword [r15 + 0xb4], eax
mov r9d, dword [r15 + 0xb8]
mov r8d, dword [r15 + 0xb4]
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.140020074
mov r14, rax
mov qword [rsp + 0x30], rax
mov rdx, qword [r13 + 0x10]
mov rcx, qword [r13 + 8]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
lea rax, vtable.obs_control::CommandQueryMachineInfo.0
mov qword [r14], rax
mov dword [rsp + 0x50], 2
lea rdx, [rsp + 0x50]
lea rcx, [r13 + 0x28]
call fcn.140018080
mov qword [rax], r14
mov ecx, 0x20
call fcn.140020074
mov r14, rax
mov qword [rsp + 0x30], rax
mov rdx, qword [r13 + 0x10]
mov rcx, qword [r13 + 8]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
lea rax, vtable.obs_control::CommandStart.0
mov qword [r14], rax
mov byte [r14 + 0x18], 0
mov dword [rsp + 0x54], 3
lea rdx, [rsp + 0x54]
lea rcx, [r13 + 0x28]
call fcn.140018080
mov qword [rax], r14
mov ecx, 0x18
call fcn.140020074
mov r14, rax
mov qword [rsp + 0x30], rax
mov rdx, qword [r13 + 0x10]
mov rcx, qword [r13 + 8]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
lea rax, vtable.obs_control::CommandStop.0
mov qword [r14], rax
mov dword [rsp + 0x58], 4
lea rdx, [rsp + 0x58]
lea rcx, [r13 + 0x28]
call fcn.140018080
mov qword [rax], r14
mov ecx, 0x18
call fcn.140020074
mov r14, rax
mov qword [rsp + 0x30], rax
mov rdx, qword [r13 + 0x10]
mov rcx, qword [r13 + 8]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
lea rax, vtable.obs_control::CommandSetVolume.0
mov qword [r14], rax
mov dword [rsp + 0x5c], 5
lea rdx, [rsp + 0x5c]
lea rcx, [r13 + 0x28]
call fcn.140018080
mov qword [rax], r14
mov ecx, 0x18
call fcn.140020074
mov r14, rax
mov qword [rsp + 0x30], rax
mov rdx, qword [r13 + 0x10]
mov rcx, qword [r13 + 8]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
lea rax, vtable.obs_control::CommandGameFocusChanged.0
mov qword [r14], rax
mov dword [rsp + 0x60], 6
lea rdx, [rsp + 0x60]
lea rcx, [r13 + 0x28]
call fcn.140018080
mov qword [rax], r14
mov ecx, 0x18
call fcn.140020074
mov r14, rax
mov qword [rsp + 0x30], rax
mov rdx, qword [r13 + 0x10]
mov rcx, qword [r13 + 8]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
lea rax, vtable.obs_control::CommandAddGameSource.0
mov qword [r14], rax
mov dword [rsp + 0x64], 7
lea rdx, [rsp + 0x64]
lea rcx, [r13 + 0x28]
call fcn.140018080
mov qword [rax], r14
mov ecx, 0x18
call fcn.140020074
mov r14, rax
mov qword [rsp + 0x30], rax
mov rdx, qword [r13 + 0x10]
mov rcx, qword [r13 + 8]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
lea rax, vtable.obs_control::CommandStartReplayCapture.0
mov qword [r14], rax
mov dword [rsp + 0x68], 8
lea rdx, [rsp + 0x68]
lea rcx, [r13 + 0x28]
call fcn.140018080
mov qword [rax], r14
mov ecx, 0x18
call fcn.140020074
mov r14, rax
mov qword [rsp + 0x30], rax
mov rdx, qword [r13 + 0x10]
mov rcx, qword [r13 + 8]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
lea rax, vtable.obs_control::CommandStopReplayCapture.0
mov qword [r14], rax
mov dword [rsp + 0x6c], 9
lea rdx, [rsp + 0x6c]
lea rcx, [r13 + 0x28]
call fcn.140018080
mov qword [rax], r14
mov ecx, 0x18
call fcn.140020074
mov r14, rax
mov qword [rsp + 0x30], rax
mov rdx, qword [r13 + 0x10]
mov rcx, qword [r13 + 8]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
lea rax, vtable.obs_control::CommandTobiiGaze.0
mov qword [r14], rax
mov dword [rsp + 0x70], 0xa
lea rdx, [rsp + 0x70]
lea rcx, [r13 + 0x28]
call fcn.140018080
mov qword [rax], r14
mov ecx, 0x18
call fcn.140020074
mov r14, rax
mov qword [rsp + 0x30], rax
mov r8, qword [r13 + 0x10]
mov rdx, qword [r13 + 8]
mov qword [rax + 8], rdx
mov qword [rax + 0x10], r8
lea rax, vtable.obs_control::CommandSetBRB.0
mov qword [r14], rax
mov dword [rsp + 0x74], 0xb
lea rdx, [rsp + 0x74]
lea rcx, [r13 + 0x28]
call fcn.140018080
mov qword [rax], r14
mov ecx, 0x18
call fcn.140020074
mov r14, rax
mov qword [rsp + 0x30], rax
mov r8, qword [r13 + 0x10]
mov rdx, qword [r13 + 8]
mov qword [rax + 8], rdx
mov qword [rax + 0x10], r8
lea rax, vtable.obs_control::CommandSplitVideo.0
mov qword [r14], rax
mov dword [rsp + 0x78], 0xc
lea rdx, [rsp + 0x78]
lea rcx, [r13 + 0x28]
call fcn.140018080
mov qword [rax], r14
mov byte [r13 + 0x38], 1
mov rcx, rsi
call qword [sym.imp.obs.dll_obs_data_release]
nop
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 0x140017a41