Function at 0x14001a4d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x48], 0
cmp qword [rsp + 0xb0], 0
jne 0x14001a517
xor eax, eax
jmp 0x14001a8cc
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0x1d0], 0
je 0x14001a53b
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0x1b0], 0xffffffffffffffff
jne 0x14001a560
mov rax, qword [rsp + 0xa0]
lea r8, str.Attempt_to_write_to_an_empty_file
xor edx, edx
mov rcx, rax
call fcn.14000a870
mov rax, 0xffffffffffffffec
jmp 0x14001a8cc
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax + 0x1a8]
and eax, 0x1000
test eax, eax
je 0x14001a580
mov qword [rsp + 0x48], 0x4000
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0x1d0], 0
jl 0x14001a5f0
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x1b8]
add rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa0]
cmp rax, qword [rcx + 0x1d0]
jle 0x14001a5f0
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx + 0x1b8]
mov rax, qword [rax + 0x1d0]
sub rax, rcx
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0xb0], 0
jbe 0x14001a8b9
cmp qword [rsp + 0x48], 0
jne 0x14001a619
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x50], rax
jmp 0x14001a750
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
jmp 0x14001a650
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x68]
cmp qword [rsp + 0x38], rax
jae 0x14001a66c
mov rax, qword [rsp + 0x38]
movsx eax, byte [rax]
test eax, eax
je 0x14001a66a
jmp 0x14001a66c
jmp 0x14001a643
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xa0]
add rax, qword [rcx + 0x1b8]
mov rcx, qword [rsp + 0xa0]
mov qword [rcx + 0x1b8], rax
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xb0]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xb0], 0
jne 0x14001a6e3
jmp 0x14001a8b9
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x1b8]
cqo
idiv qword [rsp + 0x48]
inc rax
imul rax, qword [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x1b8]
add rax, qword [rsp + 0x50]
cmp rax, qword [rsp + 0x58]
jle 0x14001a750
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x1b8]
mov rcx, qword [rsp + 0x58]
sub rcx, rax
mov rax, rcx
mov eax, eax
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x20
rep stosb byte [rdi], al
mov rax, qword [rsp + 0xa0]
mov ecx, 0xffffffff
mov rax, qword [rax + 0x1b8]
and rax, rcx
mov dword [rsp + 0x80], eax
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x1b8]
sar rax, 0x20
mov dword [rsp + 0x84], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0xa8]
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0x1b0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14001a81e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 5
jne 0x14001a7ed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 9
jmp 0x14001a7f6
mov ecx, dword [rsp + 0x40]
call fcn.140041ed0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rcx, qword [rsp + 0xa0]
lea r8, str.Write_failed
mov edx, dword [rax]
call fcn.14000a870
mov rax, 0xffffffffffffffec
jmp 0x14001a8cc
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xa8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xa8], rax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xb0]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0xb0], rax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xa0]
add rax, qword [rcx + 0x1c8]
mov rcx, qword [rsp + 0xa0]
mov qword [rcx + 0x1c8], rax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xa0]
add rax, qword [rcx + 0x1b8]
mov rcx, qword [rsp + 0xa0]
mov qword [rcx + 0x1b8], rax
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx + 0x1b8]
mov qword [rax + 0x1c0], rcx
jmp 0x14001a5f0
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
add rsp, 0x90
pop rdi
ret