Function at 0x1400181b0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
xor ebx, ebx
mov r12, r9
mov r13, r8
mov rax, rdx
mov rbp, rcx
mov edi, ebx
test r8, r8
je 0x1400181eb
mov qword [r8], rbx
test r12, r12
je 0x1400181f3
mov qword [r9], rbx
mov r15, qword [rsp + 0xd0]
test r15, r15
je 0x140018203
mov qword [r15], rbx
test rax, rax
jne 0x140018212
mov eax, 0x57
jmp 0x140018537
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x14008e738], eax
je 0x140018229
mov eax, 0x10dd
jmp 0x140018537
mov eax, dword [0x14008e73c]
test eax, eax
jne 0x140018537
test rbp, rbp
jne 0x140018244
lea eax, [rbp + 6]
jmp 0x140018537
mov rcx, qword [rbp]
test rcx, rcx
jne 0x14001825b
lea edi, [rcx + 6]
mov dword [0x14008e73c], edi
jmp 0x14001852e
xor edx, edx
mov rsi, rbx
mov r14, rbx
call fcn.140018548
mov rcx, qword [rsp + 0xb8]
xor edx, edx
mov rbx, rax
call fcn.140018548
mov qword [rsp + 0x58], rax
cmp rax, rbx
jne 0x140018295
cmp dword [0x14008fb90], esi
jne 0x14001851b
jmp 0x140018406
xor ebp, ebp
test r12, r12
je 0x1400182a0
mov qword [r12], rbx
test r15, r15
je 0x1400182a8
mov qword [r15], rax
mov ecx, 0x30
call fcn.140002cbc
mov r14, rax
test rax, rax
jne 0x1400182c4
mov edi, 8
jmp 0x1400184c9
mov rcx, rbx
call fcn.14001f9c4
mov rsi, rax
test rax, rax
je 0x1400182ba
test r13, r13
je 0x1400182dd
mov qword [r13], rax
xor eax, eax
mov r15, rbx
mov qword [rsi + 0x40], rax
mov r13, rsi
lea rax, [rsi + 0x1e]
mov r12d, ebp
mov qword [rsp + 0x40], rax
mov edi, 8
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8, r15
mov qword [rsp + 0x48], r15
lea rdx, [rsp + 0x40]
mov rcx, r13
mov rbp, r15
call fcn.140014d78
mov r15, rax
mov r8d, r12d
movsxd rax, dword [rsp + 0x30]
inc r12d
sub rax, rbp
mov ebp, r15d
add rax, r15
sub ebp, ebx
add r13, rax
mov al, r13b
sub al, sil
mov dl, al
mov byte [rsp + 0xb8], al
shl dl, 3
mov al, bpl
and al, 7
or dl, al
mov byte [r8 + rsi + 0x40], dl
cmp r12d, edi
jae 0x140018376
mov rcx, qword [rsp + 0x48]
call fcn.140014bf8
test eax, eax
jne 0x140018376
cmp ebp, 5
jb 0x1400182fa
mov qword [rsp + 0x50], r13
mov r13, qword [rsp + 0xc0]
mov dword [rsp + 0x38], r12d
mov r12, qword [rsp + 0xc8]
mov qword [rsp + 0x48], r15
mov r15, qword [rsp + 0xd0]
jmp 0x1400183c0
mov rbp, qword [rsp + 0x48]
mov rcx, rbp
call fcn.14005ba28
test eax, eax
je 0x1400184ba
cdqe
add rbp, rax
mov qword [rsp + 0x48], rbp
sub ebp, ebx
cmp ebp, 5
jb 0x14001839f
cmp dword [rsp + 0x38], edi
ja 0x1400184ba
mov rax, qword [rsp + 0x50]
cmp rax, qword [rsp + 0x40]
jbe 0x1400183dc
int3
mov al, byte [rsp + 0xb8]
lea rcx, [rsi + 0x20]
mov r8d, ebp
mov rdx, rbx
mov byte [rsi + 0x1e], al
mov byte [rsi + 0x3e], bpl
mov edi, ebp
call sub.VCRUNTIME140.dll_memcpy
cmp rdi, 0x19
jbe 0x14001840d
mov edi, 6
xor ebp, ebp
jmp 0x1400184c9
movzx edx, byte [rsi + 0x1e]
lea rax, [rbx + rbp]
mov qword [rsi + 0x48], rax
add rdx, rsi
mov rax, qword [rsp + 0x58]
mov ebp, 0
mov qword [rsi + 0x50], rax
mov eax, esi
mov word [rdx], 0x25ff
lea rcx, [rdx + 6]
sub eax, ecx
lea rcx, [rdx + 6]
add eax, 0x48
mov dword [rdx + 2], eax
mov r8, qword [rsp + 0x40]
sub r8, rcx
cmp rcx, qword [rsp + 0x40]
cmova r8, rbp
test r8, r8
je 0x14001845e
mov dl, 0xcc
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x34]
mov dword [rsp + 0x34], ebp
mov r8d, 0x40
mov rdx, rdi
mov rcx, rbx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x140018485
call sub.KERNEL32.dll_GetLastError
mov edi, eax
jmp 0x1400184c9
mov rax, qword [rsp + 0xb0]
mov qword [r14 + 0x10], rax
mov dword [r14 + 8], ebp
mov qword [r14 + 0x20], rsi
mov qword [r14 + 0x18], rbx
mov eax, dword [rsp + 0x34]
mov dword [r14 + 0x28], eax
mov rax, qword [0x14008e750]
mov qword [r14], rax
xor eax, eax
mov qword [0x14008e750], r14
jmp 0x140018537
xor ebp, ebp
mov edi, 9
cmp dword [0x14008fb90], ebp
jne 0x1400184d4
mov dword [0x14008e73c], edi
test rsi, rsi
je 0x140018501
xor edx, edx
mov rbx, rsi
mov rcx, rsi
and rbx, 0xffffffffffff0000
lea r8d, [rdx + 0x60]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rbx + 0x10]
mov qword [rsi + 0x48], rax
mov qword [rbx + 0x10], rsi
test r13, r13
je 0x140018501
mov qword [r13], rbp
test r14, r14
je 0x140018513
mov edx, 0x30
mov rcx, r14
call fcn.140002da0
mov rbp, qword [rsp + 0xb0]
xor esi, esi
test r15, r15
je 0x140018525
mov qword [r15], rsi
test r12, r12
je 0x14001852e
mov qword [r12], rsi
mov eax, edi
mov qword [0x14008e740], rbp
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret