Function at 0x1802b4a10
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x80
lea rbp, [rcx - 0x7ff80000]
mov rbx, rcx
cmp rcx, 0x7ff80000
ja 0x1802b4a35
mov ebp, 0x10000
mov qword [rsp + 0x90], rsi
lea rsi, [rcx + 0x7ff80000]
cmp rbx, 0xffffffff80000000
jb 0x1802b4a54
mov rsi, 0xfffffffffff80000
mov rax, qword [0x180413d00]
mov rcx, qword [0x180413cf8]
mov qword [rsp + 0x98], rdi
mov qword [rsp + 0xa0], r14
test rax, rax
jne 0x1802b4a86
test rcx, rcx
je 0x1802b4a9d
mov rax, rcx
mov qword [0x180413d00], rcx
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x1802b4a9d
cmp rdx, rbp
jb 0x1802b4a9d
cmp rdx, rsi
jbe 0x1802b4c99
mov qword [0x180413d00], rcx
mov rax, rcx
test rcx, rcx
je 0x1802b4ad8
test rcx, rcx
je 0x1802b4ac8
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x1802b4ac8
cmp rcx, rbp
jb 0x1802b4ac8
cmp rcx, rsi
jbe 0x1802b4c99
mov rax, qword [rax + 8]
mov qword [0x180413d00], rax
test rax, rax
jne 0x1802b4ab1
movzx eax, bx
sub rbx, rax
mov rdi, rbx
cmp rbx, rbp
jbe 0x1802b4b6c
mov r14d, 0x6fff0000
lea rax, [rdi - 0x70000000]
mov r8d, gethostbyname
cmp rax, 0x10000000
lea rdx, [rsp + 0x50]
cmovbe rdi, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1802b4b6c
cmp dword [rsp + 0x70], 0x10000
jne 0x1802b4b2f
cmp qword [rsp + 0x68], 0x10000
jae 0x1802b4b42
mov rdi, qword [rsp + 0x58]
add rdi, 0xffffffffffff0000
cmp rdi, rbp
ja 0x1802b4af0
jmp 0x1802b4b6c
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [0x180413d00], rax
test rax, rax
jne 0x1802b4c4e
cmp rbx, rsi
jae 0x1802b4c23
mov edi, 0x80010000
nop word [rax + rax]
lea rax, [rbx - 0x70000000]
mov r8d, gethostbyname
cmp rax, 0x10000000
lea rdx, [rsp + 0x20]
cmovbe rbx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1802b4c23
cmp dword [rsp + 0x40], 0x10000
jne 0x1802b4c0d
mov rcx, qword [rsp + 0x38]
cmp rcx, 0x10000
jb 0x1802b4c12
movzx edx, bx
test rdx, rdx
je 0x1802b4be7
mov rbx, qword [rsp + 0x20]
mov eax, 0x10000
sub rax, rdx
sub rcx, rax
add rbx, rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x20], rbx
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [0x180413d00], rax
test rax, rax
jne 0x1802b4c4e
mov rcx, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x20]
add rbx, rcx
cmp rbx, rsi
jb 0x1802b4b80
xor eax, eax
mov r14, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x90]
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rbp
ret
mov rcx, qword [0x180413cf8]
lea rdx, [rax + 0xffd8]
xor r8d, r8d
mov qword [rax + 8], rcx
lea rcx, [rax + 0xffb8]
mov dword [rax], 0x52727464
mov qword [rax + 0x10], r8
mov r9d, 0x48f
mov qword [0x180413cf8], rax
mov qword [rdx], r8
lea rdx, [rdx - 0x38]
mov r8, rcx
sub rcx, 0x38
sub r9, 1
jne 0x1802b4c81
mov qword [rax + 0x10], r8
mov rdx, qword [rax + 0x10]
cmp rdx, rbp
jb 0x1802b4c23
cmp rdx, rsi
ja 0x1802b4c23
mov rcx, qword [rdx + 0x20]
mov qword [rax + 0x10], rcx
movabs rax, 0xcccccccccccccccc
mov qword [rdx], rax
mov qword [rdx + 8], rax
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], rax
mov qword [rdx + 0x20], rax
mov qword [rdx + 0x28], rax
mov qword [rdx + 0x30], rax
mov rax, rdx
jmp 0x1802b4c25