Function at 0x180004020
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov r15, rdx
lea rcx, [rbp - 0x28]
call fcn.180003c50
nop
mov r13, qword [0x1800ba608]
mov rbx, qword [r13 + 8]
mov rdi, r13
cmp byte [rbx + 0x19], 0
jne 0x1800040a8
mov r12, qword [rbp - 0x10]
mov r14, qword [rbp - 0x18]
lea rcx, [rbx + 0x20]
lea rdx, [rbp - 0x28]
cmp r12, 0xf
cmova rdx, qword [rbp - 0x28]
mov rsi, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 0xf
jbe 0x18000407f
mov rcx, qword [rcx]
mov r8, rsi
cmp r14, rsi
cmovb r8, r14
call fcn.18006de00
test eax, eax
je 0x18000428d
js 0x180004296
mov rdi, rbx
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
je 0x180004060
cmp byte [rdi + 0x19], 0
jne 0x1800040bf
lea r8, [rdi + 0x20]
lea rdx, [rbp - 0x28]
call fcn.1800038b0
test al, al
je 0x1800040c2
mov rdi, r13
cmp rdi, r13
je 0x1800042d3
mov rax, qword [rdi + 0x40]
test rax, rax
je 0x1800042d3
lea rcx, [rax + r15]
mov rax, qword [rdi + 0x48]
test rax, rax
je 0x1800042d3
lea r13, [rax + r15]
mov rax, qword [rdi + 0x50]
test rax, rax
je 0x1800042d3
add rax, r15
mov qword [rbp + 0x50], rax
mov r14, qword [rdi + 0x58]
add r14, r15
mov rbx, qword [rdi + 0x60]
add rbx, r15
mov r12, qword [rdi + 0x68]
add r12, r15
mov rsi, qword [rdi + 0x70]
add rsi, r15
mov rdx, qword [rdi + 0x78]
add rdx, r15
mov qword [rbp - 0x30], rdx
mov rdi, qword [rdi + 0x80]
add rdi, r15
lea r8, [0x1800ba540]
lea rdx, [0x180013c10]
call fcn.180044874
test eax, eax
jne 0x1800042d3
lea r8, [section..data]
lea rdx, [0x180045710]
mov rcx, qword [rbp + 0x50]
call fcn.180044874
test eax, eax
jne 0x1800042d3
mov rcx, r13
call fcn.180012300
test al, al
je 0x1800042d3
cmp rbx, r14
jbe 0x1800042d3
sub rbx, r14
lea r9, [rbp + 0x50]
mov r8d, 0x40
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, rbx
mov edx, 0x90
mov rcx, r14
call fcn.18006d9c0
lea r9, [rbp + 0x50]
mov r8d, dword [rbp + 0x50]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp rsi, r12
jbe 0x1800042d3
sub rsi, r12
lea r9, [rbp + 0x58]
mov r8d, 0x40
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, rsi
mov edx, 0x90
mov rcx, r12
call fcn.18006d9c0
lea r9, [rbp + 0x58]
mov r8d, dword [rbp + 0x58]
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rbx, qword [rbp - 0x30]
cmp rdi, rbx
jbe 0x1800042d3
sub rdi, rbx
lea r9, [rbp - 0x30]
mov r8d, 0x40
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, rdi
mov edx, 0x90
mov rcx, rbx
call fcn.18006d9c0
lea r9, [rbp - 0x30]
mov r8d, dword [rbp - 0x30]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0xf
cmova rdx, qword [rbp - 0x28]
mov r8, qword [rbp - 0x18]
lea rcx, [0x1800b8188]
call fcn.180011280
xor ebx, ebx
mov edi, 1
xor eax, eax
lock cmpxchg dword [0x1800ba5a4], edi
je 0x1800042b6
cmp rbx, 0x20
jae 0x18000429f
xor ecx, ecx
jmp 0x1800042a1
cmp rsi, r14
jae 0x18000409c
mov rbx, qword [rbx + 0x10]
jmp 0x1800040a2
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800ba5a4], edi
jne 0x180004283
cmp qword [0x1800ba5a8], 0
je 0x1800042c5
call fcn.180044794
xor eax, eax
xchg dword [0x1800ba5a4], eax
movzx ebx, dil
jmp 0x1800042d5
xor bl, bl
mov rdx, qword [rbp - 0x10]
cmp rdx, 0xf
jbe 0x18000430c
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180004307
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000433b
call fcn.18004b4cc
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0xf
mov byte [rbp - 0x28], 0
movzx eax, bl
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.18005212c
int3