Function at 0x140004090
Capabilities:
Allocate or change rwx memory
Check for software breakpoints

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 - 0x37]
sub rsp, 0xa0
mov rax, qword [0x1405d2948]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rsi, rcx
lea r14, [rcx + 8]
mov r8, r14
mov edx, dword [rcx]
mov ecx, dword [rcx + 4]
call fcn.14008c180
test eax, eax
jne 0x140004321
mov dword [rbp + 0x27], eax
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
mov r13, qword [rsi + 0x18]
mov r15, qword [rsi + 0x20]
mov qword [rbp - 0x39], r15
cmp r13, r15
je 0x1400042d8
nop dword [rax]
nop word [rax + rax]
mov rdi, qword [r13]
mov qword [rbp - 0x11], rdi
mov ebx, dword [rdi + 0xc]
add rbx, qword [rsi + 0x10]
mov qword [rbp - 0x19], rbx
mov edx, dword [rdi + 0x10]
lea r9, [rbp + 0x27]
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400042d4
mov r8d, dword [rdi + 0x10]
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
mov r9, rbx
mov rdx, rbx
mov rcx, qword [r14]
call fcn.14008c930
mov r12, rax
xor r14d, r14d
test rax, rax
je 0x140004295
xor r15d, r15d
nop dword [rax]
nop word [rax + rax]
mov rbx, qword [rbp + 0x1f]
mov ecx, dword [rbx + r15]
sub ecx, 0xde
cmp ecx, 1
ja 0x140004276
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 7], xmm1
mov qword [rbp + 0x17], 0
mov rbx, qword [rbx + r15 + 8]
mov qword [rbp - 9], rbx
mov dword [rbp + 3], r14d
xor ecx, ecx
mov dword [rbp - 1], ecx
mov dil, 1
mov rdx, qword [rbp + 0xf]
movzx eax, byte [rbx]
cmp al, 0xcc
je 0x1400041d7
cmp al, 0xf1
je 0x1400041d7
xor dil, dil
jmp 0x14000420b
mov qword [rbp - 0x31], rbx
cmp rdx, qword [rbp + 0x17]
je 0x1400041f2
movups xmm0, xmmword [rbp - 0x31]
movups xmmword [rdx], xmm0
add rdx, 0x10
mov qword [rbp + 0xf], rdx
jmp 0x140004206
lea r8, [rbp - 0x31]
lea rcx, [rbp + 7]
call fcn.14000ca50
mov rdx, qword [rbp + 0xf]
mov ecx, dword [rbp - 1]
inc ecx
mov dword [rbp - 1], ecx
inc rbx
test dil, dil
jne 0x1400041c7
cmp ecx, 1
jbe 0x14000423c
lea rcx, [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
lea r8, [rbp - 9]
cmp rdx, qword [rsi + 0x58]
je 0x140004236
call fcn.14000ea30
add qword [rsi + 0x50], 0x28
jmp 0x14000423c
call fcn.14000c830
nop
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x140004276
mov rdx, qword [rbp + 0x17]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004271
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400042cd
call fcn.1401cb058
inc r14
add r15, 0xf0
cmp r14, r12
jb 0x140004180
mov rbx, qword [rbp - 0x19]
mov rdi, qword [rbp - 0x11]
mov r15, qword [rbp - 0x39]
mov rdx, r12
mov rcx, qword [rbp + 0x1f]
call fcn.14008d0f0
mov edx, dword [rdi + 0x10]
lea r9, [rbp + 0x27]
mov r8d, 0x20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140004307
add r13, 0x20
cmp r13, r15
je 0x1400042d8
lea r14, [rsi + 8]
jmp 0x140004110
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor al, al
jmp 0x1400042da
mov al, 1
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1401cac00
lea r11, [rsp + 0xa0]
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
lea rcx, [rbp - 0x31]
call fcn.1400012a0
lea rdx, [0x140442040]
lea rcx, [rbp - 0x31]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rbp - 0x31]
call fcn.1400012a0
lea rdx, [0x140442040]
lea rcx, [rbp - 0x31]
call sub.VCRUNTIME140.dll__CxxThrowException
int3