Function at 0x1401e83a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x10078
call fcn.140203400
sub rsp, rax
mov rbx, r9
mov esi, r8d
mov rdi, rdx
mov r15, rcx
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0x10070], rax
mov rcx, rdx
mov edx, r8d
mov r8d, 4
call fcn.1401e86ea
mov ebp, eax
mov r14d, esi
cmp eax, 0xffffffff
jne 0x1401e8409
mov rcx, rdi
mov edx, esi
mov r8d, 8
call fcn.1401e86ea
mov ebp, eax
cmp eax, 0xffffffff
je 0x1401e8462
mov rcx, rdi
mov rdx, rbx
mov r8, r14
call fcn.140204f20
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov rdx, rdi
mov r8, r14
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov rcx, rdi
mov edx, esi
mov r8d, ebp
call fcn.1401e86ea
mov sil, 1
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.140203460
mov eax, esi
add rsp, 0x10078
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r9, qword [r15 + 0x18]
movzx ecx, byte [r15]
cmp r9, rdi
ja 0x1401e847f
mov eax, 1
shl rax, cl
add rax, r9
cmp rax, rdi
ja 0x1401e849b
mov dword [rsp + 0x20], ecx
lea rdx, str.NaClSysToUser:_sysaddr_0x_08I64x__mem_start_0x_08I64x__addr_space__d_bits_n
mov ecx, 0xfffffffc
mov r8, rdi
call fcn.14014fd13
mov r9, qword [r15 + 0x18]
mov r12, rdi
sub r12, r9
lea r13, [r14 + r12]
cmp r13, r12
jbe 0x1401e84b0
cmp r13, qword [r15 + 0x48]
jbe 0x1401e84b4
xor esi, esi
jmp 0x1401e843c
shr r12, 0xc
dec r13
shr r13, 0xc
sub r13, r12
lea rcx, [rsp + 0x70]
mov r8d, 0x10000
mov dl, 0xaa
call fcn.1402055c0
inc r13
jne 0x1401e84f6
mov rcx, rdi
mov edx, esi
mov r8d, 8
call fcn.1401e86ea
mov ebp, eax
cmp eax, 0xffffffff
jne 0x1401e8409
jmp 0x1401e84b0
lea rax, [rsp + 0x6c]
mov dword [rax], 0xaaaaaaaa
lea rax, [r15 + 0x578]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], r15
mov rcx, qword [rsp + 0x58]
mov rdx, r12
call fcn.1400b8f34
test rax, rax
je 0x1401e86d6
mov rbp, rax
mov rax, qword [rax + 8]
mov qword [rsp + 0x38], r12
sub rax, r12
add rax, qword [rbp]
cmp rax, r13
mov qword [rsp + 0x50], r13
cmovae rax, r13
mov qword [rsp + 0x30], rax
cmp dword [rbp + 0x14], 0
je 0x1401e86ba
cmp qword [rsp + 0x30], 0
je 0x1401e86ba
mov r12, qword [rsp + 0x38]
mov r13, r12
neg r13
shl r12, 0xc
mov r15, qword [rsp + 0x30]
mov qword [rsp + 0x60], rbp
mov rax, qword [rsp + 0x40]
movzx r9d, byte [rax]
mov rax, r12
mov ecx, r9d
shr rax, cl
test r12, r12
je 0x1401e859c
test rax, rax
je 0x1401e85b0
mov ecx, 0xfffffffc
lea rdx, str.NaClUserToSys:_uaddr_0x_08I64x__addr_space__d_bits_n
mov r8, r12
call fcn.14014fd13
mov rbx, qword [rbp]
add rbx, r13
shl rbx, 0xc
add rbx, qword [rbp + 0x30]
mov eax, 0x10000
cmp rbx, rax
jl 0x1401e85ce
mov ebx, 0x10000
mov r8, rbx
sub r8, rax
neg r8
cmp rbx, rax
mov eax, 0
cmovae r8, rax
mov rax, qword [rsp + 0x40]
mov rbp, qword [rax + 0x18]
add rbp, r12
lea rcx, [rsp + rbx]
add rcx, 0x70
mov dl, 0xf4
call fcn.1402055c0
lea rcx, [rsp + 0x70]
mov rdx, rbp
mov r8, rbx
call fcn.140204f20
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x1401e84b0
mov edx, 0x10000
mov rcx, rbp
mov r8d, 0x1000
mov r9d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x1401e8658
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0xfffffffc
lea rdx, str.UnmapFiles:_VirtualAlloc_failed_with__d_n
mov r8d, eax
call fcn.14014fd13
mov r8d, 0x10000
mov rcx, rbp
lea rdx, [rsp + 0x70]
call fcn.140204f20
mov edx, 0x10000
mov rcx, rbp
mov r8d, 0x20
lea r9, [rsp + 0x6c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1401e86a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0xfffffffc
lea rdx, str.UnmapFiles:_VirtualProtect_failed_with__d_n
mov r8d, eax
call fcn.14014fd13
dec r13
add r12, 0x1000
dec r15
mov rbp, qword [rsp + 0x60]
jne 0x1401e8580
mov r12, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
add r12, rax
mov r13, qword [rsp + 0x50]
sub r13, rax
mov rbx, qword [rsp + 0x48]
jmp 0x1401e86dc
inc r12
dec r13
test r13, r13
jne 0x1401e8517
jmp 0x1401e84d9