Function at 0x1800026d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push r13
sub rsp, 0x80
mov rax, qword [0x18006b3c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor ebp, ebp
mov rdi, rdx
mov r13, rcx
test rdx, rdx
jne 0x180002702
mov eax, 0x57
jmp 0x180002a2f
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x18006c410], eax
je 0x18000271a
mov eax, 0x10dd
jmp 0x180002a2f
mov eax, dword [0x18006c3cc]
test eax, eax
jne 0x180002a2f
test r13, r13
je 0x180002747
mov rcx, qword [r13]
test rcx, rcx
jne 0x180002751
mov dword [0x18006c3cc], 6
mov qword [0x18006c420], r13
mov eax, 6
jmp 0x180002a2f
mov qword [rsp + 0xb0], rbx
mov rbx, rbp
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x68], r14
mov r14, rbp
mov qword [rsp + 0x60], r15
call fcn.180001f10
mov rcx, rdi
mov r15, rax
call fcn.180001f10
mov qword [rsp + 0x38], rax
cmp rax, r15
jne 0x18000279e
cmp dword [0x18006be20], ebx
jne 0x180002a0a
jmp 0x1800029bd
mov ecx, 0x30
call fcn.180054710
mov rcx, r15
mov r14, rax
call fcn.180001d30
mov rbx, rax
test rax, rax
jne 0x1800027c5
mov ebp, 8
jmp 0x1800029bd
xor eax, eax
mov dword [rsp + 0x30], ebp
mov qword [rbx + 0x40], rax
mov r8, r15
lea rax, [rbx + 0x1e]
mov r12, rbx
mov qword [rsp + 0x48], rax
nop
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], ebp
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x48]
mov rcx, r12
mov rsi, r8
call fcn.18004ff60
mov r9d, dword [rsp + 0x30]
mov r8, rax
movsxd rax, dword [rsp + 0x40]
mov edi, r8d
sub rax, rsi
sub edi, r15d
add rax, r8
movzx ecx, dil
add r12, rax
movzx eax, r12b
sub al, bl
shl al, 3
xor cl, al
and cl, 7
xor cl, al
mov byte [r9 + rbx + 0x40], cl
inc r9d
mov dword [rsp + 0x30], r9d
cmp r9d, 8
jae 0x1800028ae
movzx ecx, byte [rsi]
cmp cl, 0xeb
je 0x1800028ae
lea eax, [rcx + 0x3e]
cmp al, 0x27
ja 0x180002863
movabs rdx, 0x8040000403
bt rdx, rax
jb 0x1800028ae
cmp cl, 0xf3
jne 0x1800028a3
cmp byte [rsi + 1], 0xc3
je 0x1800028ae
movzx eax, cl
cmp cl, 0x26
je 0x18000288c
sub al, 0x2e
cmp al, 0x37
ja 0x180002898
movabs rcx, 0xc0000000010101
bt rcx, rax
jae 0x180002898
cmp byte [rsi + 1], 0xff
jne 0x180002898
cmp byte [rsi + 2], 0x25
je 0x1800028ae
cmp edi, 5
jb 0x1800027e0
jmp 0x1800028dd
cmp cl, 0xff
jne 0x18000286e
cmp byte [rsi + 1], 0x25
jmp 0x180002896
cmp edi, 5
jae 0x1800028d3
mov rcx, r8
call fcn.1800017d0
test eax, eax
je 0x1800029af
cdqe
add r8, rax
mov edi, r8d
sub edi, r15d
cmp edi, 5
jb 0x1800028b3
cmp r9d, 8
ja 0x1800029af
cmp r12, qword [rsp + 0x48]
jbe 0x1800028e5
int3
sub r12b, bl
mov r8d, edi
lea rcx, [rbx + 0x20]
mov byte [rbx + 0x1e], r12b
mov rdx, r15
mov byte [rbx + 0x3e], dil
call sub.VCRUNTIME140.dll_memcpy
cmp edi, 0x19
jbe 0x18000290e
mov ebp, 6
jmp 0x1800029bd
movzx edx, byte [rbx + 0x1e]
lea rax, [rdi + r15]
mov qword [rbx + 0x48], rax
add rdx, rbx
mov rax, qword [rsp + 0x38]
mov qword [rbx + 0x50], rax
mov eax, ebx
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 + 0x48]
sub r8, rcx
cmp rcx, qword [rsp + 0x48]
cmova r8, rbp
test r8, r8
je 0x18000295a
mov dl, 0xcc
call sub.VCRUNTIME140.dll_memset
mov edx, edi
lea r9, [rsp + 0x50]
mov r8d, 0x40
mov dword [rsp + 0x50], ebp
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180002982
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x1800029bd
mov dword [r14 + 8], ebp
mov qword [r14 + 0x10], r13
mov qword [r14 + 0x20], rbx
mov qword [r14 + 0x18], r15
mov eax, dword [rsp + 0x50]
mov dword [r14 + 0x28], eax
mov rax, qword [0x18006c438]
mov qword [r14], rax
xor eax, eax
mov qword [0x18006c438], r14
jmp 0x180002a13
cmp dword [0x18006be20], 0
mov ebp, 9
jne 0x1800029c8
mov dword [0x18006c3cc], ebp
test rbx, rbx
je 0x1800029f8
xorps xmm0, xmm0
mov r8, rbx
movups xmmword [rbx], xmm0
and r8, 0xffffffffffff0000
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm0
movups xmmword [rbx + 0x30], xmm0
movups xmmword [rbx + 0x40], xmm0
movups xmmword [rbx + 0x50], xmm0
mov rax, qword [r8 + 0x10]
mov qword [rbx + 0x48], rax
mov qword [r8 + 0x10], rbx
test r14, r14
je 0x180002a0a
mov edx, 0x30
mov rcx, r14
call fcn.18005474c
mov qword [0x18006c420], r13
mov eax, ebp
mov r14, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0xb0]
mov r15, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800546f0
add rsp, 0x80
pop r13
pop rdi
pop rbp
ret