Function at 0x100a4fa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov ebx, dword [ebp + 0xc]
mov esi, ecx
test ebx, ebx
je 0x100a4fca
push edx
call sub.kernel32.dll_GetStdHandle
test eax, eax
je 0x100a4fd6
mov edi, eax
cmp eax, 0xffffffff
jne 0x100a4fe9
call sub.kernel32.dll_GetLastError
jmp 0x100a4fdb
mov dword [esi + 4], 0
mov byte [esi], 4
jmp 0x100a4fe1
mov eax, 6
mov byte [esi], 0
mov dword [esi + 4], eax
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x30]
push eax
push edi
call sub.kernel32.dll_GetConsoleMode
test eax, eax
je 0x100a5059
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax + 4]
test eax, eax
je 0x100a50a7
mov ecx, dword [ebp + 8]
cmp al, 4
jae 0x100a521c
movzx ecx, byte [ecx]
mov edx, ecx
and dl, 0xc0
cmp dl, 0x80
jne 0x100a5102
mov edx, dword [ebp + 0x10]
mov byte [edx + eax], cl
movzx ecx, byte [edx + 4]
inc cl
mov byte [edx + 4], cl
movzx eax, byte [edx]
movzx ebx, byte [eax + 0x101bec48]
cmp cl, bl
mov dword [ebp - 0x48], ebx
jae 0x100a5120
mov dword [esi + 4], 1
mov byte [esi], 4
jmp 0x100a4fe1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0x103
lea eax, [ebp - 0x14]
push 0
push 0
push ebx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x100a509c
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x14]
cmp eax, 0x103
je 0x100a524c
test eax, eax
js 0x100a510b
mov eax, dword [ebp - 0x10]
mov bl, 4
jmp 0x100a5113
cmp ebx, 0x1000
mov eax, 0x1000
cmovb eax, ebx
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x3c]
push eax
call dbg.from_utf8
add esp, 4
cmp dword [ebp - 0x3c], 0
je 0x100a5154
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x100a516d
mov edx, dword [ebp + 8]
cmp eax, ebx
ja 0x100a52b2
lea ecx, [ebp - 0x30]
push eax
call dbg.from_utf8
add esp, 4
cmp dword [ebp - 0x30], 0
jne 0x100a52c0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x28]
jmp 0x100a515a
mov eax, dword [ebp + 0x10]
mov byte [eax + 4], 0
jmp 0x100a5145
xor ebx, ebx
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
movzx ecx, bl
mov dword [esi + 4], eax
mov dword [esi], ecx
jmp 0x100a4fe1
movzx eax, cl
cmp cl, 5
jae 0x100a52a1
lea ecx, [ebp - 0x3c]
push eax
call dbg.from_utf8
add esp, 4
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x3c], 0
mov byte [eax + 4], 0
je 0x100a5190
mov byte [esi], 2
mov dword [esi + 4], 0x101bed98
jmp 0x100a4fe1
mov eax, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x34]
mov ecx, esi
mov edx, edi
push ebx
push eax
call dbg.write_valid_utf8_to_console
add esp, 8
jmp 0x100a4fe1
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
movzx ecx, byte [eax + 0x101bec48]
cmp ecx, ebx
jbe 0x100a51e0
mov ecx, dword [ebp + 0x10]
mov byte [ecx], al
mov byte [ecx + 4], 1
mov al, 4
mov ecx, 1
jmp 0x100a51e7
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
cmp ecx, ebx
mov dword [ebp - 0x14], ecx
jne 0x100a52e7
lea ecx, [ebp - 0x30]
mov edx, edi
push ebx
push eax
call dbg.write_valid_utf8_to_console
add esp, 8
movzx eax, byte [ebp - 0x30]
cmp al, 4
jne 0x100a51f1
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], ebx
cmp eax, ebx
mov dword [ebp - 0x44], eax
je 0x100a504d
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x44]
lea edx, [ebp - 0x14]
push 0x101bee38
jmp 0x100a52f9
mov al, 2
mov ecx, 0x101bed98
mov dword [esi + 4], ecx
mov byte [esi], al
jmp 0x100a4fe1
movzx ecx, byte [ebp - 0x2d]
mov byte [esi], al
mov byte [ebp - 0x16], cl
movzx ecx, word [ebp - 0x2f]
movzx edx, byte [ebp - 0x16]
mov word [ebp - 0x18], cx
mov ecx, dword [ebp - 0x2c]
movzx eax, word [ebp - 0x18]
mov byte [esi + 3], dl
mov word [esi + 1], ax
mov dword [esi + 4], ecx
jmp 0x100a4fe1
mov dword [ebp - 0x30], 0x101bee00
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], str._rustc_9b00956e56009bab2aa15d7bff10916599e3d6d6librarycore_srccharmethods.rs_g
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x30]
mov edx, 0x101bee08
call dbg.panic_fmt
lea eax, [ebp - 0x48]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x30], 0x101beb00
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x44]
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x3c]
push edx
push eax
push ecx
call dbg.write_fmt<std::sys::pal::windows::stdio::Stderr>
add esp, 0xc
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
call dbg.drop_in_place<core::option::Option<std::io::error::Error>>
mov ecx, 7
int 0x29
ud2
mov ecx, eax
mov edx, 4
push 0x101bee18
call dbg.slice_end_index_len_fail
mov ecx, eax
mov edx, ebx
push 0x101beda4
call dbg.slice_end_index_len_fail
movsd xmm0, qword [ebp - 0x2c]
movsd qword [ebp - 0x14], xmm0
lea eax, [ebp - 0x14]
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x101bedb4
push 0x101bd2f0
push eax
call sym.core::result::unwrap_failed::hb9c5ac622931d85d
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x14]
push 0x101bee28
lea eax, [ebp - 0x30]
push eax
call dbg.assert_failed<usize, usize>
mov esi, eax
push edi
call sub.kernel32.dll_CloseHandle
push esi
call sym.__Unwind_Resume