Function at 0x180002740
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push r13
sub rsp, 0x90
mov rax, qword [0x18006c3c0]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor ebp, ebp
mov qword [rsp + 0x48], rcx
mov rdi, rdx
mov r13, rcx
test rdx, rdx
jne 0x180002775
lea eax, [rdx + 0x57]
jmp 0x180002ab9
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x18006d400], eax
je 0x18000278d
mov eax, 0x10dd
jmp 0x180002ab9
mov eax, dword [0x18006d31c]
test eax, eax
jne 0x180002ab9
test r13, r13
je 0x1800027ba
mov rcx, qword [r13]
test rcx, rcx
jne 0x1800027c4
mov dword [0x18006d31c], 6
mov qword [0x18006d410], r13
mov eax, 6
jmp 0x180002ab9
mov qword [rsp + 0xc0], rbx
mov rbx, rbp
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x78], r14
mov r14, rbp
mov qword [rsp + 0x70], r15
call fcn.180001f80
mov rcx, rdi
mov r15, rax
call fcn.180001f80
mov qword [rsp + 0x38], rax
cmp rax, r15
jne 0x180002817
cmp dword [0x18006cd70], ebx
jne 0x180002a8e
jmp 0x180002a41
mov ecx, 0x30
call fcn.180055650
mov rcx, r15
mov qword [rsp + 0x40], rax
mov r14, rax
call fcn.180001da0
mov rbx, rax
test rax, rax
jne 0x180002841
lea ebp, [rax + 8]
jmp 0x180002a41
xor eax, eax
mov r8, r15
mov qword [rbx + 0x40], rax
mov r12, rbx
lea rax, [rbx + 0x1e]
mov r13d, ebp
mov qword [rsp + 0x58], rax
movabs r14, 0xc000000001010101
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], ebp
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x58]
mov rcx, r12
mov rsi, r8
call fcn.180050ea0
mov r8, rax
movsxd rax, dword [rsp + 0x50]
sub rax, rsi
mov edi, r8d
add rax, r8
sub edi, r15d
add r12, rax
movzx eax, r12b
sub al, bl
shl al, 3
movzx ecx, al
xor cl, dil
and cl, 7
xor cl, al
mov eax, r13d
inc r13d
mov byte [rax + rbx + 0x40], cl
cmp r13d, 8
jae 0x180002910
movzx ecx, byte [rsi]
cmp cl, 0xeb
je 0x180002910
lea eax, [rcx + 0x3e]
cmp al, 0x27
ja 0x1800028de
movabs rdx, 0x8040000403
bt rdx, rax
jb 0x180002910
cmp cl, 0xf3
jne 0x180002980
cmp byte [rsi + 1], 0xc3
je 0x180002910
sub cl, 0x26
cmp cl, 0x3f
ja 0x180002907
bt r14, rcx
jae 0x180002907
cmp byte [rsi + 1], 0xff
jne 0x180002907
cmp byte [rsi + 2], 0x25
je 0x180002910
cmp edi, 5
jb 0x180002863
mov r14, qword [rsp + 0x40]
mov dword [rsp + 0x30], r13d
mov r13, qword [rsp + 0x48]
cmp edi, 5
jae 0x180002944
mov rcx, r8
call fcn.180001830
test eax, eax
je 0x180002a33
cdqe
add r8, rax
mov edi, r8d
sub edi, r15d
cmp edi, 5
jb 0x180002924
cmp dword [rsp + 0x30], 8
ja 0x180002a33
cmp r12, qword [rsp + 0x58]
jbe 0x180002957
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 0x180002992
mov ebp, 6
jmp 0x180002a41
cmp cl, 0xff
jne 0x1800028ed
cmp byte [rsi + 1], 0x25
jmp 0x180002905
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 + 0x58]
sub r8, rcx
cmp rcx, qword [rsp + 0x58]
cmova r8, rbp
test r8, r8
je 0x1800029de
mov dl, 0xcc
call sub.VCRUNTIME140.dll_memset
mov edx, edi
lea r9, [rsp + 0x60]
mov r8d, 0x40
mov dword [rsp + 0x60], ebp
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180002a06
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x180002a41
mov dword [r14 + 8], ebp
mov qword [r14 + 0x10], r13
mov qword [r14 + 0x20], rbx
mov qword [r14 + 0x18], r15
mov eax, dword [rsp + 0x60]
mov dword [r14 + 0x28], eax
mov rax, qword [0x18006d428]
mov qword [r14], rax
xor eax, eax
mov qword [0x18006d428], r14
jmp 0x180002a97
cmp dword [0x18006cd70], 0
mov ebp, 9
jne 0x180002a4c
mov dword [0x18006d31c], ebp
test rbx, rbx
je 0x180002a7c
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 0x180002a8e
mov edx, 0x30
mov rcx, r14
call fcn.18005568c
mov qword [0x18006d410], r13
mov eax, ebp
mov r14, qword [rsp + 0x78]
mov r12, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x88]
mov rbx, qword [rsp + 0xc0]
mov r15, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180055630
add rsp, 0x90
pop r13
pop rdi
pop rbp
ret