Function at 0x14079409c
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 0x1407940c9
xor eax, eax
jmp 0x140794355
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 0x14079413c
mov rax, qword [rsp + 0x30]
add rax, 0xf8
mov qword [rsp + 0x38], rax
jmp 0x14079415c
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 4]
cmp eax, 0x8664
jne 0x14079415c
mov rax, qword [rsp + 0x30]
add rax, 0x108
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x24], 0
jmp 0x140794170
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 0x1407941d0
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 0x140794166
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x98], rax
jae 0x1407942e2
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 0x140794225
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x20], eax
je 0x1407942bc
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2]
test eax, eax
jne 0x140794247
jmp 0x14079421b
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 0x14079429f
jmp 0x1407942b7
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
add rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rax
jmp 0x14079421b
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 0x1407941d0
mov dword [rsp + 0x28], 0
jmp 0x1407942f6
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 0x140794353
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 0x1407942ec
xor eax, eax
add rsp, 0x88
ret