Function at 0x18003ab40
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2a8
mov byte [rsp + 0x30], 0
xor r8d, r8d
mov rdx, qword [rsp + 0x2b0]
mov ecx, 0x6db
call fcn.180041270
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x18003ae57
mov byte [rsp + 0x50], 0xb8
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x51], eax
mov byte [rsp + 0x55], 0xb9
mov eax, dword [rsp + 0x34]
add eax, 0x245
mov dword [rsp + 0x56], eax
mov eax, 0xd1ff
mov word [rsp + 0x5a], ax
mov dword [rsp + 0x5c], 0
mov dword [rsp + 0x60], 0
mov rdx, qword [rsp + 0x2c8]
mov rcx, qword [rsp + 0x2c0]
call fcn.18003a8e0
mov dword [rsp + 0x64], eax
mov rcx, qword [rsp + 0x2b8]
call fcn.18005754c
movzx eax, ax
shl eax, 1
mov word [rsp + 0x6d], ax
movzx eax, word [rsp + 0x6d]
add eax, 2
mov word [rsp + 0x6f], ax
mov eax, 2
imul rax, rax, 0
mov ecx, dword [rsp + 0x34]
lea eax, [rcx + rax + 0x25]
mov dword [rsp + 0x71], eax
mov rdx, qword [rsp + 0x2b8]
lea rcx, [rsp + 0x75]
call fcn.180057530
mov eax, dword [0x1800a5228]
mov dword [rsp + 0x27d], eax
mov eax, dword [0x1800a522c]
mov dword [rsp + 0x281], eax
mov eax, dword [0x1800a5230]
mov dword [rsp + 0x285], eax
mov eax, dword [0x1800a5234]
mov dword [rsp + 0x289], eax
mov eax, dword [0x1800a5238]
mov dword [rsp + 0x28d], eax
mov eax, dword [0x1800a523c]
mov dword [rsp + 0x291], eax
cmp dword [rsp + 0x64], 0
je 0x18003ae2b
movsxd rax, dword [rsp + 0x34]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov r9d, 0x246
lea r8, [rsp + 0x50]
mov rdx, rax
mov rcx, qword [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x18003ae2b
cmp qword [rsp + 0x38], 0x246
jne 0x18003ae2b
mov eax, dword [rsp + 0x34]
add eax, 0x245
cdqe
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov r9d, 0x495
lea r8, [0x18007bf00]
mov rdx, rax
mov rcx, qword [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x18003ae2b
cmp qword [rsp + 0x38], 0x495
jne 0x18003ae2b
movsxd rax, dword [rsp + 0x64]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov r9d, 5
lea r8, [rsp + 0x40]
mov rdx, rax
mov rcx, qword [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x18003ae2b
cmp qword [rsp + 0x38], 5
jne 0x18003ae2b
mov eax, dword [rsp + 0x34]
add eax, 0x18
cdqe
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov r9d, 5
lea r8, [rsp + 0x40]
mov rdx, rax
mov rcx, qword [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x18003ae2b
cmp qword [rsp + 0x38], 5
jne 0x18003ae2b
movsxd rax, dword [rsp + 0x64]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9d, 0x40
mov r8d, 5
mov rdx, rax
mov rcx, qword [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x18003ae2b
mov byte [rsp + 0x40], 0xe9
mov eax, dword [rsp + 0x64]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
sub eax, 5
mov dword [rsp + 0x41], eax
movsxd rax, dword [rsp + 0x64]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov r9d, 5
lea r8, [rsp + 0x40]
mov rdx, rax
mov rcx, qword [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movsxd rax, dword [rsp + 0x64]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x48]
mov r8d, 5
mov rdx, rax
mov rcx, qword [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov byte [rsp + 0x30], 1
movsxd rax, dword [rsp + 0x34]
lea rcx, [rsp + 0x4c]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20
mov r8d, 0x6db
mov rdx, rax
mov rcx, qword [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
movzx eax, byte [rsp + 0x30]
add rsp, 0x2a8
ret