Function at 0x140097c70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x300]
sub rsp, 0x400
mov rax, qword [0x14022b800]
xor rax, rsp
mov qword [rbp + 0x2f8], rax
mov r13, rdx
mov rdi, rcx
mov rbx, qword [rcx + 0x30]
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x78], xmm1
test rbx, rbx
je 0x140097cfd
mov qword [rbp - 0x78], rbx
mov eax, 1
lock xadd dword [rbx], eax
inc eax
cmp eax, 1
jle 0x140097ceb
mov rax, qword gs:[0x30]
mov ecx, dword [rax + 0x48]
cmp dword [rbx + 4], ecx
je 0x140097cfa
mov edx, 0xffffffff
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword gs:[0x30]
mov ecx, dword [rax + 0x48]
mov dword [rbx + 4], ecx
inc dword [rbx + 8]
mov ebx, 8
mov rax, qword gs:[0x58]
add rbx, qword [rax]
cmp byte [rbx], 0
jne 0x140097d2c
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea rdx, str.Pipelines::DisplayCapture::QueryOutput
call qword [sym.imp.KERNEL32.dll_SetThreadDescription]
mov byte [rbx], 1
xor ebx, ebx
mov rcx, qword [0x14023d500]
test rcx, rcx
je 0x140097d47
mov qword [0x14023d500], rbx
mov rax, qword [rcx]
call qword [rax + 8]
cmp byte [rdi + 0x78], bl
je 0x140097d57
mov r14d, 0x17
jmp 0x1400985aa
mov r14d, 1
mov rcx, rbx
mov qword [rbp + 0x2b8], rbx
mov edx, dword [rdi + 0x40]
test edx, edx
je 0x140097d88
sub edx, r14d
je 0x140097d82
cmp edx, r14d
jne 0x14009859e
mov rcx, qword [rdi + 0x48]
jmp 0x140097d8c
mov rcx, qword [rdi + 0x68]
jmp 0x140097d8c
mov rcx, qword [rdi + 0x58]
mov qword [rbp + 0x2b8], rbx
mov rax, qword [rcx]
lea rdx, [rbp + 0x2b8]
call qword [rax + 0x20]
mov r14d, eax
mov rcx, qword [rbp + 0x2b8]
test rcx, rcx
je 0x14009859e
mov qword [rbp + 0x2b0], rbx
mov dword [rsp + 0x30], 0x3075dbe3
mov dword [rsp + 0x34], 0x4cfa8718
mov dword [rsp + 0x38], 0x1421fb86
mov dword [rsp + 0x3c], 0x51a4a5c0
mov rax, qword [rcx]
lea r8, [rbp + 0x2b0]
lea rdx, [rsp + 0x30]
call qword [rax + 0x10]
mov rsi, qword [rbp + 0x2b0]
test eax, eax
cmovne rsi, rbx
mov qword [rbp + 0x2b0], rsi
mov qword [rbp + 0x2f0], rsi
test rsi, rsi
je 0x140098582
mov rax, qword [rsi]
lea rdx, [rdi + 0x28]
test rdi, rdi
cmove rdx, rbx
mov rcx, rsi
call qword [rax + 0xf8]
test r14d, r14d
jne 0x140098582
mov rbx, qword [0x14023d500]
cmp rbx, rsi
je 0x140097e59
mov qword [0x14023d500], rsi
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
test rbx, rbx
je 0x140097e59
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
inc dword [rdi + 0x80]
mov ebx, dword [rdi + 0x80]
call fcn.140062580
mov rcx, rax
mov r8d, ebx
mov edx, 1
call fcn.14010d160
call fcn.14000c950
mov r15, rax
mov rax, qword [0x14023d470]
test rax, rax
jle 0x140097ea9
mov rbx, r15
sub rbx, rax
call fcn.140062580
mov rcx, rax
mov r8, rbx
mov edx, 0x22
call fcn.14010d7f0
mov qword [0x14023d470], r15
mov rax, qword [rsi]
mov rdx, r15
mov rcx, rsi
call qword [rax + 0x98]
movzx r12d, byte [rdi + 0x174]
call fcn.140061c90
mov rcx, rax
call fcn.14001f8c0
test al, al
je 0x140097f8b
mov bl, 1
mov dword [rbp + 0x2c0], 0
mov rax, qword [rsi]
lea r8, [rbp + 0x2c0]
lea rdx, str.DisplayCaptureSurfaceIsFullscreen
mov rcx, rsi
call qword [rax + 0x20]
mov r15d, eax
test eax, eax
jne 0x140097f64
mov ecx, dword [rbp + 0x2c0]
xor bl, bl
test ecx, ecx
je 0x140097f64
cmp ecx, 1
jne 0x140097f20
movzx ebx, byte [rbp + 0x2c8]
jmp 0x140097f64
mov dword [rbp + 0x2d8], 0
mov r8d, 1
lea rdx, [rbp + 0x2c0]
lea rcx, [rbp + 0x2d8]
call fcn.14000d3d0
movzx ebx, bl
movzx eax, byte [rbp + 0x2e0]
cmp dword [rbp + 0x2d8], 0
cmovne ebx, eax
lea rcx, [rbp + 0x2d8]
call fcn.14000b9c0
nop
lea rcx, [rbp + 0x2c0]
call fcn.14000b9c0
nop
test r15d, r15d
jne 0x140097f8b
cmp byte [rdi + 0x174], r15b
jne 0x140097f88
test bl, bl
je 0x140097f88
xor r12b, r12b
jmp 0x140097f8b
mov r12b, 1
call fcn.140061c90
mov rcx, rax
call fcn.14001dc40
test eax, eax
je 0x140098195
lea r8, [rdi + 0x88]
lea rdx, [rsp + 0x20]
mov rcx, qword [rdi + 0x178]
call fcn.1400632e0
mov eax, dword [rdi + 0x8c]
cmp eax, 0x5a
jne 0x14009800f
mov eax, dword [rsp + 0x24]
cmp byte [rdi + 0xa0], 0
je 0x140097fe6
mov ecx, dword [rdi + 0xa4]
sub ecx, dword [rsp + 0x20]
mov dword [rsp + 0x20], eax
mov eax, dword [rdi + 0xa4]
jmp 0x140097ffa
mov ecx, dword [rdi + 0x90]
sub ecx, dword [rsp + 0x20]
mov dword [rsp + 0x20], eax
mov eax, dword [rdi + 0x90]
sub eax, dword [rsp + 0x28]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x2c], ecx
jmp 0x1400980d9
cmp eax, 0xb4
jne 0x140098083
cmp byte [rdi + 0xa0], 0
je 0x140098049
mov edx, dword [rdi + 0xa4]
sub edx, dword [rsp + 0x20]
mov ecx, dword [rdi + 0xa8]
sub ecx, dword [rsp + 0x2c]
mov eax, dword [rdi + 0xa4]
sub eax, dword [rsp + 0x28]
mov dword [rsp + 0x20], eax
mov eax, dword [rdi + 0xa8]
jmp 0x140098071
mov edx, dword [rdi + 0x90]
sub edx, dword [rsp + 0x20]
mov ecx, dword [rdi + 0x94]
sub ecx, dword [rsp + 0x2c]
mov eax, dword [rdi + 0x90]
sub eax, dword [rsp + 0x28]
mov dword [rsp + 0x20], eax
mov eax, dword [rdi + 0x94]
sub eax, dword [rsp + 0x24]
mov dword [rsp + 0x2c], eax
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x24], ecx
jmp 0x1400980dd
cmp eax, 0x10e
jne 0x1400980dd
mov ecx, dword [rsp + 0x20]
cmp byte [rdi + 0xa0], 0
je 0x1400980b5
mov eax, dword [rdi + 0xa8]
sub eax, dword [rsp + 0x2c]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x2c], eax
mov eax, dword [rdi + 0xa8]
jmp 0x1400980d1
mov eax, dword [rdi + 0x94]
sub eax, dword [rsp + 0x2c]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x2c], eax
mov eax, dword [rdi + 0x94]
sub eax, dword [rsp + 0x24]
mov dword [rsp + 0x24], ecx
mov dword [rsp + 0x28], eax
movaps xmm1, xmmword [rsp + 0x20]
mov dword [rbp + 0x58], 4
movups xmmword [rbp + 0x60], xmm1
movups xmm0, xmmword [rbp + 0x58]
movaps xmmword [rbp + 0xa0], xmm0
unpckhpd xmm1, xmm1
movsd qword [rbp + 0xb0], xmm1
mov rax, qword [rsi]
lea r8, [rbp + 0xa0]
lea rdx, str.RegionCaptureRect
mov rcx, rsi
call qword [rax + 0x18]
nop
lea rcx, [rbp + 0x58]
call fcn.14000b9c0
nop
lea rdx, [rdi + 0x88]
lea rcx, [rbp + 0x210]
call fcn.14000fad0
mov r8, rax
movzx edx, r12b
mov rcx, qword [rdi + 0x178]
call fcn.140063710
mov dword [rbp - 0x50], 1
mov byte [rbp - 0x48], al
movups xmm0, xmmword [rbp - 0x50]
movaps xmmword [rbp + 0xc0], xmm0
movsd xmm1, qword [rbp - 0x40]
movsd qword [rbp + 0xd0], xmm1
mov rax, qword [rsi]
lea r8, [rbp + 0xc0]
lea rdx, str.Blackout
mov rcx, rsi
call qword [rax + 0x18]
nop
lea rcx, [rbp - 0x50]
call fcn.14000b9c0
nop
jmp 0x140098229
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x200], xmm1
mov dword [rbp + 0x40], 4
movups xmmword [rbp + 0x48], xmm1
movups xmm0, xmmword [rbp + 0x40]
movaps xmmword [rbp + 0xe0], xmm0
unpckhpd xmm1, xmm1
movsd qword [rbp + 0xf0], xmm1
mov rax, qword [rsi]
lea r8, [rbp + 0xe0]
lea rdx, str.RegionCaptureRect
mov rcx, rsi
call qword [rax + 0x18]
nop
lea rcx, [rbp + 0x40]
call fcn.14000b9c0
nop
mov dword [rbp - 0x38], 1
mov byte [rbp - 0x30], r12b
movups xmm0, xmmword [rbp - 0x38]
movaps xmmword [rbp + 0x100], xmm0
movsd xmm1, qword [rbp - 0x28]
movsd qword [rbp + 0x110], xmm1
mov rax, qword [rsi]
lea r8, [rbp + 0x100]
lea rdx, str.Blackout
mov rcx, rsi
call qword [rax + 0x18]
nop
lea rcx, [rbp - 0x38]
call fcn.14000b9c0
nop
mov dword [rbp - 0x20], 2
movsxd rax, dword [rdi + 0x170]
mov qword [rbp - 0x18], rax
movups xmm0, xmmword [rbp - 0x20]
movaps xmmword [rbp + 0x120], xmm0
movsd xmm1, qword [rbp - 0x10]
movsd qword [rbp + 0x130], xmm1
mov rax, qword [rsi]
lea r8, [rbp + 0x120]
lea rdx, str.SyncElement
mov rcx, rsi
call qword [rax + 0x18]
nop
lea rcx, [rbp - 0x20]
call fcn.14000b9c0
nop
mov qword [rsp + 0x40], rsi
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
lea rcx, [rdi + 0x128]
lea rdx, [rsp + 0x40]
call fcn.140098b40
mov eax, dword [rdi + 0x8c]
cmp eax, 0x5a
je 0x1400983bb
cmp eax, 0x10e
je 0x1400983bb
cmp byte [rdi + 0xa0], 0
je 0x1400982c4
mov eax, dword [rdi + 0xa8]
mov ecx, dword [rdi + 0xa4]
jmp 0x1400982d0
mov eax, dword [rdi + 0x94]
mov ecx, dword [rdi + 0x90]
mov edx, dword [rdi + 0xb0]
lea r8d, [rdx + rax]
mov eax, dword [rdi + 0xac]
add ecx, eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x4c], edx
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x54], r8d
mov dword [rbp + 0x28], 4
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rbp + 0x30], xmm1
movups xmm0, xmmword [rbp + 0x28]
movaps xmmword [rbp + 0x140], xmm0
unpckhpd xmm1, xmm1
movsd qword [rbp + 0x150], xmm1
mov rax, qword [rsi]
lea r8, [rbp + 0x140]
lea rdx, str.DesktopRect
mov rcx, rsi
call qword [rax + 0x18]
nop
lea rcx, [rbp + 0x28]
call fcn.14000b9c0
nop
mov r8d, dword [rdi + 0xb0]
mov r9d, dword [rdi + 0x94]
add r9d, r8d
mov ecx, dword [rdi + 0xac]
mov edx, dword [rdi + 0x90]
add edx, ecx
mov dword [rsp + 0x58], ecx
mov dword [rsp + 0x5c], r8d
mov dword [rsp + 0x60], edx
mov dword [rsp + 0x64], r9d
mov dword [rbp + 0x10], 4
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rbp + 0x18], xmm1
movups xmm0, xmmword [rbp + 0x10]
movaps xmmword [rbp + 0x160], xmm0
unpckhpd xmm1, xmm1
movsd qword [rbp + 0x170], xmm1
mov rax, qword [rsi]
lea r8, [rbp + 0x160]
lea rdx, str.DesktopRectOs
mov rcx, rsi
call qword [rax + 0x18]
nop
lea rcx, [rbp + 0x10]
call fcn.14000b9c0
nop
jmp 0x1400984ce
cmp byte [rdi + 0xa0], 0
je 0x1400983d2
mov eax, dword [rdi + 0xa4]
mov ecx, dword [rdi + 0xa8]
jmp 0x1400983de
mov eax, dword [rdi + 0x90]
mov ecx, dword [rdi + 0x94]
mov edx, dword [rdi + 0xb0]
lea r8d, [rdx + rax]
mov eax, dword [rdi + 0xac]
add ecx, eax
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x6c], edx
mov dword [rsp + 0x70], ecx
mov dword [rsp + 0x74], r8d
mov dword [rbp + 0x70], 4
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [rbp + 0x78], xmm1
movups xmm0, xmmword [rbp + 0x70]
movaps xmmword [rbp + 0x180], xmm0
unpckhpd xmm1, xmm1
movsd qword [rbp + 0x190], xmm1
mov rax, qword [rsi]
lea r8, [rbp + 0x180]
lea rdx, str.DesktopRect
mov rcx, rsi
call qword [rax + 0x18]
nop
lea rcx, [rbp + 0x70]
call fcn.14000b9c0
nop
mov r8d, dword [rdi + 0xb0]
mov r9d, dword [rdi + 0x90]
add r9d, r8d
mov ecx, dword [rdi + 0xac]
mov edx, dword [rdi + 0x94]
add edx, ecx
mov dword [rsp + 0x78], ecx
mov dword [rsp + 0x7c], r8d
mov dword [rbp - 0x80], edx
mov dword [rbp - 0x7c], r9d
mov dword [rbp + 0x88], 4
movups xmm1, xmmword [rsp + 0x78]
movups xmmword [rbp + 0x90], xmm1
movups xmm0, xmmword [rbp + 0x88]
movaps xmmword [rbp + 0x1a0], xmm0
unpckhpd xmm1, xmm1
movsd qword [rbp + 0x1b0], xmm1
mov rax, qword [rsi]
lea r8, [rbp + 0x1a0]
lea rdx, str.DesktopRectOs
mov rcx, rsi
call qword [rax + 0x18]
nop
lea rcx, [rbp + 0x88]
call fcn.14000b9c0
nop
movsxd rax, dword [0x14023d478]
mov dword [rbp - 8], 2
mov qword [rbp], rax
movups xmm0, xmmword [rbp - 8]
movaps xmmword [rbp + 0x1c0], xmm0
movsd xmm1, qword [rbp + 8]
movsd qword [rbp + 0x1d0], xmm1
mov rsi, qword [rbp + 0x2b0]
mov rax, qword [rsi]
lea r8, [rbp + 0x1c0]
lea rdx, str.DisplayCaptureFormatCounter
mov rcx, rsi
call qword [rax + 0x18]
nop
lea rcx, [rbp - 8]
call fcn.14000b9c0
nop
mov dword [rbp - 0x68], 2
movsxd rax, dword [rdi + 0x40]
mov qword [rbp - 0x60], rax
movups xmm0, xmmword [rbp - 0x68]
movaps xmmword [rbp + 0x1e0], xmm0
movsd xmm1, qword [rbp - 0x58]
movsd qword [rbp + 0x1f0], xmm1
mov rax, qword [rsi]
lea r8, [rbp + 0x1e0]
lea rdx, str.DisplayCaptureSource
mov rcx, rsi
call qword [rax + 0x18]
nop
lea rcx, [rbp - 0x68]
call fcn.14000b9c0
nop
mov rax, qword [rbp + 0x2b8]
xor ebx, ebx
mov ecx, ebx
mov qword [rbp + 0x2b8], rbx
mov qword [r13], rax
jmp 0x140098589
mov rcx, qword [rbp + 0x2b8]
test rsi, rsi
je 0x14009859e
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 8]
mov rcx, qword [rbp + 0x2b8]
test rcx, rcx
je 0x1400985aa
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov r8, qword [rbp - 0x78]
test r8, r8
je 0x1400985e9
add dword [r8 + 8], 0xffffffff
mov eax, dword [r8 + 8]
jne 0x1400985c2
mov dword [r8 + 4], ebx
mov ecx, 0xffffffff
lock xadd dword [r8], ecx
cmp ecx, 1
je 0x1400985e9
test eax, eax
jne 0x1400985e9
xor r8d, r8d
lea edx, [rax + 1]
mov rcx, qword [rbp - 0x78]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov eax, r14d
mov rcx, qword [rbp + 0x2f8]
xor rcx, rsp
call fcn.14014f2f0
mov rbx, qword [rsp + 0x450]
add rsp, 0x400
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret