Function at 0x18000865a
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rax, qword [rdx + 8]
add qword [rcx + 0x2080], rax
mov rcx, qword [rdx]
and rcx, 0xfffffffffffffffe
mov qword [rdx], rcx
je 0x180008541
mov rbx, rdi
sub rbx, rcx
mov rcx, rbx
sar rcx, 0xc
lea r14, [rsi + 0x20a0]
mov r8, rbx
sar r8, 0x15
movzx edx, r8b
lea rdx, [rsi + rdx*8]
add rdx, 0x20a0
mov rdx, qword [rdx]
test rdx, rdx
je 0x180008541
cmp qword [rdx + 8], r8
jne 0x180008473
mov r8d, ecx
shr r8d, 6
and r8d, 7
mov rdx, qword [rdx + r8*8 + 0x10]
bt rdx, rcx
jae 0x180008541
test byte [rbx], 1
jne 0x180008541
mov rcx, 0xfffffffffffff04f
add rcx, qword [rbx + 8]
cmp rcx, 0x3efff04e
ja 0x180008541
mov rcx, rsi
mov rdx, rbx
call fcn.180008337
mov rax, qword [rbx + 8]
add rax, qword [rdi + 8]
mov qword [rbx + 8], rax
mov rcx, rdi
sar rcx, 0xc
sar rdi, 0x15
movzx edx, dil
lea rdx, [r14 + rdx*8]
mov rdx, qword [rdx]
test rdx, rdx
je 0x180008513
cmp qword [rdx + 8], rdi
jne 0x1800084ea
mov eax, ecx
shr eax, 6
and eax, 7
mov r8, 0xfffffffffffffffe
rol r8, cl
and qword [rdx + rax*8 + 0x10], r8
mov rax, qword [rbx + 8]
mov rdi, rbx
cmp rax, 0x3f000001
jl 0x180008541
mov r8d, 0x3f000000
mov rcx, rsi
mov rdx, rbx
call fcn.180007c92
mov rdi, rax
mov rcx, rsi
mov rdx, rbx
call fcn.180007d51
mov rax, qword [rdi + 8]
lea rbx, [rax + rdi]
mov rcx, rbx
sar rcx, 0xc
mov r14, rbx
sar r14, 0x15
movzx edx, r14b
lea r15, [rsi + rdx*8]
add r15, 0x20a0
mov rdx, r15
mov rdx, qword [rdx]
test rdx, rdx
je 0x180008602
cmp qword [rdx + 8], r14
jne 0x180008565
mov r12d, ecx
shr r12d, 6
and r12d, 7
mov rdx, qword [rdx + r12*8 + 0x10]
mov r13d, 1
shl r13, cl
bt rdx, rcx
jae 0x180008602
test byte [rbx], 1
jne 0x180008602
cmp qword [rbx + 8], 0xfb1
jl 0x180008602
cmp rax, 0x3effffff
jg 0x180008602
mov rcx, rsi
mov rdx, rbx
call fcn.180008337
mov rax, qword [rdi + 8]
add rax, qword [rbx + 8]
mov qword [rdi + 8], rax
mov r15, qword [r15]
test r15, r15
je 0x1800085de
cmp qword [r15 + 8], r14
jne 0x1800085c4
not r13
and qword [r15 + r12*8 + 0x10], r13
mov rax, qword [rdi + 8]
cmp rax, 0x3f000001
jl 0x180008602
mov r8d, 0x3f000000
mov rcx, rsi
mov rdx, rdi
call fcn.180007c92
mov rcx, rsi
mov rdx, rax
call fcn.180007d51
mov rcx, rsi
mov rdx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.180007d51
sub rsp, 0x28
mov r8, rdx
mov rax, rcx
and rdx, 0xfffffffffffff000
mov r9, qword [rdx + 8]
mov rcx, qword [rdx + 0x10]
cmp r9, 0xfb0
jg 0x180008699
cmp rcx, rax
je 0x1800086be
mov rax, qword [rdx + 0x40]
mov qword [r8], rax
lock cmpxchg qword [rdx + 0x40], r8
je 0x1800087f5
mov qword [r8], rax
jmp 0x180008681
cmp rcx, rax
je 0x180008711
mov rax, qword [rcx + 0x2098]
mov qword [rdx + 0x18], rax
lock cmpxchg qword [rcx + 0x2098], rdx
je 0x1800087f5
mov qword [rdx + 0x18], rax
jmp 0x18000869e
sub qword [rax + 0x2088], r9
mov rcx, qword [rdx + 0x28]
mov qword [r8], rcx
mov qword [rdx + 0x28], r8
mov rcx, qword [rdx + 0x30]
cmp rcx, r9
jge 0x1800087b1
lea r8, [r9 + 0xf]
test r9, r9
cmovns r8, r9
sar r8, 4
mov r10, qword [rax + r8*8]
mov qword [rdx + 0x18], r10
mov r10, qword [rax + r8*8]
test r10, r10
je 0x180008701
mov qword [r10 + 0x20], rdx
mov qword [rax + r8*8], rdx
add rcx, r9
mov qword [rdx + 0x30], rcx
jmp 0x1800087f5
sub qword [rax + 0x2088], r9
cmp r9, 0x3f000001
jl 0x180008818
mov rcx, r8
sar rcx, 0xc
sar r8, 0x15
movzx r10d, r8b
lea r10, [rax + r10*8]
add r10, 0x20a0
mov r10, qword [r10]
test r10, r10
je 0x180008767
cmp qword [r10 + 8], r8
jne 0x18000873f
mov r8d, ecx
shr r8d, 6
mov r11, 0xfffffffffffffffe
rol r11, cl
and r8d, 7
and qword [r10 + r8*8 + 0x10], r11
mov rcx, qword [rax + 0x2070]
mov r8, qword [rax + 0x2078]
cmp r8, rcx
cmovle r8, rcx
mov qword [rax + 0x2078], r8
sub rcx, r9
mov qword [rax + 0x2070], rcx
mov rcx, rdx
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
jne 0x1800087f5
call fcn.18000861c
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
add rcx, r9
mov qword [rdx + 0x30], rcx
cmp rcx, 0xfb0
jne 0x1800087f5
lea r10, [r9 + 0xf]
test r9, r9
cmovns r10, r9
sar r10, 4
lea rcx, [rdx + 0x18]
mov r8, qword [rdx + 0x18]
cmp qword [rax + r10*8], rdx
je 0x1800087fa
mov r9, qword [rdx + 0x20]
mov qword [r9 + 0x18], r8
mov r8, qword [rdx + 0x18]
test r8, r8
je 0x18000880a
mov r9, qword [rdx + 0x20]
jmp 0x180008806
add rsp, 0x28
ret
mov qword [rax + r10*8], r8
test r8, r8
je 0x18000880a
xor r9d, r9d
mov qword [r8 + 0x20], r9
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rdx + 8], 0x1000
mov rcx, rax
add rsp, 0x28
jmp 0x180008419