Function at 0x180128720
Capabilities:
Allocate or change rwx memory
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov byte [rsp + 0x20], 0
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x18012875c
movzx eax, byte [rsp + 0x20]
jmp 0x180128a51
mov rax, qword [rsp + 0x30]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x50]
cmp dword [rcx + rax + 0x88], 0
jne 0x180128797
movzx eax, byte [rsp + 0x20]
jmp 0x180128a51
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0
je 0x180128a4c
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cdqe
mov r8, rax
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x58]
call fcn.180113e40
test eax, eax
jne 0x180128a39
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
add rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x10]
add rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x180128a39
mov rax, qword [rsp + 0x38]
movabs rcx, 0x8000000000000000
mov rax, qword [rax]
and rax, rcx
test rax, rax
jne 0x180128951
movabs rax, 0x8000000000000000
cmp qword [rsp + 0x98], rax
jae 0x18012894c
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
add rax, 2
mov rdx, qword [rsp + 0x98]
mov rcx, rax
call fcn.18010b4f8
test eax, eax
jne 0x18012894c
mov dword [rsp + 0x48], 0
mov rax, qword [rsp + 0x28]
lea r9, [rsp + 0x48]
mov r8d, 0x40
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18012894c
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x80]
mov qword [rcx], rax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0xa0]
mov qword [rax], rcx
movzx eax, byte [rsp + 0xa8]
test eax, eax
je 0x180128945
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax]
call fcn.1801282a0
mov rax, qword [rsp + 0x80]
movzx ecx, byte [rsp + 0xa8]
mov byte [rax + 0x10], cl
mov al, 1
jmp 0x180128a51
jmp 0x180128a18
movabs rax, 0x8000000000000000
cmp qword [rsp + 0x98], rax
jb 0x180128a18
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x98]
cmp qword [rax], rcx
jne 0x180128a18
mov dword [rsp + 0x4c], 0
mov rax, qword [rsp + 0x28]
lea r9, [rsp + 0x4c]
mov r8d, 0x40
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180128a18
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x80]
mov qword [rcx], rax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0xa0]
mov qword [rax], rcx
movzx eax, byte [rsp + 0xa8]
test eax, eax
je 0x180128a14
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax]
call fcn.1801282a0
mov rax, qword [rsp + 0x80]
movzx ecx, byte [rsp + 0xa8]
mov byte [rax + 0x10], cl
mov al, 1
jmp 0x180128a51
mov rax, qword [rsp + 0x38]
add rax, 8
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x28]
add rax, 8
mov qword [rsp + 0x28], rax
jmp 0x180128832
mov rax, qword [rsp + 0x40]
add rax, 0x14
mov qword [rsp + 0x40], rax
jmp 0x1801287bc
movzx eax, byte [rsp + 0x20]
add rsp, 0x78
ret