Function at 0x140094310
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0xb8]
sub rsp, 0x190
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1401b4048]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rdi, rdx
mov rbx, rcx
mov rax, qword [rcx + 0x10]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14009452c
mov rsi, qword [rcx + 0x18]
mov qword [rsp + 0x40], rsi
mov rcx, rsi
call fcn.14009ea3c
test eax, eax
je 0x14009437f
mov ecx, eax
call fcn.14009eb6c
nop
xor r15d, r15d
mov qword [rdi + 0x28], r15
mov qword [rdi + 0x30], r15
lea rax, vtable.fmt::v8::detail::buffer_char_.0
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r15
lea r12, vtable.fmt::v8::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov qword [rsp + 0x60], r12
lea rax, [rbp - 0x80]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x78], 0xfa
mov rcx, qword [rbx + 0x28]
mov rax, qword [rcx]
lea r8, [rsp + 0x60]
mov rdx, rdi
call qword [rax + 8]
cmp byte [rbx + 0x20], r15b
je 0x1400944b6
mov rax, qword [rdi + 0x28]
cmp qword [rdi + 0x30], rax
jbe 0x1400944b6
test rax, rax
je 0x14009440c
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
movsxd rax, dword [rdi + 0x10]
movzx r14d, word [rbx + rax*2 + 0x30]
lea rdx, [rsp + 0x48]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14009442f
lea r14d, [rax + 7]
jmp 0x14009444f
mov edx, dword [rsp + 0x50]
and edx, 0xfff0
movzx eax, r14w
or edx, eax
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
movzx r14d, word [rsp + 0x50]
mov rcx, qword [rdi + 0x30]
mov r8, qword [rdi + 0x28]
cmp rcx, r8
jbe 0x14009447c
sub ecx, r8d
mov rdx, qword [rsp + 0x68]
add rdx, r8
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov r8d, ecx
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
movzx edx, r14w
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rdx, qword [rdi + 0x30]
mov rcx, qword [rsp + 0x70]
cmp rcx, rdx
jbe 0x1400944da
sub ecx, edx
add rdx, qword [rsp + 0x68]
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov r8d, ecx
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
jmp 0x1400944da
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov qword [rsp + 0x60], r12
lea rax, [rbp - 0x80]
mov rcx, qword [rsp + 0x68]
cmp rcx, rax
je 0x140094519
mov rdx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140094513
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140094557
call fcn.1400bece8
nop
mov rcx, rsi
call fcn.14009ea60
test eax, eax
je 0x14009452c
mov ecx, eax
call fcn.14009eb6c
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.1400bf400
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.1400e9e3c
nop
int3