Function at 0x4339f0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov r15, rcx
test r9, r9
je 0x433a2c
mov rsi, r9
mov rbx, r8
mov ecx, edx
call sub.kernel32.dll_GetStdHandle
test rax, rax
je 0x433a35
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x433a61
call sub.kernel32.dll_GetLastError
shl rax, 0x20
jmp 0x433a3f
xorps xmm0, xmm0
movups xmmword [r15], xmm0
jmp 0x433a52
movabs rax, 0x600000000
mov qword [r15 + 8], rax
mov qword [r15 + 0x10], 0
mov qword [r15], 1
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov dword [rsp + 0x48], 0
lea rdx, [rsp + 0x48]
mov rcx, rdi
call sub.kernel32.dll_GetConsoleMode
test eax, eax
je 0x433ae2
mov r14, qword [rsp + 0xf0]
movzx eax, byte [r14 + 4]
test rax, rax
je 0x433b2a
cmp al, 4
jae 0x433cc2
mov cl, byte [rbx]
mov edx, ecx
and dl, 0xc0
cmp dl, 0x80
jne 0x433b8d
mov byte [r14 + rax], cl
mov al, byte [r14 + 4]
add al, 1
mov byte [r14 + 4], al
movzx ecx, byte [r14]
lea rdx, [0x0043e6c9]
movzx esi, byte [rcx + rdx]
mov qword [rsp + 0x90], rsi
cmp sil, al
jbe 0x433bea
movaps xmm0, xmmword [0x0043c140]
jmp 0x433a2f
mov dword [rsp + 0x48], 0
mov eax, 0xffffffff
cmp rsi, rax
mov r8d, 0xffffffff
cmovb r8d, esi
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov rcx, rdi
mov rdx, rbx
call sub.kernel32.dll_WriteFile
test eax, eax
je 0x433baa
mov eax, dword [rsp + 0x48]
xor ecx, ecx
xor edx, edx
jmp 0x433bba
cmp rsi, 0x1000
mov r8d, 0x1000
cmovb r8, rsi
lea rcx, [rsp + 0x78]
mov rdx, rbx
call fcn.0040f200
cmp dword [rsp + 0x78], 1
jne 0x433bca
mov r8, qword [rsp + 0x80]
test r8, r8
je 0x433c52
cmp r8, rsi
ja 0x433ced
lea rcx, [rsp + 0x48]
mov rdx, rbx
call fcn.0040f200
cmp dword [rsp + 0x48], 1
je 0x433d04
mov r8, qword [rsp + 0x50]
mov r9, qword [rsp + 0x58]
jmp 0x433bda
mov byte [r14 + 4], 0
lea rax, str.Windows_stdio_in_console_mode_does_not_support_writing_non_UTF_8_byte_sequences
mov qword [r15 + 0x10], rax
mov qword [r15 + 8], 0x1502
jmp 0x433a4b
call sub.kernel32.dll_GetLastError
shl rax, 0x20
xor ecx, ecx
mov edx, 1
mov qword [r15], rdx
mov qword [r15 + 8], rax
mov qword [r15 + 0x10], rcx
jmp 0x433a52
mov r8, qword [rsp + 0x80]
mov r9, qword [rsp + 0x88]
mov rcx, r15
mov rdx, rdi
call fcn.00434310
jmp 0x433a52
movzx r8d, al
cmp r8b, 5
jae 0x433cdc
lea rcx, [rsp + 0x78]
mov rdx, r14
call fcn.0040f200
mov byte [r14 + 4], 0
cmp dword [rsp + 0x78], 1
je 0x433b92
mov r8, qword [rsp + 0x80]
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x30], rax
cmp rax, rsi
jne 0x433d39
lea rcx, [rsp + 0x48]
mov rdx, rdi
mov r9, rsi
call fcn.00434310
cmp dword [rsp + 0x48], 1
jne 0x433c75
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [r15 + 8], xmm0
jmp 0x433cb5
movzx eax, byte [rbx]
lea rcx, [0x0043e6c9]
movzx ecx, byte [rax + rcx]
cmp rcx, 2
jb 0x433ca2
cmp rcx, rsi
jbe 0x433ca2
mov byte [r14], al
mov byte [r14 + 4], 1
jmp 0x433c90
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x30], rsi
cmp rax, rsi
jne 0x433d53
mov qword [r15 + 8], 1
xor eax, eax
mov qword [r15], rax
jmp 0x433a52
lea rax, str.Windows_stdio_in_console_mode_does_not_support_writing_non_UTF_8_byte_sequences
mov qword [r15 + 0x10], rax
mov qword [r15 + 8], 0x1502
mov eax, 1
mov qword [r15], rax
jmp 0x433a52
lea rcx, str.Unexpected_number_of_bytes_for_incomplete_UTF_8_codepoint.library_std_src_syswindows_stdio.rs
lea r8, [0x00440ab0]
mov edx, 0x3a
call fcn.004195f0
ud2
lea rax, [0x00440b28]
mov edx, 4
mov rcx, r8
jmp 0x433cfa
lea rax, [0x00440b70]
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.0040c3c0
ud2
movups xmm0, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x30], xmm0
lea rax, [0x00440b88]
mov qword [rsp + 0x20], rax
lea rcx, str.called__Result::unwrap____on_an__Err__value
lea r9, [0x0043eaa8]
lea r8, [rsp + 0x30]
mov edx, 0x2b
call fcn.0040d290
ud2
mov qword [rsp + 0x48], 0
lea r9, [0x00440b40]
lea rcx, [rsp + 0x90]
jmp 0x433d6b
mov qword [rsp + 0x48], 0
lea r9, [0x00440b58]
lea rcx, [rsp + 0x98]
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x48]
call fcn.004346a0
ud2