Function at 0x140025290
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r13
push r14
push r15
sub rsp, 0x180
mov qword [rsp + 0x178], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
lea rbp, [rsp + 0x50]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x1400ca118]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov rsi, rdx
mov rdi, rcx
lea rdx, [rcx + 0x220]
mov r8b, 1
lea rcx, [rbp + 0x20]
call fcn.140022a08
nop
mov r15, qword [rsi + 0x10]
mov qword [rbp + 8], r15
lea r14, [rdi + 0x208]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x28]
mov rbx, rax
mov rdx, qword [r14]
mov rcx, r14
call qword [rdx + 0x30]
mov rdx, qword [r14]
mov rcx, r14
call qword [rdx + 0x30]
lea rcx, [rbx + r15]
cmp rcx, rax
jae 0x1400253ab
lea rdx, str..._nsConsole.cpp
lea rcx, [rbp + 0x60]
call fcn.140009aa8
mov rcx, rax
cmp qword [rsi + 0x18], 0x10
jb 0x140025343
mov r15, qword [rsi]
jmp 0x140025346
mov r15, rsi
lea rbx, [rdi + 0x28]
mov rdi, qword [rbx]
mov rax, qword [rax]
call qword [rax + 0x1e8]
mov r9, rax
mov dword [rsp + 0x20], 0x6d
mov r8, r15
lea rdx, str.Buffering_StdOutput_S___s:_d_
mov rcx, rbx
call qword [rdi + 0x148]
nop
lea rcx, [rbp + 0x60]
call fcn.14000a3b0
mov r8d, 0x4e4
mov rdx, rsi
lea rcx, [rbp + 0x60]
call fcn.1400099c8
nop
mov rdx, rax
mov rcx, r14
call fcn.14000b31c
nop
lea rcx, [rbp + 0x60]
call fcn.14000a3b0
jmp 0x140025754
and dword [rbp], 0
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x30]
test rax, rax
je 0x1400255ef
mov rax, qword [r14]
mov r8d, 0x4e4
lea rdx, [rbp + 0x80]
mov rcx, r14
call qword [rax + 0x200]
nop
lea r15, str..._nsConsole.cpp
mov rdx, r15
lea rcx, [rbp + 0x60]
call fcn.140009aa8
nop
mov rbx, qword [rbp + 0x90]
lea r13, [rdi + 0x28]
mov rdi, qword [r13]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x1e8]
mov r9, rax
mov dword [rsp + 0x20], 0x78
mov r8, rbx
lea rdx, str.Writing_StdOutputBuffer.Length_u___s:_d_
mov rcx, r13
call qword [rdi + 0x148]
nop
lea rcx, [rbp + 0x60]
call fcn.14000a3b0
mov rbx, qword [rbp + 0x90]
lea rdi, [rbp + 0x80]
cmp qword [rbp + 0x98], 0x10
cmovae rdi, qword [rbp + 0x80]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
and qword [rsp + 0x20], 0
lea r9, [rbp]
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor edi, edi
test eax, eax
jne 0x14002553f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rdx, qword [r14]
mov rcx, r14
call qword [rdx + 0x48]
mov qword [rbp + 0x78], 7
mov qword [rbp + 0x70], rdi
mov word [rbp + 0x60], di
cmp word [0x1400a6650], di
jne 0x1400254ac
mov eax, edi
jmp 0x1400254b8
lea rcx, [0x1400a6650]
call fcn.140065418
mov r8, rax
lea rdx, [0x1400a6650]
lea rcx, [rbp + 0x60]
call fcn.1400045d0
nop
mov qword [rbp + 0xb8], 0xf
mov qword [rbp + 0xb0], rdi
mov byte [rbp + 0xa0], dil
mov rcx, r15
call fcn.1400657f0
mov r8, rax
mov rdx, r15
lea rcx, [rbp + 0xa0]
call fcn.140004720
nop
mov ecx, ebx
call fcn.140023e14
mov edx, eax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x7e
lea r8, [rbp + 0xa0]
lea rcx, [rbp + 0xc0]
call fcn.1400230c8
lea rdx, [0x1400c7a90]
lea rcx, [rbp + 0xc0]
call fcn.14005ba94
nop
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x48]
mov rdx, r15
lea rcx, [rbp + 0x60]
call fcn.140009aa8
mov rcx, rax
cmp qword [rsi + 0x18], 0x10
jb 0x140025563
mov rdi, qword [rsi]
jmp 0x140025566
mov rdi, rsi
mov rbx, qword [r13]
mov rax, qword [rax]
call qword [rax + 0x1e8]
mov r9, rax
mov dword [rsp + 0x20], 0x83
mov r8, rdi
lea rdx, str.Buffering_StdOutput_S___s:_d_
mov rcx, r13
call qword [rbx + 0x148]
nop
lea rcx, [rbp + 0x60]
call fcn.14000a3b0
mov r8d, 0x4e4
mov rdx, rsi
lea rcx, [rbp + 0x60]
call fcn.1400099c8
nop
mov rdx, rax
mov rcx, r14
call fcn.14000b31c
nop
lea rcx, [rbp + 0x60]
call fcn.14000a3b0
nop
mov rdx, qword [rbp + 0x98]
cmp rdx, 0x10
jb 0x140025754
inc rdx
mov r8d, 1
mov rcx, qword [rbp + 0x80]
call fcn.140002da0
jmp 0x140025754
lea r15, str..._nsConsole.cpp
mov rdx, r15
lea rcx, [rbp + 0x60]
call fcn.140009aa8
mov rcx, rax
cmp qword [rsi + 0x18], 0x10
jb 0x140025611
mov r13, qword [rsi]
jmp 0x140025614
mov r13, rsi
lea rbx, [rdi + 0x28]
mov rdi, qword [rbx]
mov rax, qword [rax]
call qword [rax + 0x1e8]
mov r9, rax
mov dword [rsp + 0x20], 0x88
mov r8, r13
lea rdx, str.Writing_StdOutput_S___s:_d_
mov rcx, rbx
call qword [rdi + 0x148]
nop
lea rcx, [rbp + 0x60]
call fcn.14000a3b0
cmp qword [rsi + 0x18], 0x10
jb 0x140025656
mov rsi, qword [rsi]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
xor edi, edi
mov qword [rsp + 0x20], rdi
lea r9, [rbp]
mov r8d, dword [rbp + 8]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140025754
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rdx, qword [r14]
mov rcx, r14
call qword [rdx + 0x48]
mov qword [rbp + 0xb8], 7
mov qword [rbp + 0xb0], rdi
mov word [rbp + 0xa0], di
cmp word [0x1400a6650], di
jne 0x1400256bb
mov eax, edi
jmp 0x1400256c7
lea rcx, [0x1400a6650]
call fcn.140065418
mov r8, rax
lea rdx, [0x1400a6650]
lea rcx, [rbp + 0xa0]
call fcn.1400045d0
nop
mov qword [rbp + 0x98], 0xf
mov qword [rbp + 0x90], rdi
mov byte [rbp + 0x80], dil
mov rcx, r15
call fcn.1400657f0
mov r8, rax
mov rdx, r15
lea rcx, [rbp + 0x80]
call fcn.140004720
nop
mov ecx, ebx
call fcn.140023e14
mov edx, eax
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, 0x8e
lea r8, [rbp + 0x80]
lea rcx, [rbp + 0xc0]
call fcn.1400230c8
lea rdx, [0x1400c7a90]
lea rcx, [rbp + 0xc0]
call fcn.14005ba94
nop
lea rcx, [rbp + 0x20]
call fcn.140022a60
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.140058630
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret