Function at 0x180046500
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov r14, rdx
mov rsi, rcx
xor r15d, r15d
cmp qword [0x1800a2900], r15
jne 0x1800466c8
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x10], setsockopt
lea r8d, [r15 + 0x10]
lea rdx, str.IAudioClientStop
lea rcx, [rbp - 0x28]
call fcn.180004270
lea rax, [rbp - 0x28]
mov qword [rbp + 0x48], rax
mov dword [rbp + 0x40], r15d
lea r9, [rbp + 0x40]
lea edx, [r15 + 8]
lea r8d, [r15 + 0x40]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800465bb
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x180046bc0
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800465ac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180046bed
call fcn.18004a624
mov eax, 0x80004005
jmp 0x180046bd3
mov rax, qword [rsi]
mov rbx, qword [rax + 0x58]
mov ecx, 0x40
call fcn.18004a198
mov rdi, rax
mov qword [rbp - 0x30], rax
mov qword [rax], r15
lea rcx, [rax + 8]
lea rdx, [rbp - 0x28]
call fcn.180003fd0
mov qword [rdi + 0x28], rbx
lea rax, [0x1800462a0]
mov qword [rdi + 0x30], rax
mov byte [rdi + 0x38], 0
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x180046631
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004662c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180046bed
call fcn.18004a624
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x10], setsockopt
mov byte [rbp - 0x28], 0
mov rdx, qword [0x1800a2900]
mov qword [0x1800a2900], rdi
test rdx, rdx
je 0x180046659
call fcn.180027b50
cmp byte [rdi + 0x38], 0
jne 0x1800466be
mov r8, rdi
mov rdx, qword [rdi + 0x30]
mov rcx, qword [rdi + 0x28]
call fcn.1800489b0
test eax, eax
jne 0x180046692
mov rcx, qword [rdi + 0x28]
call fcn.180048eb0
test eax, eax
jne 0x180046686
mov byte [rdi + 0x38], 1
jmp 0x180046692
mov rcx, qword [rdi + 0x28]
call fcn.180048ca0
mov qword [rdi], r15
cmp byte [rdi + 0x38], 0
jne 0x1800466be
mov rdx, qword [0x1800a2900]
mov qword [0x1800a2900], r15
test rdx, rdx
je 0x180046bc0
call fcn.180027b50
mov eax, 0x80004005
jmp 0x180046bd3
mov rax, qword [rdi]
mov qword [0x1800a2818], rax
cmp qword [0x1800a28f8], 0
jne 0x180046878
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x10], setsockopt
mov r8d, 0x1d
lea rdx, str.IAudioClientGetCurrentPadding
lea rcx, [rbp - 0x28]
call fcn.180004270
lea rax, [rbp - 0x28]
mov qword [rbp + 0x48], rax
mov dword [rbp + 0x40], r15d
lea r9, [rbp + 0x40]
mov edx, 8
lea r8d, [rdx + 0x38]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18004676b
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x180046bc0
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004675c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180046bf3
call fcn.18004a624
mov eax, 0x80004005
jmp 0x180046bd3
mov rax, qword [rsi]
mov rbx, qword [rax + 0x30]
mov ecx, 0x40
call fcn.18004a198
mov rdi, rax
mov qword [rbp - 0x30], rax
mov qword [rax], r15
lea rcx, [rax + 8]
lea rdx, [rbp - 0x28]
call fcn.180003fd0
mov qword [rdi + 0x28], rbx
lea rax, [0x1800461c0]
mov qword [rdi + 0x30], rax
mov byte [rdi + 0x38], 0
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x1800467e1
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800467dc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180046bf3
call fcn.18004a624
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x10], setsockopt
mov byte [rbp - 0x28], 0
mov rdx, qword [0x1800a28f8]
mov qword [0x1800a28f8], rdi
test rdx, rdx
je 0x180046809
call fcn.180027b50
cmp byte [rdi + 0x38], 0
jne 0x18004686e
mov r8, rdi
mov rdx, qword [rdi + 0x30]
mov rcx, qword [rdi + 0x28]
call fcn.1800489b0
test eax, eax
jne 0x180046842
mov rcx, qword [rdi + 0x28]
call fcn.180048eb0
test eax, eax
jne 0x180046836
mov byte [rdi + 0x38], 1
jmp 0x180046842
mov rcx, qword [rdi + 0x28]
call fcn.180048ca0
mov qword [rdi], r15
cmp byte [rdi + 0x38], 0
jne 0x18004686e
mov rdx, qword [0x1800a28f8]
mov qword [0x1800a28f8], r15
test rdx, rdx
je 0x180046bc0
call fcn.180027b50
mov eax, 0x80004005
jmp 0x180046bd3
mov rax, qword [rdi]
mov qword [0x1800a2838], rax
cmp qword [0x1800a2908], 0
jne 0x180046a28
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x10], setsockopt
mov r8d, 0x1b
lea rdx, str.IAudioRenderClientGetBuffer
lea rcx, [rbp - 0x28]
call fcn.180004270
lea rax, [rbp - 0x28]
mov qword [rbp + 0x48], rax
mov dword [rbp + 0x40], r15d
lea r9, [rbp + 0x40]
mov edx, 8
lea r8d, [rdx + 0x38]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18004691b
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x180046bc0
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004690c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180046bf9
call fcn.18004a624
mov eax, 0x80004005
jmp 0x180046bd3
mov rax, qword [r14]
mov rbx, qword [rax + 0x18]
mov ecx, 0x40
call fcn.18004a198
mov rdi, rax
mov qword [rbp - 0x30], rax
mov qword [rax], r15
lea rcx, [rax + 8]
lea rdx, [rbp - 0x28]
call fcn.180003fd0
mov qword [rdi + 0x28], rbx
lea rax, [0x180046300]
mov qword [rdi + 0x30], rax
mov byte [rdi + 0x38], 0
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x180046991
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004698c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180046bf9
call fcn.18004a624
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x10], setsockopt
mov byte [rbp - 0x28], 0
mov rdx, qword [0x1800a2908]
mov qword [0x1800a2908], rdi
test rdx, rdx
je 0x1800469b9
call fcn.180027b50
cmp byte [rdi + 0x38], 0
jne 0x180046a1e
mov r8, rdi
mov rdx, qword [rdi + 0x30]
mov rcx, qword [rdi + 0x28]
call fcn.1800489b0
test eax, eax
jne 0x1800469f2
mov rcx, qword [rdi + 0x28]
call fcn.180048eb0
test eax, eax
jne 0x1800469e6
mov byte [rdi + 0x38], 1
jmp 0x1800469f2
mov rcx, qword [rdi + 0x28]
call fcn.180048ca0
mov qword [rdi], r15
cmp byte [rdi + 0x38], 0
jne 0x180046a1e
mov rdx, qword [0x1800a2908]
mov qword [0x1800a2908], r15
test rdx, rdx
je 0x180046bc0
call fcn.180027b50
mov eax, 0x80004005
jmp 0x180046bd3
mov rax, qword [rdi]
mov qword [0x1800a2830], rax
cmp qword [0x1800a2910], 0
jne 0x180046bd1
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x10], setsockopt
mov r8d, 0x1f
lea rdx, str.IAudioRenderClientReleaseBuffer
lea rcx, [rbp - 0x28]
call fcn.180004270
lea rax, [rbp - 0x28]
mov qword [rbp + 0x48], rax
mov dword [rbp + 0x40], r15d
lea r9, [rbp + 0x40]
mov edx, 8
lea r8d, [rdx + 0x38]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180046acb
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x180046bc0
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180046abc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180046be7
call fcn.18004a624
mov eax, 0x80004005
jmp 0x180046bd3
mov rax, qword [r14]
mov rbx, qword [rax + 0x20]
mov ecx, 0x40
call fcn.18004a198
mov rdi, rax
mov qword [rbp - 0x30], rax
mov qword [rax], r15
lea rcx, [rax + 8]
lea rdx, [rbp - 0x28]
call fcn.180003fd0
mov qword [rdi + 0x28], rbx
lea rax, [0x1800463d0]
mov qword [rdi + 0x30], rax
mov byte [rdi + 0x38], 0
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x180046b41
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180046b3c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180046be7
call fcn.18004a624
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x10], setsockopt
mov byte [rbp - 0x28], 0
mov rdx, qword [0x1800a2910]
mov qword [0x1800a2910], rdi
test rdx, rdx
je 0x180046b69
call fcn.180027b50
cmp byte [rdi + 0x38], 0
jne 0x180046bc7
mov r8, rdi
mov rdx, qword [rdi + 0x30]
mov rcx, qword [rdi + 0x28]
call fcn.1800489b0
test eax, eax
jne 0x180046ba2
mov rcx, qword [rdi + 0x28]
call fcn.180048eb0
test eax, eax
jne 0x180046b96
mov byte [rdi + 0x38], 1
jmp 0x180046ba2
mov rcx, qword [rdi + 0x28]
call fcn.180048ca0
mov qword [rdi], r15
cmp byte [rdi + 0x38], 0
jne 0x180046bc7
mov rdx, qword [0x1800a2910]
mov qword [0x1800a2910], r15
test rdx, rdx
je 0x180046bc0
call fcn.180027b50
mov eax, 0x80004005
jmp 0x180046bd3
mov rax, qword [rdi]
mov qword [0x1800a2808], rax
xor eax, eax
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.180055d94
int3
call fcn.180055d94
int3
call fcn.180055d94
int3
call fcn.180055d94
int3