Function at 0x140084da0
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
dec dword [rbp - 0x7b]
invalid
je 0x140084dfb
mov rsi, r9
mov rbx, r8
mov rdi, rdx
mov edi, edx
call qword [sym.imp.kernel32.dll_GetStdHandle]
jg case.0x1400060a5.1706
add al, byte [rax]
mov r14, rax
mov eax, 1
add dword [rax], eax
add byte [rax], al
test r14, r14
je 0x140084e01
invalid
cmp r14, 0xffffffffffffffff
jne case.0x1400289ac.1715
invalid
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add dword [rax], eax
add byte [rax], al
jmp 0x140084e0b
xor edx, edx
xor eax, eax
jmp 0x140084e0b
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]
push rbp
loopne 0x140084e71
mov ecx, esi
call qword [sym.imp.kernel32.dll_GetConsoleMode]
sti
jrcxz 0x140084e2e
add byte [rbp - 0x437bf040], al
add byte [rax], al
invalid
movzx ecx, byte [rsi + 4]
test rcx, rcx
je 0x140084f65
cmp cl, 4
jae 0x140085024
movzx edx, byte [rdi]
mov eax, edx
and al, 0xc0
cmp al, 0x80
mov eax, 1
jne 0x140084fbc
pop rbp
add dword [rax], eax
invalid
mov byte [rsi + rcx], dl
movzx eax, byte [rsi + 4]
inc al
mov byte [rsi + 4], al
movzx ecx, byte [rsi]
lea rdx, [0x140102c68]
movzx edi, byte [rcx + rdx]
mov qword [rbp - 0x28], rdi
cmp al, dil
jb 0x140085007
movzx r8d, al
cmp al, 5
jae case.0x1400289ac.1396
lea rcx, [rbp + 0x20]
mov rdx, rsi
call fcn.14000f5e0
mov byte [rsi + 4], 0
add al, 0
cmp qword [rbp + 0x20], 0
jne case.0x1400289ac.1409
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x10], rax
cmp rax, rdi
jne 0x140085109
mov rcx, r14
mov r8, rdi
call case.0x140044923.486
test rax, rax
jne 0x140084e0b
mov qword [rbp + 0x40], rdx
mov qword [rbp + 0x10], rdi
cmp rdi, rdx
jne 0x14008511e
mov edx, 1
jmp 0x140084e0b
movups xmm0, xmmword [0x140102a80]
movaps xmmword [rbp + 0x20], xmm0
mov eax, 0xffffffff
cmp rbx, rax
cmovb rax, rbx
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdi
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
mov rcx, r14
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140084f56
mov rcx, r14
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x20]
and byte [0x140085053], r15b
je case.0x1400289ac.1375
test eax, eax
js 0x140084fcc
mov rdx, qword [rbp + 0x28]
xor eax, eax
jmp 0x140084e0b
cmp rbx, 0x1000
mov r8d, 0x1000
cmovb r8, rbx
lea rcx, [rbp + 0x20]
mov rdx, rdi
call fcn.14000f5e0
clc
dec dword [rax - 0x7d]
jge 0x140084fa6
invalid
je 0x140084fd9
mov r8, qword [rbp + 0x28]
test r8, r8
je 0x140084fee
cmp r8, rbx
ja 0x1400850c4
lea rcx, [rbp - 0x20]
mov rdx, rdi
call fcn.14000f5e0
cmpsb byte [rsi], byte [rdi]
clc
dec dword [rax - 0x7d]
jge 0x140084f8b
add byte [rdi], cl
test dword [rdi], esp
add dword [rax], eax
invalid
mov rdx, qword [rbp - 0x18]
mov r8, qword [rbp - 0x10]
jmp 0x140084fe1
mov byte [rsi + 4], 0
lea rdx, str.Windows_stdio_in_console_mode_does_not_support_writing_non_UTF_8_byte_sequences
lea edx, [0x140102db8]
jmp 0x140084e0b
invalid
invalid
invalid
invalid
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
adc eax, 0x2e4b4
jmp 0x140084dea
invalid
invalid
invalid
mov rdx, qword [rbp + 0x28]
mov r8, qword [rbp + 0x30]
mov rcx, r14
call case.0x140044923.486
jmp 0x140084e0b
invalid
invalid
invalid
movzx eax, byte [rdi]
lea rcx, [0x140102c68]
lea ecx, [0x140102c68]
movzx ecx, byte [rax + rcx]
mov dh, 0xc
or byte [rax + 0x39], cl
cmp ecx, ebx
jbe case.0x1400289ac.1409
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, [0x140102db8]
jmp 0x140084e0b
std
invalid
invalid
lea rax, str.Unexpected_number_of_bytes_for_incomplete_UTF_8_codepoint.
mov qword [rbp - 0x20], rax
loopne 0x140085078
mov qword [rbp - 0x18], 1
add byte [rax], al
lea rax, str._rustc_2f090c30ddd6b3bbe5c81c087579a5166e7c7278librarycore_srccharmethods.rs
add eax, 0xa6e9a
add byte [rax - 0x77], cl
invalid
invalid
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
lea rdx, str.library_std_src_syspalwindows_stdio.rs
fiadd word [rdi]
add byte [rax - 0x73], cl
lea rcx, [rbp - 0x20]
lea ecx, [rbp - 0x20]
call fcn.1400adc80
invalid
mov word [rdx], es
invalid
mov qword [rbp - 0x30], r14
mov dword [rbp + 0x40], 0
add byte [rax], al
add dh, al
add byte [rax - 0x73], r9b
lea eax, [0x140102ae8]
invalid
add byte [rax - 0x77], cl
loopne 0x1400850bc
mov dword [rbp - 0x18], 1
call 0x14008507c
lea rax, [rbp - 0x28]
fmul dword [r8 - 0x77]
invalid
invalid
xorps xmm0, xmm0
ror byte [rdi], 0x11
clc
clc
lea rcx, [rbp + 0x40]
lea rdx, [rbp - 0x20]
push rbp
loopne 0x14008507b
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
mov rcx, r8
mov r8, rax
mov eax, eax
call fcn.1400add40
jl 0x14008504e
add al, byte [rax]
lea rax, str.library_std_src_syspalwindows_stdio.rs
mov rcx, r8
mov rdx, rbx
mov edx, ebx
mov r8, rax
call fcn.1400add40
movups xmm0, xmmword [rbp - 0x18]
movaps xmmword [rbp + 0x10], xmm0
lea rax, str.library_std_src_syspalwindows_stdio.rs
fld qword [rdi]
add byte [rax - 0x77], cl
and al, 0x20
lea rcx, str.called__Result::unwrap____on_an__Err__value
push rsp
pop rdx
or al, byte [rax]
lea r9, [0x140100f88]
lea r8, [rbp + 0x10]
mov edx, 0x2b
sub eax, dword [rax]
add byte [rax], al
call fcn.1400adfd0
mov qword [rbp - 0x20], 0
lea r9, str.library_std_src_syspalwindows_stdio.rs
or eax, 0x7dd68
push 0x480007dd
lea ecx, [rbp - 0x28]
jmp case.0x140044923.484
mov qword [rbp - 0x20], 0
lea r9, str.library_std_src_syspalwindows_stdio.rs
lea rcx, [rbp + 0x40]
lea rdx, [rbp + 0x10]
lea r8, [rbp - 0x20]
call fcn.1400b1000
int3