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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x148
mov rax, qword [rsp + 0x158]
mov eax, dword [rax]
mov dword [rsp + 0x98], eax
mov rax, qword [rsp + 0x158]
add rax, 4
mov qword [rsp + 0x158], rax
mov eax, dword [rsp + 0x98]
mov ecx, eax
call fcn.18004a28c
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x78], 0xffffffff
xor eax, eax
cmp eax, 1
je 0x18001213c
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x9c], eax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x9c]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x158]
call fcn.180011930
mov qword [rsp + 0x158], rax
cmp qword [rsp + 0x158], 0
jne 0x180012114
mov dword [rsp + 0xd8], 0
mov dword [rsp + 0xdc], 0
lea r8, [rsp + 0xd8]
lea rdx, [rsp + 0xdc]
lea rcx, [rsp + 0xe0]
call fcn.180015b30
mov rdx, rax
mov rcx, qword [rsp + 0x150]
call fcn.180015b90
mov rax, qword [rsp + 0x150]
jmp 0x180012668
cmp dword [rsp + 0x9c], 0
jne 0x180012120
jmp 0x18001213c
mov eax, dword [rsp + 0x9c]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
jmp 0x180012071
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
add rax, 4
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x60]
add rax, 0x18
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x60]
add rax, 0x108
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x38]
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x40], 0
cmp qword [rsp + 0x40], 0
jne 0x1800121fd
mov rax, qword [rsp + 0x58]
cmp dword [rax + 0x6c], 5
jbe 0x1800121fd
mov rax, qword [rsp + 0x58]
cmp dword [rax + 0x98], 0
je 0x1800121fd
mov eax, dword [rsp + 0x38]
mov r9d, 0x40
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x18001225f
mov dword [0x1800fad74], 2
mov dword [rsp + 0xe8], 0
mov dword [rsp + 0xec], 0
lea r8, [rsp + 0xe8]
lea rdx, [rsp + 0xec]
lea rcx, [rsp + 0xf0]
call fcn.180015b30
mov rdx, rax
mov rcx, qword [rsp + 0x150]
call fcn.180015b90
mov rax, qword [rsp + 0x150]
jmp 0x180012668
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x3c]
mov r8d, eax
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x40]
call fcn.180058880
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 2]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
cmp qword [rsp + 0x68], rax
jae 0x180012311
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0x68]
mov ecx, dword [rcx + 0x14]
mov rdx, qword [rsp + 0x90]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x68]
mov edx, dword [rdx + 0xc]
mov r8, qword [rsp + 0x40]
add r8, rdx
mov rdx, r8
mov qword [rsp + 0x130], rdx
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0x130]
mov rcx, rax
call fcn.180058880
mov rax, qword [rsp + 0x68]
add rax, 0x28
mov qword [rsp + 0x68], rax
jmp 0x1800122a6
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x40], rax
je 0x1800123c7
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x98]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x9c]
mov dword [rsp + 0xa8], eax
mov r9d, dword [rsp + 0xa8]
mov r8, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call fcn.180012670
movzx eax, al
test eax, eax
jne 0x1800123c7
mov dword [rsp + 0xf8], 0
mov dword [rsp + 0xfc], 0
lea r8, [rsp + 0xf8]
lea rdx, [rsp + 0xfc]
lea rcx, [rsp + 0x100]
call fcn.180015b30
mov rdx, rax
mov rcx, qword [rsp + 0x150]
call fcn.180015b90
mov rax, qword [rsp + 0x150]
jmp 0x180012668
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x78]
mov edx, eax
mov rcx, qword [rsp + 0x40]
call fcn.1800127c0
movzx eax, al
test eax, eax
jne 0x180012432
mov dword [rsp + 0x108], 0
mov dword [rsp + 0x10c], 0
lea r8, [rsp + 0x108]
lea rdx, [rsp + 0x10c]
lea rcx, [rsp + 0x110]
call fcn.180015b30
mov rdx, rax
mov rcx, qword [rsp + 0x150]
call fcn.180015b90
mov rax, qword [rsp + 0x150]
jmp 0x180012668
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x48]
cmp qword [rsp + 0x68], rax
jae 0x180012603
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x24]
mov dword [rsp + 0xbc], eax
mov byte [rsp + 0xb5], 0
mov byte [rsp + 0xc8], 0
mov byte [rsp + 0xb4], 0
mov eax, dword [rsp + 0xbc]
and eax, 0x20000020
test eax, eax
je 0x18001248e
mov byte [rsp + 0xb4], 1
mov eax, dword [rsp + 0xbc]
and eax, 0x40000000
test eax, eax
je 0x1800124a6
mov byte [rsp + 0xb5], 1
mov eax, dword [rsp + 0xbc]
and eax, 0x80000000
test eax, eax
je 0x1800124be
mov byte [rsp + 0xc8], 1
mov dword [rsp + 0xb0], 1
movzx eax, byte [rsp + 0xb4]
test eax, eax
je 0x180012514
movzx eax, byte [rsp + 0xc8]
test eax, eax
je 0x1800124ee
mov dword [rsp + 0xb0], 0x40
jmp 0x180012512
movzx eax, byte [rsp + 0xb5]
test eax, eax
je 0x180012507
mov dword [rsp + 0xb0], 0x20
jmp 0x180012512
mov dword [rsp + 0xb0], 0x10
jmp 0x180012544
movzx eax, byte [rsp + 0xb5]
test eax, eax
je 0x180012544
movzx eax, byte [rsp + 0xc8]
test eax, eax
je 0x180012539
mov dword [rsp + 0xb0], 4
jmp 0x180012544
mov dword [rsp + 0xb0], 2
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 8]
mov dword [rsp + 0xb8], eax
mov eax, dword [rsp + 0xb8]
lea r9, [rsp + 0xac]
mov r8d, dword [rsp + 0xb0]
mov edx, eax
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800125f0
mov dword [0x1800fad74], 4
mov dword [rsp + 0x118], 0
mov dword [rsp + 0x11c], 0
lea r8, [rsp + 0x118]
lea rdx, [rsp + 0x11c]
lea rcx, [rsp + 0x120]
call fcn.180015b30
mov rdx, rax
mov rcx, qword [rsp + 0x150]
call fcn.180015b90
mov rax, qword [rsp + 0x150]
jmp 0x180012668
mov rax, qword [rsp + 0x68]
add rax, 0x28
mov qword [rsp + 0x68], rax
jmp 0x18001243f
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [0x1800fad88], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x128], rax
mov rcx, qword [rsp + 0x128]
call fcn.180058bf4
mov rax, qword [rsp + 0x40]
mov qword [0x1800fad80], rax
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x158]
mov rcx, qword [rsp + 0x150]
call fcn.180015be0
mov rax, qword [rsp + 0x150]
add rsp, 0x148
ret