Function at 0x140036440
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x90
mov r14, r8
mov rsi, rdx
mov rbx, rcx
mov rax, qword [0x140324948]
xor rax, rsp
mov qword [rsp + 0x88], rax
cmp byte [0x140325f08], 0
jne 0x14003649c
lea rax, str.g_initialized
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_runtime_sel_main_chrome.c
mov ecx, 0xfffffffc
mov r9d, 0xb4
call fcn.1400c46f0
mov eax, dword [rsi + 0x1c]
mov dword [rbx + 0x5a8], eax
mov eax, dword [rsi + 0x28]
mov dword [rbx + 0x10], eax
mov eax, dword [rsi + 0x20]
mov dword [rbx + 0x620], eax
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x1400364c2
call sym.nacl64.exe__ovly_debug_event
mov rax, qword [rsi + 0x40]
mov qword [rbx + 0x608], rax
mov rcx, rbx
call fcn.14003f330
cmp dword [rsi + 0x24], 0
je 0x1400365e8
mov ecx, 2
call fcn.140194930
lea rcx, str.PLATFORM_QUALIFICATION_DISABLED___Native_Clients_sandbox_will_be_unreliable__n
mov edx, 0x4e
mov r8d, 1
mov r9, rax
call fcn.1401adae0
call fcn.140048320
call fcn.140039220
mov eax, dword [rsi + 0x14]
mov dword [rbx + 0x6f4], eax
cmp dword [rsi + 0x14], 0
jne 0x140036522
cmp dword [rsi + 0x18], 0
je 0x14003652d
mov rax, qword [rsi + 0x48]
mov qword [rbx + 0x700], rax
mov rcx, rbx
call fcn.14003f6c0
mov rdx, qword [rsi + 0x58]
test rdx, rdx
jne 0x14003656c
lea rax, str.args__nexe_desc___NULL
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_runtime_sel_main_chrome.c
mov ecx, 0xfffffffc
mov r9d, 0x10d
call fcn.1400c46f0
mov rdx, qword [rsi + 0x58]
mov rcx, rbx
call fcn.14003f550
mov rcx, qword [rsi + 0x58]
call fcn.1400c7f50
mov qword [rsi + 0x58], 0
lea rcx, str.BeforeLoadIrt
call fcn.1400cbe90
test eax, eax
je 0x1400365ad
lea rdx, str.NaCl_Fault_Injection:_at__s_n
lea r8, str.BeforeLoadIrt
mov ecx, 0xfffffffc
call fcn.1400c46f0
mov rcx, rbx
call fcn.14003f520
mov edi, eax
test eax, eax
jne 0x14003689c
cmp dword [rsi + 0x10], 0
je 0x140036609
mov r8, qword [rbx + 0x48]
cmp r8, 0xfffffff
ja 0x140036609
lea rdx, str.Skipped_NaClLoadIrt__irt_load_optional_with_dynamic_text_end:__I64x_n
mov ecx, 1
call fcn.1400c46f0
jmp 0x14003671a
lea rcx, [0x1401cb47e]
call fcn.1400cbe90
test eax, eax
je 0x1400367e4
call fcn.1400cc0f0
mov rdi, rax
jmp 0x1400367eb
mov ecx, dword [rsi]
mov rdi, qword [rsi + 8]
cmp ecx, 0xffffffff
je 0x14003668a
test rdi, rdi
je 0x140036660
lea rax, str.args__irt_desc__NULL
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_runtime_sel_main_chrome.c
mov ecx, 0xfffffffc
mov r9d, 0x128
call fcn.1400c46f0
mov ecx, dword [rsi]
cmp ecx, 0xffffffff
jne 0x140036660
lea rdx, str.IrtDescFromFd:_Integrated_runtime__IRT__not_present._n
mov ecx, 0xfffffffc
call fcn.1400c46f0
mov ecx, 0xffffffff
xor edx, edx
call fcn.1400c9a30
mov rdi, rax
test rax, rax
jne 0x140036680
lea rdx, str.IrtDescFromFd:_failed_to_construct_NaClDesc_object_from_descriptor_n
mov ecx, 0xfffffffc
call fcn.1400c46f0
mov qword [rsi + 8], rdi
mov dword [rsi], 0xffffffff
test rdi, rdi
je 0x14003671a
lea r15, [rsp + 0x70]
mov rcx, r15
call fcn.1400cd2e0
mov byte [r15], 1
lea rax, [0x14032218c]
mov qword [r15 + 8], rax
mov dword [r15 + 0x10], 5
mov rcx, rdi
mov rdx, r15
call fcn.1400cd190
lea r15, [rsp + 0x28]
mov rcx, r15
mov rdx, rdi
call fcn.1400cd390
mov rcx, rbx
mov rdx, rdi
mov r8, r15
call fcn.1400407f0
test eax, eax
je 0x1400366ff
mov ecx, eax
call fcn.140048920
lea rdx, str.NaClLoadIrt:_Failed_to_load_the_integrated_runtime__IRT_:__s_n
mov ecx, 0xfffffffc
mov r8, rax
call fcn.1400c46f0
lea rcx, [rsp + 0x28]
call fcn.1400cd0b0
mov rcx, qword [rsi + 8]
call fcn.1400c7f50
mov qword [rsi + 8], 0
cmp dword [rsi + 0x18], 0
je 0x140036742
mov rcx, rbx
call fcn.1400cd830
test eax, eax
je 0x14003689a
mov rdi, qword [rsi + 0x30]
test rdi, rdi
je 0x140036742
call fcn.1400cd950
mov ecx, eax
call rdi
mov rax, qword [rsi + 0x50]
test rax, rax
je 0x14003674f
xor ecx, ecx
call rax
lea rcx, str.BeforeEnvCleanserCtor
call fcn.1400cbe90
test eax, eax
je 0x140036777
lea rdx, str.NaCl_Fault_Injection:_at__s_n
lea r8, str.BeforeEnvCleanserCtor
mov ecx, 0xfffffffc
call fcn.1400c46f0
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov edx, 1
xor r8d, r8d
call fcn.140048570
call fcn.140040860
mov rcx, rdi
mov rdx, rax
xor r8d, r8d
call fcn.140048620
test eax, eax
jne 0x1400367b4
lea rdx, str.Failed_to_initialise_env_cleanser_n
mov ecx, 0xfffffffc
call fcn.1400c46f0
lea rcx, [rsp + 0x28]
call fcn.1400488f0
mov rdi, rax
lea rcx, str.CreateMainThread
call fcn.1400cbe90
test eax, eax
je 0x140036821
lea rdx, str.creating_main_thread_failed_n
mov ecx, 0xfffffffc
call fcn.1400c46f0
jmp 0x140036837
call fcn.1400415a0
mov edi, eax
test edi, edi
je 0x140036503
mov dword [rbx + 0x574], edi
mov ecx, edi
call fcn.140048920
mov rbx, rax
mov ecx, 2
call fcn.140194930
lea rdx, str.Error_while_loading_in_SelMain:__s_n
mov rcx, rax
mov r8, rbx
call fcn.140027e20
jmp 0x14003689c
mov r8, qword [rsi + 0x68]
mov edx, dword [rsi + 0x60]
mov rcx, rbx
mov r9, rdi
call fcn.1400401b0
test eax, eax
je 0x1400367d1
lea rcx, str.BeforeEnvCleanserDtor
call fcn.1400cbe90
test eax, eax
je 0x14003685f
lea rdx, str.NaCl_Fault_Injection:_at__s_n
lea r8, str.BeforeEnvCleanserDtor
mov ecx, 0xfffffffc
call fcn.1400c46f0
lea rcx, [rsp + 0x28]
call fcn.140048900
mov rcx, rbx
call fcn.140040700
mov edi, eax
test byte [rbx + 0x5f8], 0x7f
jne 0x140036890
lea rdx, str.NaCl_untrusted_code_called__exit_0x_x__n
mov ecx, 0xffffffff
mov r8d, edi
call fcn.1400c46f0
mov dword [r14], edi
mov ebx, 1
jmp 0x1400368db
xor edi, edi
mov ecx, 1
call fcn.140194930
mov rcx, rax
call fcn.1401ac910
mov rax, qword [rsi + 0x50]
xor ebx, ebx
test rax, rax
je 0x1400368db
test edi, edi
mov ecx, 4
cmovne ecx, edi
call rax
lea rdx, str.NaCl_LoadApp_failed._Transferring_logs_before_exit._n
mov ecx, 0xfffffffd
call fcn.1400c46f0
call fcn.1400c4430
mov rcx, rsi
call fcn.1400a1350
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140190ca0
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret