Function at 0x1801353c0
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 0x1801353fc
movzx eax, byte [rsp + 0x20]
jmp 0x1801356f1
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 0x180135437
movzx eax, byte [rsp + 0x20]
jmp 0x1801356f1
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 0x1801356ec
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.180121780
test eax, eax
jne 0x1801356d9
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 0x1801356d9
mov rax, qword [rsp + 0x38]
movabs rcx, 0x8000000000000000
mov rax, qword [rax]
and rax, rcx
test rax, rax
jne 0x1801355f1
movabs rax, 0x8000000000000000
cmp qword [rsp + 0x98], rax
jae 0x1801355ec
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.180118e30
test eax, eax
jne 0x1801355ec
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 0x1801355ec
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 0x1801355e5
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax]
call fcn.180134f40
mov rax, qword [rsp + 0x80]
movzx ecx, byte [rsp + 0xa8]
mov byte [rax + 0x10], cl
mov al, 1
jmp 0x1801356f1
jmp 0x1801356b8
movabs rax, 0x8000000000000000
cmp qword [rsp + 0x98], rax
jb 0x1801356b8
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x98]
cmp qword [rax], rcx
jne 0x1801356b8
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 0x1801356b8
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 0x1801356b4
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax]
call fcn.180134f40
mov rax, qword [rsp + 0x80]
movzx ecx, byte [rsp + 0xa8]
mov byte [rax + 0x10], cl
mov al, 1
jmp 0x1801356f1
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 0x1801354d2
mov rax, qword [rsp + 0x40]
add rax, 0x14
mov qword [rsp + 0x40], rax
jmp 0x18013545c
movzx eax, byte [rsp + 0x20]
add rsp, 0x78
ret