Function at 0x18012c680
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 0x18012c6bc
movzx eax, byte [rsp + 0x20]
jmp 0x18012c9b1
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 0x18012c6f7
movzx eax, byte [rsp + 0x20]
jmp 0x18012c9b1
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 0x18012c9ac
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.180117da0
test eax, eax
jne 0x18012c999
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 0x18012c999
mov rax, qword [rsp + 0x38]
movabs rcx, 0x8000000000000000
mov rax, qword [rax]
and rax, rcx
test rax, rax
jne 0x18012c8b1
movabs rax, 0x8000000000000000
cmp qword [rsp + 0x98], rax
jae 0x18012c8ac
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.18010f458
test eax, eax
jne 0x18012c8ac
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 0x18012c8ac
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 0x18012c8a5
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax]
call fcn.18012c200
mov rax, qword [rsp + 0x80]
movzx ecx, byte [rsp + 0xa8]
mov byte [rax + 0x10], cl
mov al, 1
jmp 0x18012c9b1
jmp 0x18012c978
movabs rax, 0x8000000000000000
cmp qword [rsp + 0x98], rax
jb 0x18012c978
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x98]
cmp qword [rax], rcx
jne 0x18012c978
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 0x18012c978
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 0x18012c974
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax]
call fcn.18012c200
mov rax, qword [rsp + 0x80]
movzx ecx, byte [rsp + 0xa8]
mov byte [rax + 0x10], cl
mov al, 1
jmp 0x18012c9b1
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 0x18012c792
mov rax, qword [rsp + 0x40]
add rax, 0x14
mov qword [rsp + 0x40], rax
jmp 0x18012c71c
movzx eax, byte [rsp + 0x20]
add rsp, 0x78
ret