Function at 0x180011cc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xc0
mov rax, qword [0x180028020]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbx, qword [rcx]
xor r12d, r12d
mov rdi, rdx
mov esi, r12d
mov r13, rcx
mov qword [rsp + 0x40], rcx
cmp dword [0x1800558bc], esi
lea rbp, [0x180054b90]
jne 0x180011d2e
lea rcx, [0x180054b60]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor edx, edx
mov r8d, 0x200
mov rcx, rbp
call sub.MSVCR100.dll_memset
mov dword [0x1800558bc], 1
lea rcx, [0x180054b60]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx r11d, byte [rbx]
cmp r11b, 0xff
jne 0x180011d56
cmp byte [rbx + 1], 0x25
jne 0x180011d56
movsxd rcx, dword [rbx + 2]
mov rcx, qword [rcx + rbx + 6]
jmp 0x180011d77
cmp r11b, 0xe9
jne 0x180011d67
movsxd rax, dword [rbx + 1]
lea rcx, [rax + rbx + 5]
jmp 0x180011d77
cmp r11b, 0xeb
jne 0x180011d7f
movsx rax, byte [rbx + 1]
lea rcx, [rax + rbx + 2]
call fcn.1800114c0
mov rbx, rax
movzx eax, byte [rdi]
cmp al, 0xff
jne 0x180011d97
cmp byte [rdi + 1], 0x25
jne 0x180011d97
movsxd rcx, dword [rdi + 2]
mov rcx, qword [rcx + rdi + 6]
jmp 0x180011db4
cmp al, 0xe9
jne 0x180011da6
movsxd rax, dword [rdi + 1]
lea rcx, [rax + rdi + 5]
jmp 0x180011db4
cmp al, 0xeb
jne 0x180011dbc
movsx rax, byte [rdi + 1]
lea rcx, [rax + rdi + 2]
call fcn.1800114c0
mov rdi, rax
xor edx, edx
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x50], r12
lea r8d, [rdx + 0x50]
call sub.MSVCR100.dll_memset
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.180011a40
mov r14d, eax
cmp eax, 5
jb 0x1800120e8
mov edx, r14d
mov rcx, rbx
call fcn.180011860
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov rcx, rbx
call fcn.180011500
mov rsi, rax
test rax, rax
je 0x1800120e3
mov qword [rsp + 0x110], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x40
mov rbp, rax
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x34]
mov r8d, r14d
mov rdx, rbx
mov rcx, rbp
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], r12d
mov dword [rsp + 0x30], r12d
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x18001208f
mov r9d, 0x40
lea rax, [rsp + 0x30]
mov rdx, rsi
lea r8d, [r9 + 0x38]
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180012062
lea r13, [rsi + 0x38]
test r14d, r14d
je 0x180011eb5
mov r8, rbx
mov r9, rsi
mov rcx, r13
sub r8, r13
sub r9, r13
mov edx, r14d
nop dword [rax]
movzx eax, byte [r8 + rcx]
inc rcx
dec rdx
mov byte [rcx - 1], al
mov byte [r9 + rcx + 0x57], al
jne 0x180011ea0
lea rax, [r14 + r13]
lea rcx, [r14 + rbx]
lea r8, [rax + 5]
cmp r8, rcx
jbe 0x180011ece
mov rdx, r8
sub rdx, rcx
jmp 0x180011ed4
mov rdx, rcx
sub rdx, r8
cmp rdx, 0x7fff0000
ja 0x180011ee8
sub ecx, r8d
mov byte [rax], 0xe9
mov dword [rax + 1], ecx
jmp 0x180011ef5
mov word [rax], 0x25ff
mov dword [rax + 2], r12d
mov qword [rax + 6], rcx
mov eax, dword [rsp + 0x60]
mov r9, r13
sub r9, rbx
test eax, eax
je 0x180011f25
lea rdx, [rsp + 0x68]
mov r8d, eax
nop dword [rax + rax]
mov ecx, dword [rdx + 8]
mov eax, dword [rdx]
add rdx, 0x10
sub ecx, r9d
dec r8
mov dword [rax + r13], ecx
jne 0x180011f10
cmp rdi, rbx
jae 0x180011f32
mov rax, rbx
sub rax, rdi
jmp 0x180011f38
mov rax, rdi
sub rax, rbx
cmp rax, 0x7fff0000
jbe 0x180011fea
lea rbp, [rsi + 0x18]
lea rcx, [rbp + 5]
cmp rcx, rdi
jbe 0x180011f59
mov rax, rcx
sub rax, rdi
jmp 0x180011f5f
mov rax, rdi
sub rax, rcx
cmp rax, 0x7fff0000
ja 0x180011f7d
lea r8, [rbp + 1]
mov eax, edi
mov byte [rbp], 0xe9
sub eax, ecx
add r8, 4
mov dword [r8 - 4], eax
jmp 0x180011f92
lea r8, [rbp + 2]
mov word [rbp], 0x25ff
mov dword [r8], r12d
mov qword [r8 + 4], rdi
add r8, 0xc
mov rcx, qword [rsp + 0x38]
sub r8, rsi
mov rdx, rbp
sub r8, 0x18
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea r11, [rbx + 5]
cmp r11, rbp
jbe 0x180011fb8
mov rax, r11
sub rax, rbp
jmp 0x180011fbe
mov rax, rbp
sub rax, r11
cmp rax, 0x7fff0000
ja 0x180011fd6
sub ebp, r11d
mov byte [rbx], 0xe9
mov dword [rbx + 1], ebp
mov rbp, qword [rsp + 0x38]
jmp 0x180012022
mov word [rbx], 0x25ff
mov dword [rbx + 2], r12d
mov qword [rbx + 6], rbp
mov rbp, qword [rsp + 0x38]
jmp 0x180012022
lea rcx, [rbx + 5]
cmp rcx, rdi
jbe 0x180011ffb
mov rax, rcx
sub rax, rdi
jmp 0x180012001
mov rax, rdi
sub rax, rcx
cmp rax, 0x7fff0000
ja 0x180012015
mov eax, edi
mov byte [rbx], 0xe9
sub eax, ecx
mov dword [rbx + 1], eax
jmp 0x180012022
mov word [rbx], 0x25ff
mov dword [rbx + 2], r12d
mov qword [rbx + 6], rdi
mov r8, r14
mov rdx, r13
mov rcx, rbp
mov dword [rsi + 8], r14d
mov qword [rsi], rbx
mov qword [rsi + 0x10], rdi
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov r9d, dword [rsp + 0x30]
lea r11, [rsp + 0x30]
mov r8d, 0x78
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r11
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r13, qword [rsp + 0x40]
mov r8, r14
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov r9d, dword [rsp + 0x34]
lea r11, [rsp + 0x34]
mov r8, r14
mov rdx, rbx
mov rcx, rbp
mov qword [rsp + 0x20], r11
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r15, qword [rsp + 0x110]
cmp qword [rsi], r12
je 0x1800120a6
lea rax, [rsi + 0x38]
mov qword [r13], rax
jmp 0x1800120e3
lea rdx, [0x180054b90]
mov eax, r12d
mov rcx, rdx
cmp qword [rcx], rsi
je 0x1800120c5
inc eax
add rcx, 8
cmp eax, 0x40
jb 0x1800120b3
jmp 0x1800120e0
mov qword [rdx + rax*8], r12
mov r8d, 0x8000
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
dec dword [0x1800559c4]
mov rsi, r12
call fcn.1800117a0
lea rcx, [0x180054b60]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rsi, rsi
setne r12b
mov eax, r12d
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.18001eef0
add rsp, 0xc0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret