Function at 0x14001cbb0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x1400f5608]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, rdx
mov rbx, rcx
mov edx, 0x4e20
lea rcx, [0x1400fa680]
call fcn.14002abe0
lea r15, str.void___cdecl_System::_anonymous_namespace::writeToFile_const_class_std::basic_string_char_struct_std::char_traits_char__class_std::allocator_char_____const_class_std::basic_string_char_struct_std::char_traits_char__class_std::allocator_char_____
test al, al
je 0x14001cc9f
call fcn.14002b900
mov rsi, rax
lea rdx, str.Write_to_file:
mov rcx, rax
call fcn.14000e1c0
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14001cc1c
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.14000e6f0
lea rcx, [rsi + 8]
lea rdx, [rsp + 0x48]
call fcn.140016b10
nop
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x63
lea r9, str.C:BuildAgentworkdbddd2e9dd455b4f_src_systemutils_impl.cpp
lea r8, [rsp + 0x48]
mov edx, 0x4e20
lea rcx, [0x1400fa680]
call fcn.14002ba00
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x14001cc9f
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001cc9a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001cfe6
call fcn.14008b4c8
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14001ccac
mov rcx, qword [rbx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80000080
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001cdad
mov edx, 0x9c40
lea rcx, [0x1400fa680]
call fcn.14002abe0
test al, al
je 0x14001cfb7
call fcn.14002b900
mov rdi, rax
lea rdx, str.Failed_to_create_file
mov rcx, rax
call fcn.14000e1c0
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x14001cd22
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.14000e6f0
lea rcx, [rdi + 8]
lea rdx, [rsp + 0x48]
call fcn.140016b10
nop
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], WSAGetLastError
lea r9, str.C:BuildAgentworkdbddd2e9dd455b4f_src_systemutils_impl.cpp
lea r8, [rsp + 0x48]
mov edx, 0x9c40
lea rcx, [0x1400fa680]
call fcn.14002ba00
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x14001cfb7
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001cda3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001cfec
call fcn.14008b4c8
jmp 0x14001cfb7
mov dword [rsp + 0x40], 0
lea r14, [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x14001cdc3
mov rdi, qword [rdi]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [r14]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14001ceb0
mov edx, 0x9c40
lea rcx, [0x1400fa680]
call fcn.14002abe0
test al, al
je 0x14001cfae
call fcn.14002b900
mov rdi, rax
lea rdx, str.Error_while_write_to_file
mov rcx, rax
call fcn.14000e1c0
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x14001ce26
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.14000e6f0
lea rcx, [rdi + 8]
lea rdx, [rsp + 0x48]
call fcn.140016b10
nop
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], reloc.WS2_32.dll_WSASetLastError
lea r9, str.C:BuildAgentworkdbddd2e9dd455b4f_src_systemutils_impl.cpp
lea r8, [rsp + 0x48]
mov edx, 0x9c40
lea rcx, [0x1400fa680]
call fcn.14002ba00
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x14001cfae
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001cfa9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001cfe0
jmp 0x14001cfa9
mov eax, dword [rsp + 0x40]
cmp rax, qword [r14]
je 0x14001cfae
mov edx, 0x9c40
lea rcx, [0x1400fa680]
call fcn.14002abe0
test al, al
je 0x14001cfae
call fcn.14002b900
mov rdi, rax
lea rdx, str.Error:_not_all_written_to
mov rcx, rax
call fcn.14000e1c0
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x14001cefb
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.14000e6f0
lea rdx, str.._Size
mov rcx, rax
call fcn.14000e1c0
mov rdx, qword [r14]
mov rcx, rax
call fcn.140010d90
mov rcx, rax
lea rdx, str.._Actually_written
call fcn.14000e1c0
mov edx, dword [rsp + 0x40]
mov rcx, rax
call fcn.140018c80
lea rcx, [rdi + 8]
lea rdx, [rsp + 0x48]
call fcn.140016b10
nop
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x78
lea r9, str.C:BuildAgentworkdbddd2e9dd455b4f_src_systemutils_impl.cpp
lea r8, [rsp + 0x48]
mov edx, 0x9c40
lea rcx, [0x1400fa680]
call fcn.14002ba00
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x14001cfae
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001cfa9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001cfda
call fcn.14008b4c8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14008bad0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call fcn.140091b3c
int3
call fcn.140091b3c
int3
call fcn.140091b3c
int3
call fcn.140091b3c
int3