Function at 0x140004b40
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14009b080]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor edx, edx
lea r9, [rbp - 0x18]
mov rsi, rcx
xor r15d, r15d
xor r8d, r8d
mov dword [rbp - 0x18], r15d
mov ebx, r15d
lea ecx, [rdx + 0x40]
call fcn.140017000
cmp eax, 0xc0000004
jne 0x140004bc8
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp - 0x18]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rbp - 0x18]
lea r9, [rbp - 0x18]
mov rdx, rax
mov ecx, 0x40
mov rbx, rax
call fcn.140017000
cmp eax, 0xc0000004
je 0x140004b83
mov qword [rsp + 0x98], rdi
mov qword [rsp + 0xa0], r14
test eax, eax
js 0x140004e03
test rbx, rbx
je 0x140004e19
mov edi, r15d
mov r14, r15
cmp qword [rbx], rdi
jbe 0x140004c4d
mov rax, r15
nop word [rax + rax]
lea rax, [rax + rax*4]
movups xmm0, xmmword [rbx + rax*8 + 0x10]
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmm0, xmmword [rbx + rax*8 + 0x20]
movups xmmword [rbp - 0x30], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movups xmm0, xmmword [rbp - 0x50]
mov ecx, eax
psrldq xmm0, 8
movq rax, xmm0
cmp rax, rcx
jne 0x140004c3e
mov rax, qword [rsi]
cmp qword [rbp - 0x30], rax
je 0x140004c49
inc edi
mov eax, edi
cmp rax, qword [rbx]
jb 0x140004c00
jmp 0x140004c4d
mov r14, qword [rbp - 0x40]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test r14, r14
je 0x140004e19
lea rdx, [r14 + 8]
mov qword [rbp - 0x50], r15
mov rcx, rsi
call fcn.140003560
test rax, rax
je 0x140004e19
lea r9, [rbp - 0x50]
mov r8d, 8
mov rdx, rax
mov rcx, rsi
call fcn.140003780
test eax, eax
je 0x140004e19
mov rdx, qword [rbp - 0x50]
test rdx, rdx
je 0x140004e19
add rdx, 8
mov qword [rbp - 0x50], r15
mov rcx, rsi
call fcn.140003560
test rax, rax
je 0x140004e19
lea r9, [rbp - 0x50]
mov r8d, 8
mov rdx, rax
mov rcx, rsi
call fcn.140003780
test eax, eax
je 0x140004e19
mov rdx, qword [rbp - 0x50]
test rdx, rdx
je 0x140004e19
add rdx, 0x28
mov qword [rbp - 0x50], r15
mov rcx, rsi
call fcn.140003560
test rax, rax
je 0x140004e19
lea r9, [rbp - 0x50]
mov r8d, 8
mov rdx, rax
mov rcx, rsi
call fcn.140003780
test eax, eax
je 0x140004e19
mov rax, qword [rbp - 0x50]
test rax, rax
je 0x140004e19
xor ecx, ecx
lea rdi, [rax + 0x58]
mov qword [rbp - 0x50], rcx
mov rdx, rdi
mov qword [rbp - 0x48], rcx
mov rcx, rsi
call fcn.140003560
test rax, rax
je 0x140004e19
lea r9, [rbp - 0x50]
mov r8d, 0x10
mov rdx, rax
mov rcx, rsi
call fcn.140003780
test eax, eax
je 0x140004e19
movzx eax, word [rbp - 0x50]
test ax, ax
je 0x140004e19
movzx ebx, ax
mov eax, 2
mov ecx, ebx
shr rcx, 1
inc rcx
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140018e34
lea r8, [rbx + 2]
xor edx, edx
mov rcx, rax
mov r14, rax
call fcn.14001ec00
mov rdx, qword [rbp - 0x48]
mov r9d, ebx
mov r8, r14
mov rcx, rsi
call fcn.140003920
test eax, eax
je 0x140004e19
mov rdx, rdi
mov word [rbp - 0x50], r15w
mov rcx, rsi
call fcn.140003560
test rax, rax
je 0x140004e19
lea r9, [rbp - 0x50]
mov r8d, 0x10
mov rdx, rax
mov rcx, rsi
call fcn.140003850
test eax, eax
je 0x140004e19
mov rcx, r14
call fcn.1400187f4
mov al, 1
jmp 0x140004e1b
test rbx, rbx
je 0x140004e19
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor al, al
mov r14, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x98]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400187d0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x70
pop r15
pop rsi
pop rbp
ret