Function at 0x180148b60
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 0x180148b9c
movzx eax, byte [rsp + 0x20]
jmp 0x180148e91
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 0x180148bd7
movzx eax, byte [rsp + 0x20]
jmp 0x180148e91
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 0x180148e8c
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.18010d920
test eax, eax
jne 0x180148e79
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 0x180148e79
mov rax, qword [rsp + 0x38]
movabs rcx, 0x8000000000000000
mov rax, qword [rax]
and rax, rcx
test rax, rax
jne 0x180148d91
movabs rax, 0x8000000000000000
cmp qword [rsp + 0x98], rax
jae 0x180148d8c
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.180101844
test eax, eax
jne 0x180148d8c
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 0x180148d8c
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 0x180148d85
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax]
call fcn.180148490
mov rax, qword [rsp + 0x80]
movzx ecx, byte [rsp + 0xa8]
mov byte [rax + 0x10], cl
mov al, 1
jmp 0x180148e91
jmp 0x180148e58
movabs rax, 0x8000000000000000
cmp qword [rsp + 0x98], rax
jb 0x180148e58
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x98]
cmp qword [rax], rcx
jne 0x180148e58
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 0x180148e58
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 0x180148e54
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax]
call fcn.180148490
mov rax, qword [rsp + 0x80]
movzx ecx, byte [rsp + 0xa8]
mov byte [rax + 0x10], cl
mov al, 1
jmp 0x180148e91
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 0x180148c72
mov rax, qword [rsp + 0x40]
add rax, 0x14
mov qword [rsp + 0x40], rax
jmp 0x180148bfc
movzx eax, byte [rsp + 0x20]
add rsp, 0x78
ret