Function at 0x140050170
Capabilities:
Execute anti-debugging instructions
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rax - 0x6c8]
sub rsp, 0x7b0
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
movaps xmmword [rax - 0x48], xmm8
movaps xmmword [rax - 0x58], xmm9
mov rax, qword [0x1400dc040]
xor rax, rsp
mov qword [rbp + 0x660], rax
mov rdi, rcx
cmp qword [0x1400e1a50], 0
je 0x140050a23
cmp qword [0x1400e1970], 0
je 0x140050a23
cmp dword [rdx], 0
jne 0x140050a49
lea rsi, [rdx + 8]
cmp qword [rsi], 0
jne 0x140050a6f
rdtsc
shl rdx, 0x20
or rax, rdx
mov qword [rcx + 0x3e8], rax
mov qword [rbp - 0x80], 0x7002000c
xor ebx, ebx
mov rax, qword [rcx + 0x388]
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x68], rbx
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rbx
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x30], rbx
mov dword [rbp - 0x28], ebx
xorps xmm0, xmm0
movups xmmword [rbp - 0x24], xmm0
movups xmmword [rbp - 0x14], xmm0
movups xmmword [rbp - 4], xmm0
mov qword [rbp + 0xc], rbx
mov qword [rbp + 0x14], rbx
mov dword [rbp + 0x1c], ebx
xor edx, edx
mov r8d, 0x368
lea rcx, [rbp + 0x20]
call fcn.1400835b0
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x388]
call fcn.1400835b0
mov rax, qword [0x1400e19c8]
lea rdx, [rbp - 0x80]
mov rcx, qword [rdi + 0x350]
call rax
test eax, eax
je 0x1400502b4
cmp eax, 0x19
ja case.0x1400502a9.1
cdqe
lea rdx, [0x140000000]
movzx eax, byte [rdx + rax + 0x50ac4]
mov ecx, dword [rdx + rax*4 + 0x50abc]
add rcx, rdx
jmp rcx
mov ebx, 0x80004005
mov eax, ebx
jmp 0x14005030d
mov qword [rsp + 0x60], rbx
lea rdx, [rsp + 0x60]
mov ecx, dword [rbp - 0x5c]
call qword [sym.imp.MFPlat.DLL_MFCreateMemoryBuffer]
mov r14d, eax
test eax, eax
jns 0x140050348
mov dword [rsp + 0x20], 0x109
lea r9, str.dte::mfcodec::EncoderNvidiaBase::onOutputRequested
mov r8d, eax
lea rdx, str.::MFCreateMemoryBuffer__lockParams.bitstreamSizeInBytes__outBuffer.ReleaseAndGetAddressOf____
lea rcx, str._s____0x_08X___s__d_
call fcn.140011520
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14005030a
mov qword [rsp + 0x60], rbx
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov eax, r14d
mov rcx, qword [rbp + 0x660]
xor rcx, rsp
call fcn.140053bc0
lea r11, [rsp + 0x7b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov qword [rsp + 0x70], rbx
mov dword [rsp + 0x68], ebx
mov dword [rsp + 0x6c], ebx
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
lea r9, [rsp + 0x6c]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x70]
call qword [rax + 0x18]
mov r14d, eax
test eax, eax
jns 0x1400503b7
mov dword [rsp + 0x20], 0x10c
lea r9, str.dte::mfcodec::EncoderNvidiaBase::onOutputRequested
mov r8d, eax
lea rdx, str.outBuffer__Lock__outPtr__outPtrMaxLen__outPtrCurLen__
lea rcx, str._s____0x_08X___s__d_
call fcn.140011520
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400503b2
mov qword [rsp + 0x60], rbx
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
jmp 0x14005030a
mov eax, dword [rbp - 0x5c]
cmp dword [rsp + 0x68], eax
jne 0x140050a95
cmp dword [rsp + 0x6c], 0
jne 0x1400509fd
mov r8d, eax
mov rdx, qword [rbp - 0x48]
mov rcx, qword [rsp + 0x70]
call fcn.140082f10
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov r14d, eax
test eax, eax
jns 0x140050433
mov dword [rsp + 0x20], 0x110
lea r9, str.dte::mfcodec::EncoderNvidiaBase::onOutputRequested
mov r8d, eax
lea rdx, str.outBuffer__Unlock__
lea rcx, str._s____0x_08X___s__d_
call fcn.140011520
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14005042e
mov qword [rsp + 0x60], rbx
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
jmp 0x14005030a
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov edx, dword [rbp - 0x5c]
call qword [rax + 0x30]
mov r14d, eax
test eax, eax
jns 0x140050489
mov dword [rsp + 0x20], 0x111
lea r9, str.dte::mfcodec::EncoderNvidiaBase::onOutputRequested
mov r8d, eax
lea rdx, str.outBuffer__SetCurrentLength__lockParams.bitstreamSizeInBytes__
lea rcx, str._s____0x_08X___s__d_
call fcn.140011520
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140050484
mov qword [rsp + 0x60], rbx
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
jmp 0x14005030a
mov rcx, rsi
call qword [sym.imp.MFPlat.DLL_MFCreateSample]
mov r14d, eax
test eax, eax
jns 0x1400504da
mov dword [rsp + 0x20], 0x114
lea r9, str.dte::mfcodec::EncoderNvidiaBase::onOutputRequested
mov r8d, eax
lea rdx, str.::MFCreateSample__dataBuffer.pSample__
lea rcx, str._s____0x_08X___s__d_
call fcn.140011520
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400504d5
mov qword [rsp + 0x60], rbx
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
jmp 0x14005030a
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x60]
call qword [rax + 0x150]
mov r14d, eax
test eax, eax
jns 0x140050533
mov dword [rsp + 0x20], 0x115
lea r9, str.dte::mfcodec::EncoderNvidiaBase::onOutputRequested
mov r8d, eax
lea rdx, str.dataBuffer.pSample__AddBuffer__outBuffer.Get____
lea rcx, str._s____0x_08X___s__d_
call fcn.140011520
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14005052e
mov qword [rsp + 0x60], rbx
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
jmp 0x14005030a
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, qword [rbp - 0x58]
call qword [rax + 0x120]
mov r14d, eax
test eax, eax
jns 0x14005058b
mov dword [rsp + 0x20], 0x116
lea r9, str.dte::mfcodec::EncoderNvidiaBase::onOutputRequested
mov r8d, eax
lea rdx, str.dataBuffer.pSample__SetSampleTime__LONGLONG__lockParams.outputTimeStamp____
lea rcx, str._s____0x_08X___s__d_
call fcn.140011520
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140050586
mov qword [rsp + 0x60], rbx
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
jmp 0x14005030a
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, qword [rbp - 0x50]
call qword [rax + 0x130]
mov r14d, eax
test eax, eax
jns 0x1400505e3
mov dword [rsp + 0x20], 0x117
lea r9, str.dte::mfcodec::EncoderNvidiaBase::onOutputRequested
mov r8d, eax
lea rdx, str.dataBuffer.pSample__SetSampleDuration__LONGLONG__lockParams.outputDuration____
lea rcx, str._s____0x_08X___s__d_
call fcn.140011520
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400505de
mov qword [rsp + 0x60], rbx
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
jmp 0x14005030a
mov r8d, dword [rbp - 0x68]
cmp r8d, 0xffffffff
je 0x140050648
mov rcx, qword [rsi]
mov rax, qword [rcx]
lea rdx, [0x1400b1858]
call qword [rax + 0xa8]
mov r14d, eax
test eax, eax
jns 0x140050648
mov dword [rsp + 0x20], 0x119
lea r9, str.dte::mfcodec::EncoderNvidiaBase::onOutputRequested
mov r8d, eax
lea rdx, str.dataBuffer.pSample__SetUINT32__DTE_GUID_FRAMENUM__lockParams.frameIdx__
lea rcx, str._s____0x_08X___s__d_
call fcn.140011520
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140050643
mov qword [rsp + 0x60], rbx
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
jmp 0x14005030a
mov r8d, dword [rdi + 0x380]
cmp r8d, 0xffffffff
je 0x1400506b0
mov rcx, qword [rsi]
mov rax, qword [rcx]
lea rdx, [0x1400b1810]
call qword [rax + 0xa8]
mov r14d, eax
test eax, eax
jns 0x1400506b0
mov dword [rsp + 0x20], 0x11c
lea r9, str.dte::mfcodec::EncoderNvidiaBase::onOutputRequested
mov r8d, eax
lea rdx, str.dataBuffer.pSample__SetUINT32__DTE_GUID_STREAMNUM__m_lastStreamIndex__
lea rcx, str._s____0x_08X___s__d_
call fcn.140011520
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400506ab
mov qword [rsp + 0x60], rbx
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
jmp 0x14005030a
cmp dword [rbp - 0x40], 3
jne 0x140050718
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov r8d, 1
lea rdx, [0x140087830]
call qword [rax + 0xa8]
mov esi, eax
test eax, eax
jns 0x140050718
mov dword [rsp + 0x20], 0x11f
lea r9, str.dte::mfcodec::EncoderNvidiaBase::onOutputRequested
mov r8d, eax
lea rdx, str.dataBuffer.pSample__SetUINT32__MFSampleExtension_CleanPoint__TRUE__
lea rcx, str._s____0x_08X___s__d_
call fcn.140011520
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140050711
mov qword [rsp + 0x60], rbx
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov eax, esi
jmp 0x14005030d
mov rax, qword [0x1400e19d0]
mov rdx, qword [rdi + 0x388]
mov rcx, qword [rdi + 0x350]
call rax
test eax, eax
je 0x14005077b
cmp eax, 0x19
ja case.0x140050753.1
cdqe
lea rdx, [0x140000000]
movzx eax, byte [rdx + rax + 0x50ae8]
mov ecx, dword [rdx + rax*4 + 0x50ae0]
add rcx, rdx
jmp rcx
mov edi, ebx
jmp 0x14005075e
mov edi, 0x80004005
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140050774
mov qword [rsp + 0x60], rbx
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov eax, edi
jmp 0x14005030d
mov rax, qword [0x1400e19b8]
mov rdx, qword [rdi + 0x390]
mov rcx, qword [rdi + 0x350]
call rax
test eax, eax
je 0x1400507de
cmp eax, 0x19
ja case.0x1400507b6.1
cdqe
lea rdx, [0x140000000]
movzx eax, byte [rdx + rax + 0x50b0c]
mov ecx, dword [rdx + rax*4 + 0x50b04]
add rcx, rdx
jmp rcx
mov edi, ebx
jmp 0x1400507c1
mov edi, 0x80004005
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400507d7
mov qword [rsp + 0x60], rbx
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
mov eax, edi
jmp 0x14005030d
mov qword [rdi + 0x390], rbx
mov rcx, rdi
call fcn.140046630
mov esi, eax
test eax, eax
jns 0x140050836
mov dword [rsp + 0x20], 0x129
lea r9, str.dte::mfcodec::EncoderNvidiaBase::onOutputRequested
mov r8d, eax
lea rdx, str.signalNeedInput__
lea rcx, str._s____0x_08X___s__d_
call fcn.140011520
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14005082f
mov qword [rsp + 0x60], rbx
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov eax, esi
jmp 0x14005030d
rdtsc
shl rdx, 0x20
or rax, rdx
mov qword [rdi + 0x3f0], rax
cmp byte [rdi + 0x1f5b], 0
je 0x1400509e0
mov rsi, qword [rdi + 0x3e8]
sub rsi, qword [rdi + 0x3e0]
call fcn.140030280
movaps xmm6, xmm0
movsd xmm7, qword [0x1400ca650]
mulsd xmm6, xmm7
xorps xmm1, xmm1
test rsi, rsi
js 0x140050884
cvtsi2sd xmm1, rsi
jmp 0x140050899
mov rax, rsi
shr rax, 1
and esi, 1
or rax, rsi
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
mulsd xmm6, xmm1
mov rsi, qword [rdi + 0x3f0]
sub rsi, qword [rdi + 0x3e8]
call fcn.140030280
movaps xmm9, xmm0
mulsd xmm9, xmm7
xorps xmm1, xmm1
test rsi, rsi
js 0x1400508c8
cvtsi2sd xmm1, rsi
jmp 0x1400508dd
mov rax, rsi
shr rax, 1
and esi, 1
or rax, rsi
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
mulsd xmm9, xmm1
mov rsi, qword [rdi + 0x3e0]
sub rsi, qword [rdi + 0x3d8]
call fcn.140030280
movaps xmm8, xmm0
mulsd xmm8, xmm7
xorps xmm1, xmm1
test rsi, rsi
js 0x14005090d
cvtsi2sd xmm1, rsi
jmp 0x140050922
mov rax, rsi
shr rax, 1
and esi, 1
or rax, rsi
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
mulsd xmm8, xmm1
mov rsi, qword [rdi + 0x3f0]
sub rsi, qword [rdi + 0x3d8]
call fcn.140030280
mulsd xmm0, xmm7
xorps xmm1, xmm1
test rsi, rsi
js 0x14005094d
cvtsi2sd xmm1, rsi
jmp 0x140050962
mov rax, rsi
shr rax, 1
and esi, 1
or rax, rsi
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
mulsd xmm0, xmm1
mov r8d, dword [rdi + 0x380]
mov r9d, dword [rdi + 0x420]
mov r10d, dword [rdi + 0x41c]
movzx ecx, byte [rdi + 0x1f58]
call fcn.1400268a0
movsd qword [rsp + 0x58], xmm6
movsd qword [rsp + 0x50], xmm9
movsd qword [rsp + 0x48], xmm8
movsd qword [rsp + 0x40], xmm0
mov ecx, dword [rbp - 0x68]
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], r9d
mov dword [rsp + 0x20], r10d
mov r9, rax
lea r8, str._NvEnc__s__Frame_done___ux_u__stream:_d__frame:_d__:_all_8.1fus__initfin_8.1f_8.1f_on_CPU__wait_8.1f_on_GPU__n
mov edx, reloc.OLEAUT32.dll_SetErrorInfo
lea rcx, [rbp + 0x590]
call fcn.140010b30
lea rcx, [rbp + 0x590]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400509f6
mov qword [rsp + 0x60], rbx
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
xor eax, eax
jmp 0x14005030d
mov r9d, 0x10e
lea r8, str.dte::mfcodec::EncoderNvidiaBase::onOutputRequested
lea rdx, str.outPtrCurLen__0
lea rcx, str.ASSERTION_FAILED:__s___s__d_
call fcn.140011520
call fcn.14005e1c0
int3
mov r9d, 0xf8
lea r8, str.dte::mfcodec::EncoderNvidiaBase::onOutputRequested
lea rdx, str.NvEnc.isLoaded___
lea rcx, str.ASSERTION_FAILED:__s___s__d_
call fcn.140011520
call fcn.14005e1c0
int3
mov r9d, 0xf9
lea r8, str.dte::mfcodec::EncoderNvidiaBase::onOutputRequested
lea rdx, str.dataBuffer.dwStreamID__0
lea rcx, str.ASSERTION_FAILED:__s___s__d_
call fcn.140011520
call fcn.14005e1c0
int3
mov r9d, 0xfa
lea r8, str.dte::mfcodec::EncoderNvidiaBase::onOutputRequested
lea rdx, str.dataBuffer.pSample__nullptr
lea rcx, str.ASSERTION_FAILED:__s___s__d_
call fcn.140011520
call fcn.14005e1c0
int3
mov r9d, 0x10d
lea r8, str.dte::mfcodec::EncoderNvidiaBase::onOutputRequested
lea rdx, str.outPtrMaxLen__lockParams.bitstreamSizeInBytes
lea rcx, str.ASSERTION_FAILED:__s___s__d_
call fcn.140011520
call fcn.14005e1c0
int3