Function at 0x1400843c0
Capabilities:
Allocate thread local storage
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
or ebx, 0xffffffff
lea r14, str.c:core_no_admin_src_native_client_src_trusted_fault_injection_fault_injection.c
mov dword [0x140216f84], eax
mov edi, 0xfffffffd
cmp eax, ebx
jne 0x140084429
lea rax, str.TLS_OUT_OF_INDEXES___gFaultInjectCountKey
lea rdx, str.FaultInjection:_file__s__line__d:_CHECK_failed:__s_n
mov r9d, 0xd6
mov r8, r14
mov ecx, edi
mov qword [rsp + 0x20], rax
call fcn.14007a9a0
cmp dword [0x140216f84], ebx
je 0x14008447c
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140216f80], eax
cmp eax, ebx
jne 0x140084472
lea rax, str.TLS_OUT_OF_INDEXES___gFaultInjectValueKey
lea rdx, str.FaultInjection:_file__s__line__d:_CHECK_failed:__s_n
mov r9d, 0xdb
mov r8, r14
mov ecx, edi
mov qword [rsp + 0x20], rax
call fcn.14007a9a0
cmp dword [0x140216f80], ebx
jne 0x140084472
mov ecx, dword [0x140216f84]
call qword [sym.imp.KERNEL32.dll_TlsFree]
jmp 0x14008447c
mov dword [0x14020d300], 1
lea rcx, str.NACL_FAULT_INJECTION
call fcn.14009f438
xor r13d, r13d
test rax, rax
je 0x1400847c4
mov rcx, rax
call fcn.14009c114
lea r15d, [r13 - 4]
mov r12, rax
test rax, rax
jne 0x1400844cc
lea rax, str.NULL___config
lea rdx, str.Fatal_error_in_file__s__line__d:____s__n
mov r9d, 0x24d
mov r8, r14
mov ecx, r15d
mov qword [rsp + 0x20], rax
call fcn.14007a9a0
mov rdi, r12
cmp byte [r12], r13b
je 0x1400846ee
lea rdx, [0x1400d57a0]
mov rcx, rdi
call fcn.1400a059c
test rax, rax
jne 0x1400844ff
or rsi, 0xffffffffffffffff
inc rsi
cmp byte [rdi + rsi], r13b
jne 0x1400844f1
add rsi, rdi
jmp 0x140084506
mov byte [rax], r13b
lea rsi, [rax + 1]
mov edx, 0x3d
mov rcx, rdi
call fcn.1400a0340
mov r15, rax
test rax, rax
jne 0x140084532
lea rdx, str.NaClFaultInject:_control_entry__s_malformed__no_equal_sign_n
lea ecx, [rax - 3]
mov r8, rdi
call fcn.14007a9a0
jmp 0x1400845f7
mov r14, rax
sub r14, rdi
lea rcx, [r14 + 1]
call fcn.14009ea04
mov rbx, rax
test rax, rax
je 0x14008455b
mov r8, r14
mov rdx, rdi
mov rcx, rax
call fcn.14009fd60
mov byte [rbx + r14], r13b
mov qword [rbp - 0x30], rbx
lea r14, str.c:core_no_admin_src_native_client_src_trusted_fault_injection_fault_injection.c
test rbx, rbx
jne 0x14008458f
lea rax, str.NULL___out_info__call_site_name
lea rdx, str.Fatal_error_in_file__s__line__d:____s__n
lea ecx, [rbx - 4]
mov r9d, 0x232
mov r8, r14
mov qword [rsp + 0x20], rax
call fcn.14007a9a0
lea rbx, [r15 + 1]
lea rdx, str.NaClFaultInject:_control_sequence__s_n
mov ecx, 6
mov r8, rbx
mov dword [rbp - 0x28], r13d
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x10], r13
call fcn.14007a9a0
cmp byte [rbx], 0x54
jne 0x1400845c5
mov dword [rbp - 0x28], 1
jmp 0x1400845ce
cmp byte [rbx], 0x47
jne 0x1400845df
mov dword [rbp - 0x28], r13d
inc rbx
lea rcx, [rbp - 0x30]
mov rdx, rbx
call fcn.140084934
jmp 0x1400845f3
lea rdx, str.NaClFaultInjection:_fault_control_expression_should_indicate_if_the_counter_is_thread_local_or_global_n
mov ecx, 0xfffffffd
call fcn.14007a9a0
mov eax, r13d
test eax, eax
jne 0x140084611
mov r15d, 0xfffffffc
lea rdx, str.NaClFaultInjection:_syntax_error_in_configuration__environment_variable_NACL_FAULT_INJECTION_contains__s__which_is_not_syntactically_correct._n
mov r8, rdi
mov ecx, r15d
call fcn.14007a9a0
jmp 0x140084617
mov r15d, 0xfffffffc
mov rbx, qword [0x14020d310]
mov rdi, qword [0x14020d318]
cmp rbx, rdi
jb 0x1400846af
mov eax, 4
add rdi, rdi
cmove rdi, rax
movabs rax, 0x666666666666666
cmp rdi, rax
jbe 0x14008465f
lea rdx, str.Too_many_fault_injection_records_n
mov ecx, r15d
call fcn.14007a9a0
mov rbx, qword [0x14020d310]
mov rcx, qword [0x14020d308]
lea rdx, [rdi + rdi*4]
shl rdx, 3
call fcn.14009d978
mov rdi, rax
test rax, rax
jne 0x1400846a6
lea rax, str.NULL___info
lea rdx, str.Fatal_error_in_file__s__line__d:____s__n
mov r9d, 0x10c
mov r8, r14
mov ecx, r15d
mov qword [rsp + 0x20], rax
call fcn.14007a9a0
mov rbx, qword [0x14020d310]
mov qword [0x14020d308], rdi
jmp 0x1400846b6
mov rdi, qword [0x14020d308]
movups xmm0, xmmword [rbp - 0x30]
movups xmm1, xmmword [rbp - 0x20]
lea rax, [rbx + rbx*4]
inc rbx
mov qword [0x14020d310], rbx
movups xmmword [rdi + rax*8], xmm0
movsd xmm0, qword [rbp - 0x10]
movups xmmword [rdi + rax*8 + 0x10], xmm1
movsd qword [rdi + rax*8 + 0x20], xmm0
mov rdi, rsi
cmp byte [rsi], r13b
jne 0x1400844d9
jmp 0x1400846f5
mov rbx, qword [0x14020d310]
mov rcx, r12
call fcn.1400993dc
mov rcx, rbx
shl rcx, 4
call fcn.14009ea04
mov qword [0x14020d2f0], rax
test rax, rax
jne 0x140084740
lea rax, str.NULL___gNaClFaultInjectCallSites
lea rdx, str.Fatal_error_in_file__s__line__d:____s__n
mov r9d, 0x11e
mov r8, r14
mov ecx, r15d
mov qword [rsp + 0x20], rax
call fcn.14007a9a0
mov rbx, qword [0x14020d310]
mov rcx, rbx
shl rcx, 4
call fcn.14009ea04
mov qword [0x14020d2f8], rax
test rax, rax
jne 0x140084783
lea rax, str.NULL___gNaClFaultInjectMu
lea rdx, str.Fatal_error_in_file__s__line__d:____s__n
mov r9d, 0x122
mov r8, r14
mov ecx, r15d
mov qword [rsp + 0x20], rax
call fcn.14007a9a0
mov rbx, qword [0x14020d310]
mov rdi, r13
test rbx, rbx
je 0x1400847c4
mov rbx, r13
mov rax, qword [0x14020d2f0]
mov qword [rbx + rax], r13
mov rax, qword [0x14020d2f0]
mov qword [rbx + rax + 8], r13
mov rcx, qword [0x14020d2f8]
add rcx, rbx
call fcn.14007a92c
inc rdi
add rbx, 0x10
cmp rdi, qword [0x14020d310]
jb 0x14008478e
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret