Function at 0x140084760
Capabilities:
Write file on windows

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0xd0
lea rbp, [rsp + 0x80]
add byte [rax], 0
add byte [rax - 0x39], cl
mov qword [rbp + 0x48], 0xfffffffffffffffe
invalid
invalid
invalid
dec dword [rbp - 0x7b]
test r8, r8
je 0x1400847bb
invalid
mov rsi, r9
mov rbx, r8
mov rdi, rdx
mov edi, edx
call qword [sym.imp.kernel32.dll_GetStdHandle]
mov r14, rax
mov eax, 1
test r14, r14
je 0x1400847c1
cmp r14, 0xffffffffffffffff
jne 0x1400847d9
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
or edx, 2
add bh, byte [rax + 1]
jmp 0x1400847cb
xor edx, edx
xor eax, eax
jmp 0x1400847cb
movabs rdx, 0x600000002
add rsp, 0xd0
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov dword [rbp - 0x20], 0
lea rdx, [rbp - 0x20]
lea edx, [rbp - 0x20]
mov rcx, r14
mov ecx, esi
call qword [sym.imp.kernel32.dll_GetConsoleMode]
push rbx
mov al, byte [rdx]
add byte [rbp - 0x437bf040], al
test eax, eax
je 0x1400848b1
invalid
add byte [rax], al
invalid
movzx ecx, byte [rsi + 4]
test rcx, rcx
je 0x140084925
add dword [rax], eax
invalid
cmp cl, 4
jae 0x1400849e4
movzx edx, byte [rdi]
mov eax, edx
and al, 0xc0
cmp al, 0x80
mov eax, 1
jne 0x14008497c
mov byte [rsi + rcx], dl
movzx eax, byte [rsi + 4]
inc al
mov byte [rsi + 4], al
movzx ecx, byte [rsi]
lea rdx, [0x1400fcad8]
movzx edi, byte [rcx + rdx]
mov qword [rbp - 0x28], rdi
jge 0x140084815
cmp al, dil
jb 0x1400849c7
movzx r8d, al
cmp al, 5
jae case.0x14001570d.1401
lea rcx, [rbp + 0x20]
mov rdx, rsi
call fcn.14000ef30
mov byte [rsi + 4], 0
add byte [rax - 0x7d], cl
cmp dword [rbp + 0x20], 0
jne 0x1400849d3
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x30]
xor byte [rax - 0x77], cl
mov qword [rbp + 0x10], rax
cmp rax, rdi
jne case.0x140013ee2.1337
mov rcx, r14
mov r8, rdi
call case.0x1400442b8.486
test rax, rax
jne 0x1400847cb
invalid
invalid
invalid
invalid
invalid
mov qword [rbp + 0x40], rdx
mov qword [rbp + 0x10], rdi
adc byte [rax + 0x39], cl
xlatb
jne 0x140084ade
test dword [rdi], esi
add al, byte [rax]
add byte [rax], al
mov edx, 1
jmp 0x1400847cb
movups xmm0, xmmword [0x1400fc8f0]
movaps xmmword [rbp + 0x20], xmm0
mov eax, 0xffffffff
cmp rbx, rax
cmovb rax, rbx
cmovb eax, ebx
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
and al, 0x38
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdi
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
and al, 0x20
mov rcx, r14
int1
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
add eax, dword [rcx]
add byte [rax], al
jne 0x140084916
mov rcx, r14
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov qword [rdx], rax
add byte [rbx + 0x33d2045], cl
add dword [rax], eax
add byte [rdi], cl
test byte [rbx], al
add dword [rax], eax
invalid
test eax, eax
js 0x14008498c
mov rdx, qword [rbp + 0x28]
xor eax, eax
shr cl, 0xa6
invalid
invalid
invalid
cmp rbx, 0x1000
mov r8d, 0x1000
cmovb r8, rbx
lea rcx, [rbp + 0x20]
mov rdx, rdi
call fcn.14000ef30
cmp qword [rbp + 0x20], 0
je 0x140084999
mov r8, qword [rbp + 0x28]
test r8, r8
je 0x1400849ae
cmp r8, rbx
ja 0x140084a84
lea rcx, [rbp - 0x20]
mov rdx, rdi
call fcn.14000ef30
clc
dec dword [rax - 0x7d]
jge 0x14008494b
add byte [rdi], cl
test dword [rdi], esp
add dword [rax], eax
invalid
mov rdx, qword [rbp - 0x18]
mov r8, qword [rbp - 0x10]
jmp case.0x140005e92.1401
mov byte [rsi + 4], 0
lea rdx, str.Windows_stdio_in_console_mode_does_not_support_writing_non_UTF_8_byte_sequences
lea edx, [0x1400fcc28]
jmp 0x1400847cb
invalid
invalid
invalid
invalid
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
adc eax, 0x28acc
jmp 0x1400847aa
invalid
invalid
invalid
mov rdx, qword [rbp + 0x28]
mov r8, qword [rbp + 0x30]
mov rcx, r14
call case.0x1400442b8.486
xchg dword [rcx], eax
add byte [rax], al
jmp 0x1400847cb
invalid
movzx eax, byte [rdi]
lea rcx, [0x1400fcad8]
add dword [rdi], 0xcb60f00
or byte [rax + 0x39], cl
fnstenv [rsi + 0x12]
mov byte [rsi], al
mov byte [rsi + 4], 1
add al, 1
mov edx, 1
xor eax, eax
shr cl, 0xf8
std
invalid
invalid
mov eax, 1
lea rdx, str.Windows_stdio_in_console_mode_does_not_support_writing_non_UTF_8_byte_sequences
lea edx, [0x1400fcc28]
jmp 0x1400847cb
std
invalid
invalid
lea rax, str.Unexpected_number_of_bytes_for_incomplete_UTF_8_codepoint.
mov qword [rbp - 0x20], rax
loopne 0x140084a38
mov dword [rbp - 0x18], 1
call case.0x14001570d.1385
add byte [rax], al
lea rax, str._rustc_2f090c30ddd6b3bbe5c81c087579a5166e7c7278librarycore_srccharmethods.rsXZ
lea eax, str._rustc_2f090c30ddd6b3bbe5c81c087579a5166e7c7278librarycore_srccharmethods.rsXZ
add eax, 0xa105a
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x10], eax
invalid
invalid
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
adc dword [rbp - 8], eax
lea rdx, str.library_std_src_syspalwindows_stdio.rs
invalid
invalid
add byte [rax - 0x73], cl
lea ecx, [rbp - 0x20]
call fcn.1400a80d0
mov bh, 0x36
add al, byte [rax]
mov qword [rbp - 0x30], r14
mov dword [rbp + 0x40], 0
add byte [rax], al
add dh, al
mov byte [rbp + 0x44], 0
add byte [rax - 0x73], r9b
lea eax, [0x1400fc958]
add eax, 0x77f29
invalid
add byte [rax - 0x77], cl
loopne 0x140084a7c
mov dword [rbp - 0x18], 1
call 0x140084a3c
add byte [rax], al
lea rax, [rbp - 0x28]
fmul dword [r8 - 0x77]
invalid
invalid
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
clc
lea rcx, [rbp + 0x40]
lea rdx, [rbp - 0x20]
push rbp
loopne 0x140084a3b
mov esp, ebp
invalid
dec dword [rax - 0x77]
adc byte [r8 - 0x73], r9b
adc r8b, r13b
or al, 0xed
in eax, dx
invalid
invalid
mov ecx, 7
invalid
add byte [rax], al
add ch, cl
int 0x29
ud2
lea rax, str.library_std_src_syspalwindows_stdio.rs
mov edx, 4
add al, 0
add byte [rax], al
add byte [rcx + rcx*4 - 0x3f], cl
mov rcx, r8
mov r8, rax
mov eax, eax
call fcn.1400a8190
invalid
add al, byte [rax]
lea rax, str.library_std_src_syspalwindows_stdio.rs
mov rcx, r8
mov ecx, eax
ror dword [rax - 0x77], 0xda
mov r8, rax
shr al, 0xf7
add al, byte ss:[rax]
movups xmm0, xmmword [rbp - 0x18]
movaps xmmword [rbp + 0x10], xmm0
lea rax, str.library_std_src_syspalwindows_stdio.rs
add dword [rdi], 0x44894800
add byte [rax - 0x77], cl
mov qword [rsp + 0x20], rax
lea rcx, str.called__Result::unwrap____on_an__Err__value
or eax, 0xa01ac
lodsb al, byte [rsi]
add dword [rdx], ecx
add byte [rbp + rcx*4 + 0xd], cl
or eax, 0x7647d
invalid
add byte [rbp + rcx*4 + 0x45], cl
adc byte [r10 + 0x2b], r15b
sub eax, dword [rax]
add byte [rax], al
add al, ch
push rdi
cmp dword [rdx], eax
invalid
mov qword [rbp - 0x20], 0
lea r9, str.library_std_src_syspalwindows_stdio.rs
sbb byte [rdx - 0x72b7fff9], al
invalid
invalid
add byte [rax - 0x73], cl
lea ecx, [rbp - 0x28]
jmp case.0x1400442b8.484
invalid
mov qword [rbp - 0x20], 0
lea r9, str.library_std_src_syspalwindows_stdio.rs
or eax, 0x7821b
sbb eax, dword [rdx - 0x72b7fff9]
lea rcx, [rbp + 0x40]
lea rdx, [rbp + 0x10]
lea r8, [rbp - 0x20]
loopne 0x140084ae2
call fcn.1400ab450
add ah, cl