Function at 0x140661edc
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
cmp qword [rsp + 0xa8], 0
jne 0x140661f09
xor eax, eax
jmp 0x140662195
mov eax, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0x98]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x40], 0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 4]
cmp eax, 0x14c
jne 0x140661f7c
mov rax, qword [rsp + 0x30]
add rax, 0xf8
mov qword [rsp + 0x38], rax
jmp 0x140661f9c
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 4]
cmp eax, 0x8664
jne 0x140661f9c
mov rax, qword [rsp + 0x30]
add rax, 0x108
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x24], 0
jmp 0x140661fb0
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x24], eax
je 0x140662010
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 8]
lea r9, [rsp + 0x40]
mov r8d, 0x40
mov edx, eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x140661fa6
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x98], rax
jae 0x140662122
mov rax, qword [rsp + 0x98]
add rax, 8
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 4]
sub rax, 8
xor edx, edx
mov ecx, 2
div rcx
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x20], 0
jmp 0x140662065
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x20], eax
je 0x1406620fc
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2]
test eax, eax
jne 0x140662087
jmp 0x14066205b
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2]
and eax, 0xfff
mov rcx, qword [rsp + 0x98]
mov ecx, dword [rcx]
add ecx, eax
mov eax, ecx
mov eax, eax
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2]
sar eax, 0xc
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0xa
je 0x1406620df
jmp 0x1406620f7
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
add rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rax
jmp 0x14066205b
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 4]
mov rcx, qword [rsp + 0x98]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x98], rax
jmp 0x140662010
mov dword [rsp + 0x28], 0
jmp 0x140662136
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x28], eax
je 0x140662193
movsxd rax, dword [rsp + 0x28]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
movsxd rax, dword [rsp + 0x28]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 8]
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov edx, eax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x14066212c
xor eax, eax
add rsp, 0x88
ret