Function at 0x1800bc820
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov r10, rdx
mov rdi, rcx
test r8d, r8d
je 0x1800a9a7e
mov rcx, qword [rcx + 0xbe8]
cmp rcx, rdx
jne 0x1800a9a51
cmp dword [rdi + 0xbe4], 0x20
je 0x1800a9a71
mov rdx, qword [rdi + 0xc00]
lea r9, [rsp + 0x40]
mov r8d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800a9b00
mov dword [rdi + 0xbe4], 0x20
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rdx, qword [rdx + 8]
lea r9, [rsp + 0x40]
mov r8d, 0x20
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800a9b00
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rcx + 0xbe8]
cmp r10, rbx
jb 0x1800a9ad3
mov rdx, qword [rcx + 0xc00]
lea rax, [rdx + rbx]
cmp r10, rax
jae 0x1800a9ad3
cmp dword [rcx + 0xbe4], 4
je 0x1800a9ac5
lea r9, [rsp + 0x40]
mov r8d, 4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800a9b00
mov dword [rdi + 0xbe4], 4
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rbx]
cmp r10, rbx
jb 0x1800a9ad3
mov rdx, qword [rbx + 8]
lea rax, [rdx + rbx]
cmp r10, rax
jae 0x1800a9ad3
lea r9, [rsp + 0x40]
mov r8d, 4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800a9ac5
mov rcx, rdi
call fcn.1800a9cf0
int3
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbx, qword [rdx + 0x58]
mov r15, rdx
mov edi, r8d
mov rdx, rbx
xor r8d, r8d
mov rbp, r9
mov r12, rcx
call 0x1800a99f0
mov r8d, dword [r15 + 0x54]
lea rsi, [rbx - 6]
mov ecx, edi
mov qword [rsp + 0x20], rax
and edi, 0x1f
shr rcx, 5
shl edi, 2
add rsi, r8
mov r14d, edi
mov r13, rax
add r14, 0xfffffffffffffffa
xor edi, edi
add r14, qword [r12 + rcx*8 + 0x6a0]
cmp r8d, 5
jbe 0x1800bc8b9
lea eax, [r8 - 5]
cmp byte [rax + rbx], 0xe9
jne 0x1800bc8b9
movsxd rax, dword [r8 + rbx - 4]
add rax, 0xfffffffffffffffa
add rax, r8
add rax, rbx
cmp rax, r14
jne 0x1800bc8b9
mov eax, ebp
sub eax, ebx
sub eax, r8d
mov dword [r8 + rbx - 4], eax
cmp rbx, rsi
jae 0x1800bc987
movzx eax, byte [rbx]
mov rcx, rdi
and al, 0xf0
cmp al, 0x40
sete cl
cmp dword [rcx + rbx + 2], 0xfffff130
jne 0x1800bc8df
cmp byte [rcx + rbx], 0xc7
je 0x1800bc8f6
mov rcx, rbx
call fcn.1800bb9c0
mov eax, eax
add rbx, rax
cmp rbx, rsi
jb 0x1800bc8c2
jmp 0x1800bc987
cmp rbx, rsi
jae 0x1800bc987
mov r15d, 0xf0ff
lea r13, [0x18007e0c0]
mov r12d, 0x800f
nop dword [rax]
nop word [rax + rax]
movzx ecx, word [rbx]
movzx eax, cx
and ax, r15w
cmp ax, r12w
jne 0x1800bc94d
movsxd rax, dword [rbx + 2]
add rax, rbx
cmp rax, r14
jne 0x1800bc94d
cmp rbx, rdi
je 0x1800bc94d
mov eax, ebp
sub eax, ebx
sub eax, 6
mov dword [rbx + 2], eax
jmp 0x1800bc966
cmp cl, 0xe8
jne 0x1800bc966
movsxd rcx, dword [rbx + 1]
add rcx, 5
add rcx, rbx
cmp rcx, r13
jne 0x1800bc966
lea rdi, [rbx + 7]
mov rcx, rbx
call fcn.1800bb9c0
mov eax, eax
add rbx, rax
cmp rbx, rsi
jb 0x1800bc920
mov r15, qword [rsp + 0x78]
mov r12, qword [rsp + 0x70]
mov r13, qword [rsp + 0x20]
mov rcx, qword [r15 + 0x58]
mov edx, dword [r15 + 0x54]
add rdx, rcx
call fcn.1800a9b90
mov r8d, 1
mov rdx, r13
mov rcx, r12
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp 0x1800a99f0