Function at 0x14002d5a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
movaps xmmword [rsp + 0x50], xmm6
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
cmp rcx, 0x40000001
jb 0x14002d6b4
lea r15, [rdi - 0x40010000]
and r15, 0xffffffffffff0000
cmp r15, rbx
jbe 0x14002d6b4
xorps xmm6, xmm6
lea r12, [rsp + 0x20]
mov r13, 0xffffffffffff0000
jmp 0x14002d610
add r15, 0xfffffffff8000000
cmp r15, rbx
jbe 0x14002d6b4
cmp r15, qword [0x1400448d8]
jb 0x14002d622
cmp r15, qword [0x1400448e0]
jbe 0x14002d600
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm6
mov r8d, 0x30
mov rcx, r15
mov rdx, r12
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
je 0x14002d6b4
cmp dword [rsp + 0x40], 0x10000
jne 0x14002d6a0
cmp qword [rsp + 0x38], 0x10000
jb 0x14002d6a0
mov edx, 0x10000
mov rcx, r15
mov r8d, 0x3000
mov r9d, 0x40
call sub.KERNEL32.dll_VirtualAlloc
mov r14, rax
test rax, rax
jne 0x14002d6b7
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x14002d6b7
add r15, 0xffffffffffff0000
jmp 0x14002d607
mov r15, qword [rsp + 0x28]
add r15, r13
and r15, 0xffffffffffff0000
jmp 0x14002d607
xor r14d, r14d
movabs r15, 0xffffffff3fffffff
cmp rdi, r15
ja 0x14002d6dd
test r14, r14
jne 0x14002d6dd
lea rcx, [rdi + 0x40000000]
mov rdx, rsi
call fcn.14002ef10
mov r14, rax
cmp rdi, 0x40000001
jb 0x14002d6fd
test r14, r14
jne 0x14002d6fd
lea rcx, [rdi - 0x40000000]
mov rdx, rdi
call fcn.14002ef10
mov r14, rax
cmp rdi, r15
ja 0x14002d7f4
test r14, r14
jne 0x14002d7f4
lea r15, [rdi + 0x3fff0000]
and r15, 0xffffffffffff0000
cmp r15, rdi
jbe 0x14002d7fd
xorps xmm6, xmm6
lea r12, [rsp + 0x20]
mov r13, 0xffffffffffff0000
jmp 0x14002d750
add r15, 0xfffffffff8000000
cmp r15, rdi
jbe 0x14002d7fd
cmp r15, qword [0x1400448d8]
jb 0x14002d762
cmp r15, qword [0x1400448e0]
jbe 0x14002d740
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm6
mov r8d, 0x30
mov rcx, r15
mov rdx, r12
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
je 0x14002d7fd
cmp dword [rsp + 0x40], 0x10000
jne 0x14002d7e0
cmp qword [rsp + 0x38], 0x10000
jb 0x14002d7e0
mov edx, 0x10000
mov rcx, r15
mov r8d, 0x3000
mov r9d, 0x40
call sub.KERNEL32.dll_VirtualAlloc
mov r14, rax
test rax, rax
jne 0x14002d7f4
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x14002d7f4
add r15, 0xffffffffffff0000
jmp 0x14002d747
mov r15, qword [rsp + 0x28]
add r15, r13
and r15, 0xffffffffffff0000
jmp 0x14002d747
test r14, r14
jne 0x14002d8f2
lea r15, [rdi - 0x10000]
and r15, 0xffffffffffff0000
cmp r15, rbx
jbe 0x14002d8e4
xorps xmm6, xmm6
lea r12, [rsp + 0x20]
mov r13, 0xffffffffffff0000
jmp 0x14002d840
add r15, 0xfffffffff8000000
cmp r15, rbx
jbe 0x14002d8e4
cmp r15, qword [0x1400448d8]
jb 0x14002d852
cmp r15, qword [0x1400448e0]
jbe 0x14002d830
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm6
mov r8d, 0x30
mov rcx, r15
mov rdx, r12
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
je 0x14002d8e4
cmp dword [rsp + 0x40], 0x10000
jne 0x14002d8d0
cmp qword [rsp + 0x38], 0x10000
jb 0x14002d8d0
mov edx, 0x10000
mov rcx, r15
mov r8d, 0x3000
mov r9d, 0x40
call sub.KERNEL32.dll_VirtualAlloc
test rax, rax
jne 0x14002d8ef
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x14002d8e4
add r15, 0xffffffffffff0000
jmp 0x14002d837
mov r15, qword [rsp + 0x28]
add r15, r13
and r15, 0xffffffffffff0000
jmp 0x14002d837
mov rcx, rdi
mov rdx, rsi
call fcn.14002ef10
mov r14, rax
mov rax, r14
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret