Function at 0x180004530
Capabilities:
Allocate or change rwx memory
Suspend thread

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x180043040]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp dword [r9], 0
mov r13, r8
mov r12, r9
jne 0x180004837
mov r11, qword [0x180047fc8]
xor ebp, ebp
mov r15, qword [rsp + 0xb0]
test r11, r11
je 0x1800045fc
mov eax, dword [0x180047fd8]
and al, 3
cmp al, 1
jne 0x1800045fc
mov r9d, ebp
cmp byte [r11], bpl
je 0x1800046b9
mov ecx, ebp
nop dword [rax]
nop word [rax + rax]
movsxd r10, r9d
mov rax, r15
add r10, r11
sub r10, r15
nop dword [rax]
movzx r8d, byte [rax]
movzx edx, byte [rax + r10]
sub r8d, edx
jne 0x1800045d5
inc rax
test edx, edx
jne 0x1800045c0
test r8d, r8d
je 0x1800045fc
nop word [rax + rax]
movzx eax, byte [rcx + r11]
inc r9d
inc rcx
test al, al
jne 0x1800045e0
cmp byte [rcx + r11], bpl
jne 0x1800045b0
xor eax, eax
jmp 0x18000483c
mov rdi, qword [rsp + 0x98]
lea rdx, [0x180043b18]
mov r8d, ebp
nop
mov rax, qword [rdx]
test rax, rax
je 0x180004638
nop dword [rax + rax]
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x180004638
cmp rdi, rcx
je 0x180004837
add rax, 0x28
jne 0x180004620
inc r8d
add rdx, 0xc8
cmp r8d, 0x14
jb 0x180004610
mov rdx, qword [rsp + 0x90]
lea rax, [0x180043b00]
mov ecx, ebp
nop dword [rax]
cmp rdx, qword [rax]
je 0x18000467d
inc ecx
add rax, 0xc8
cmp ecx, 0x14
jb 0x180004660
mov ebx, 0xac
lea r14d, [rbx + 0xc]
jmp 0x1800046a2
movsxd rax, ecx
imul rcx, rax, 0xc8
lea rax, str.ntdll.dll
lea rbx, [rax + 0xac]
add rbx, rcx
lea r14, [rax + 0xb8]
add r14, rcx
cmp qword [r14], rbp
jne 0x1800046d0
mov ecx, 0xc80
call fcn.180025480
mov qword [r14], rax
test rax, rax
jne 0x1800046c0
xor eax, eax
jmp 0x18000483c
xor edx, edx
mov r8d, 0xc80
mov rcx, rax
call fcn.18002f4f0
mov eax, dword [rbx]
test al, 1
jne 0x1800047e0
or eax, 1
lea rcx, [0x180045ff0]
mov dword [rbx], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1800477cc], ebp
jne 0x18000475e
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x1800477cc], ecx
jne 0x18000475e
mov rbx, qword [0x1800477e0]
mov qword [0x1800477b0], rbp
mov qword [0x1800477b8], rbp
mov qword [0x1800477c0], rbp
test rbx, rbx
je 0x180004756
nop dword [rax]
lea r9, [rsp + 0x30]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800047be
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x180004730
mov eax, ebp
mov dword [0x1800477c8], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [0x1800477c8], ebp
mov rbx, rax
jne 0x1800047e0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rbx, rax
je 0x1800047e0
mov ecx, 0x10
mov qword [rsp + 0x48], rsi
call fcn.18001e9ac
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1800047c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edx, 0x10
mov rcx, rsi
call fcn.18001e9f0
mov dword [0x1800477c8], ebx
mov qword [0x1800477c0], rbp
jmp 0x1800047db
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180004758
mov rax, qword [0x1800477b8]
mov qword [rsi], rax
mov qword [rsi + 8], rbx
mov qword [0x1800477b8], rsi
mov rsi, qword [rsp + 0x48]
mov r9, qword [r14]
cmp qword [r9 + 8], rbp
je 0x1800047fa
nop dword [rax]
add r9, 0x28
cmp qword [r9 + 8], rbp
jne 0x1800047f0
mov r8d, dword [0x180047e08]
lea rcx, [r9 + 0x18]
inc r8d
mov qword [rcx], rdi
mov qword [r9 + 8], rdi
mov rdx, r13
mov qword [r9 + 0x10], r13
mov qword [r9 + 0x20], r15
mov dword [r12], r8d
mov dword [r9], r8d
mov dword [0x180047e08], r8d
call fcn.180003370
test eax, eax
sete bpl
mov eax, ebp
jmp 0x18000483c
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18001e5f0
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret