Function at 0x1400bff66
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0x30], rax
call fcn.1400bff09
mov dword [rsp + 0x2c], 0xaaaaaaaa
cmp byte [rax], 0xfc
jne 0x1400c010a
mov rdi, rax
cmp byte [rdi + 1], 0x48
jne 0x1400c010a
mov rsi, rdi
cmp byte [rdi + 2], 0x8b
jne 0x1400c010a
cmp byte [rsi + 3], 5
jne 0x1400c010a
lea rdx, str.NaClPatchWindowsExceptionDispatcherWithCheck:_Got_instructions_expected_for_Windows_Vista_and_Windows_7_n
mov ecx, 2
call fcn.14014fd13
lea rdx, [rdi + 0x60000000]
lea rcx, [rdi - 0x60000000]
call fcn.1400bfe00
mov rbx, rax
test rax, rax
jne 0x1400bfff9
lea rdx, str.NaClPatchWindowsExceptionDispatcherWithCheck:_AllocatePageInRange___failed_n
mov ecx, 0xfffffffc
call fcn.14014fd13
mov edx, 0x10000
mov rcx, rbx
call fcn.1400bfa91
lea r15, [0x140001210]
lea r14, [0x140001238]
sub r14, r15
mov rcx, rbx
mov rdx, r15
mov r8, r14
call fcn.140204f20
lea r12, [0x140001218]
sub r12, r15
cmp dword [rbx + r12 + 1], 0x12345678
je 0x1400c0064
lea rax, str.reloc_addr__0x12345678
mov qword [rsp + 0x20], rax
lea rdx, str.Fatal_error_in_file__s__line__d:____s__n
lea r8, str....._native_client_src_trusted_service_runtimewinexception_patch_ntdll_patch.c
mov ecx, 0xfffffffc
mov r9d, 0xe8
call fcn.14014fd13
mov eax, dword [0x1403bcfc0]
mov dword [rbx + r12 + 1], eax
lea rax, [rbx + r14]
mov rcx, qword [rsi]
mov qword [rbx + r14], rcx
mov rcx, rdi
sub rcx, rax
movsxd r15, dword [rbx + r14 + 4]
add r15, rcx
mov dword [rbx + r14 + 4], r15d
movsxd rcx, r15d
add rax, rcx
add rax, 4
movsxd rcx, dword [rsi + 4]
add rcx, rdi
add rcx, 4
cmp rax, rcx
je 0x1400c00d1
lea rax, str._uintptr_t__new_operand__new_operand___uintptr_t__old_operand__old_operand
mov qword [rsp + 0x20], rax
lea rdx, str.Fatal_error_in_file__s__line__d:____s__n
lea r8, str....._native_client_src_trusted_service_runtimewinexception_patch_ntdll_patch.c
mov ecx, 0xfffffffc
mov r9d, 0x7d
call fcn.14014fd13
cmp r15, 0x7ffffeff
jge 0x1400c0137
cmp r15, 0xffffffff80000100
jg 0x1400c0161
lea rax, str.new_displacement___INT32_MIN__0x100
mov qword [rsp + 0x20], rax
lea rdx, str.Fatal_error_in_file__s__line__d:____s__n
lea r8, str....._native_client_src_trusted_service_runtimewinexception_patch_ntdll_patch.c
mov ecx, 0xfffffffc
mov r9d, 0x84
jmp 0x1400c015c
lea rdx, str.NaClPatchWindowsExceptionDispatcherWithCheck:_Unexpected_start_instructions_n
xor esi, esi
xor ecx, ecx
call fcn.14014fd13
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140203460
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rax, str.new_displacement___INT32_MAX___0x100
mov qword [rsp + 0x20], rax
lea rdx, str.Fatal_error_in_file__s__line__d:____s__n
lea r8, str....._native_client_src_trusted_service_runtimewinexception_patch_ntdll_patch.c
mov ecx, 0xfffffffc
mov r9d, 0x83
call fcn.14014fd13
lea rcx, [r14 + rbx]
add rcx, 8
lea rdx, [rdi + 8]
call fcn.1400c023f
lea r9, [rsp + 0x2c]
mov edx, 0x10000
mov rcx, rbx
mov r8d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400c01a0
lea rdx, str.NaClPatchWindowsExceptionDispatcherWithCheck:_VirtualProtect___failed_to_make_our_intercept_routine_executable_n
mov ecx, 0xfffffffc
call fcn.14014fd13
lea r9, [rsp + 0x2c]
mov edx, 6
mov rcx, rsi
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400c01ce
lea rdx, str.NaClPatchWindowsExceptionDispatcherWithCheck:_VirtualProtect___failed_to_make_the_routine_writable_n
mov ecx, 0xfffffffc
call fcn.14014fd13
inc rdi
cmp byte [rsi], 0xfc
je 0x1400c0200
lea rax, str.ntdll_routine_0___0xfc
mov qword [rsp + 0x20], rax
lea rdx, str.Fatal_error_in_file__s__line__d:____s__n
lea r8, str....._native_client_src_trusted_service_runtimewinexception_patch_ntdll_patch.c
mov ecx, 0xfffffffc
mov r9d, 0x10c
call fcn.14014fd13
mov rcx, rdi
mov rdx, rbx
call fcn.1400c023f
lea r9, [rsp + 0x2c]
mov r8d, dword [r9]
mov edx, 6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, 1
test eax, eax
jne 0x1400c011a
lea rdx, str.NaClPatchWindowsExceptionDispatcherWithCheck:_VirtualProtect___failed_to_restore_page_permissions_n
mov ecx, 0xfffffffc
jmp 0x1400c0115