Function at 0x140028b68
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0x100
mov rax, qword [0x140113980]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, rdx
mov r14, rcx
mov ebx, 5
mov eax, ebx
dec ebx
test eax, eax
jle 0x140028d60
cmp qword [r14 + 0x18], 8
jb 0x140028bb3
mov rcx, qword [r14]
jmp 0x140028bb6
mov rcx, r14
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140028c1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x20
jne 0x140028da0
test ebx, ebx
je 0x140028da0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax + rax]
jmp 0x140028b9b
mov qword [rbp - 0x79], rdi
cmp qword [rsi + 0x18], 8
jb 0x140028c2f
mov r8, qword [rsi]
jmp 0x140028c32
mov r8, rsi
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov r9d, dword [rsi + 0x10]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
nop dword [rax + rax]
movsxd r14, eax
test eax, eax
jle 0x140028cf1
mov rcx, r14
call fcn.1400a5d68
mov rbx, rax
mov qword [rbp - 0x69], rax
mov r9d, dword [rsi + 0x10]
cmp qword [rsi + 0x18], 8
jb 0x140028c88
mov rsi, qword [rsi]
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rbx
mov r8, rsi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
nop dword [rax + rax]
test rdi, rdi
je 0x140028d31
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x71]
mov r8d, r14d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
je 0x140028de0
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
jmp 0x140028cf6
test rdi, rdi
je 0x140028d03
mov rcx, rdi
call fcn.1400080c0
or qword [rbp - 0x79], 0xffffffffffffffff
lea rcx, [rbp - 0x79]
call fcn.14000baec
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400c4a70
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
lea rdx, str.Attempting_to_use_an_invalid_handle.
lea rcx, [rbp - 0x61]
call fcn.14000621c
nop
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x39]
call fcn.140005ab4
lea rdx, [0x1401096d0]
lea rcx, [rbp - 0x39]
call sub.msvcrt.dll__CxxThrowException
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
lea rdx, str.File_creation_error__sharing_violation_
lea rcx, [rbp - 0x61]
call fcn.14000621c
nop
mov r8d, ebx
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x39]
call fcn.140005940
lea rdx, [0x1401095f0]
lea rcx, [rbp - 0x39]
call sub.msvcrt.dll__CxxThrowException
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
lea rdx, str.File_creation_error
lea rcx, [rbp - 0x61]
call fcn.14000621c
nop
mov r8d, ebx
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x39]
call fcn.140005940
lea rdx, [0x1401095f0]
lea rcx, [rbp - 0x39]
call sub.msvcrt.dll__CxxThrowException
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
lea rdx, str.File_write_error
lea rcx, [rbp - 0x61]
call fcn.14000621c
nop
mov r8d, ebx
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x39]
call fcn.140005940
lea rdx, [0x1401095f0]
lea rcx, [rbp - 0x39]
call sub.msvcrt.dll__CxxThrowException
int3