Function at 0x140025d30
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rbp - 0x69], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140122f00]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rdx
mov rsi, rcx
mov ebx, 5
mov eax, ebx
dec ebx
test eax, eax
jle 0x140025f3c
cmp qword [rsi + 0x18], 8
jb 0x140025d83
mov rcx, qword [rsi]
jmp 0x140025d86
mov rcx, rsi
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]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140025e0a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x140025dd2
test ebx, ebx
je 0x140025dd2
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140025d6b
lea rdx, str.File_creation_error
lea rcx, [rbp - 0x59]
call fcn.140005a2c
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x39]
call fcn.140005114
lea rdx, [0x1401183e8]
lea rcx, [rbp - 0x39]
call sub.msvcrt.dll__CxxThrowException
nop
mov qword [rbp - 0x79], rax
cmp qword [rdi + 0x18], 8
jb 0x140025e1a
mov r8, qword [rdi]
jmp 0x140025e1d
mov r8, rdi
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov r9d, dword [rdi + 0x10]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rsi, eax
test eax, eax
jle 0x140025f27
mov rcx, rsi
call fcn.140097b58
mov rbx, rax
mov qword [rbp - 0x61], rax
mov rax, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 8
jb 0x140025e6d
mov rdi, qword [rdi]
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbx
mov r9d, eax
mov r8, rdi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test r14, r14
jne 0x140025ec9
lea rdx, str.Attempting_to_use_an_invalid_handle.
lea rcx, [rbp - 0x59]
call fcn.140005a2c
nop
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x39]
call fcn.140005278
lea rdx, [0x140118428]
lea rcx, [rbp - 0x39]
call sub.msvcrt.dll__CxxThrowException
nop
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x71]
mov r8d, esi
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140025f1e
lea rdx, str.File_write_error
lea rcx, [rbp - 0x59]
call fcn.140005a2c
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x39]
call fcn.140005114
lea rdx, [0x1401183e8]
lea rcx, [rbp - 0x39]
call sub.msvcrt.dll__CxxThrowException
nop
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
lea rcx, [rbp - 0x79]
call fcn.14000c9f0
nop
lea rcx, [rbp - 0x79]
call fcn.14000a8c8
jmp 0x140025f74
lea rdx, str.File_creation_error__sharing_violation_
lea rcx, [rbp - 0x59]
call fcn.140005a2c
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x39]
call fcn.140005114
lea rdx, [0x1401183e8]
lea rcx, [rbp - 0x39]
call sub.msvcrt.dll__CxxThrowException
nop
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400b3bf0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret