Function at 0x18000dbb0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x58
mov rax, qword [0x18005a080]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp byte [0x18005f502], 0
jne 0x18000dfb0
mov qword [rsp + 0x60], rbx
call fcn.180040490
mov rbx, rax
call fcn.180008ad0
mov rdx, rax
mov rcx, rbx
call fcn.180036210
test eax, eax
je 0x18000dfab
mov qword [rsp + 0x68], rbp
mov rcx, rbx
mov qword [rsp + 0x78], rdi
call fcn.180008cb0
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.180007a70
call fcn.1800403f0
mov rdi, qword [rsp + 0x38]
mov rbp, rax
test rdi, rdi
je 0x18000de80
mov rcx, rbx
call fcn.1800090d0
test rax, rax
je 0x18000de80
mov rcx, rax
call fcn.1800080f0
test rax, rax
je 0x18000de80
lea rbx, [rax + 0x230]
movabs rcx, 0x7ffffef0000e
lea rax, [rbx - 0xfffff9]
cmp rax, rcx
ja 0x18000de80
mov edx, 8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x18000de80
mov rbx, qword [rbx]
test rbx, rbx
je 0x18000de80
cmp byte [0x18005f500], al
jne 0x18000de80
mov qword [rsp + 0x70], rsi
mov rcx, rdi
mov qword [rsp + 0x50], r14
mov byte [0x18005f500], 1
call fcn.180007450
xor esi, esi
mov rdi, rbx
lea r14, [rsi - 1]
test rax, rax
je 0x18000dd2c
cmp qword [0x18005f508], rax
je 0x18000dd2c
mov qword [0x18005f508], rax
mov ecx, esi
mov rax, qword [rax]
mov qword [0x18005f510], rax
cmp qword [rax], rcx
je 0x18000dcee
inc ecx
lea rax, [rax + 8]
cmp qword [rax], rsi
jne 0x18000dce3
mov dword [0x18005f520], ecx
mov eax, 8
movsxd rcx, ecx
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.18004c8d8
movsxd r8, dword [0x18005f520]
mov rcx, rax
mov rdx, qword [0x18005f510]
shl r8, 3
mov qword [0x18005f518], rax
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [0x18005f510]
test rax, rax
je 0x18000dd94
lea rcx, [rax + 0x268]
lea rbx, [0x18000b460]
cmp qword [rcx], rbx
je 0x18000dd94
mov edx, 8
lea r9, [rsp + 0x40]
lea r8d, [rdx + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18000dd94
mov rax, qword [0x18005f510]
lea r9, [rsp + 0x40]
mov edx, 8
mov qword [rax + 0x268], rbx
mov rcx, qword [0x18005f510]
mov r8d, dword [rsp + 0x40]
add rcx, 0x268
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp qword [0x18005f4d0], rdi
je 0x18000ddfe
mov qword [0x18005f4d0], rdi
mov ecx, esi
mov rax, qword [rdi]
mov qword [0x18005f4d8], rax
cmp qword [rax], rcx
je 0x18000ddc0
inc ecx
lea rax, [rax + 8]
cmp qword [rax], rsi
jne 0x18000ddb5
mov dword [0x18005f4e8], ecx
mov eax, 8
movsxd rcx, ecx
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.18004c8d8
movsxd r8, dword [0x18005f4e8]
mov rcx, rax
mov rdx, qword [0x18005f4d8]
shl r8, 3
mov qword [0x18005f4e0], rax
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [0x18005f4d8]
mov r14, qword [rsp + 0x50]
test rax, rax
je 0x18000de1c
cmp dword [0x18005f4e8], 1
jle 0x18000de1c
mov rsi, qword [rax + 8]
mov qword [0x18005f4f8], rsi
mov rsi, qword [rsp + 0x70]
test rax, rax
je 0x18000de80
lea rcx, [rax + 8]
lea rbx, [0x18000da60]
cmp qword [rcx], rbx
je 0x18000de80
mov edx, 8
lea r9, [rsp + 0x40]
lea r8d, [rdx + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18000de80
mov rax, qword [0x18005f4d8]
lea r9, [rsp + 0x40]
mov edx, 8
mov qword [rax + 8], rbx
mov rcx, qword [0x18005f4d8]
mov r8d, dword [rsp + 0x40]
add rcx, 8
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp byte [0x18005f505], 0
mov rdi, qword [rsp + 0x78]
je 0x18000de9d
mov edx, dword [0x18005f997]
call fcn.180016340
test al, al
jne 0x18000deaa
cmp byte [0x18005f96d], 0
je 0x18000dfa6
cmp dword [0x18005f9f8], 0
je 0x18000dfa6
mov rcx, rbp
call fcn.18000a620
mov rbx, rax
test rax, rax
je 0x18000dfa6
cmp byte [0x18005f96d], 0
je 0x18000df8d
movss xmm0, dword [0x18005fff0]
xorps xmm1, xmm1
ucomiss xmm0, xmm1
jp 0x18000df1c
jne 0x18000df1c
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, rax
xorps xmm0, xmm0
test rax, rax
js 0x18000df02
cvtsi2ss xmm0, rax
jmp 0x18000df14
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
movss dword [0x18005fff0], xmm0
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, rax
xorps xmm1, xmm1
test rax, rax
js 0x18000df34
cvtsi2ss xmm1, rax
jmp 0x18000df46
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
subss xmm1, dword [0x18005fff0]
movss xmm0, dword [0x180051804]
comiss xmm0, xmm1
ja 0x18000dfa6
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, rax
xorps xmm0, xmm0
test rax, rax
js 0x18000df73
cvtsi2ss xmm0, rax
jmp 0x18000df85
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
movss dword [0x18005fff0], xmm0
movups xmm0, xmmword [0x18005f9f0]
lea rdx, [rsp + 0x20]
mov rcx, rbx
movaps xmmword [rsp + 0x20], xmm0
call fcn.180011ac0
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18004c400
add rsp, 0x58
ret