Function at 0x1800f96d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x180515618]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov rsi, rdx
mov rdi, rcx
mov r14, qword [rcx + 0x28]
mov qword [rsp + 0x38], r14
mov rcx, r14
call fcn.18016acac
test eax, eax
jne 0x1800f992f
xor r15d, r15d
mov qword [rsi + 0x28], r15
mov qword [rsi + 0x30], r15
lea rax, vtable.fmt::v7::detail::buffer_char_.0
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], r15
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x78], r15
lea r12, vtable.fmt::v7::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov qword [rsp + 0x70], r12
lea rax, [rbp - 0x70]
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x78], 0xfa
mov rcx, qword [rdi + 0x38]
mov rax, qword [rcx]
lea r8, [rsp + 0x70]
mov rdx, rsi
call qword [rax + 8]
cmp byte [rdi + 0x30], r15b
jne 0x1800f97b2
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x1800f987b
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x30]
mov r8d, dword [rbp - 0x80]
mov rdx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800f98f2
jmp 0x1800f987b
cmp byte [rdi + 0x31], 0
je 0x1800f985f
mov rax, qword [rsi + 0x28]
cmp qword [rsi + 0x30], rax
jbe 0x1800f985f
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
movsxd rax, dword [rsi + 0x10]
movzx ebx, word [rdi + rax*2 + 0x40]
lea rdx, [rsp + 0x48]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx edx, word [rsp + 0x50]
mov eax, 0xfff0
and dx, ax
or dx, bx
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov r8, qword [rsi + 0x30]
mov rcx, qword [rsi + 0x28]
sub r8d, ecx
mov rdx, qword [rsp + 0x78]
add rdx, rcx
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
movzx edx, word [rsp + 0x50]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rcx, qword [rsi + 0x30]
mov r8d, dword [rbp - 0x80]
sub r8d, ecx
mov rdx, qword [rsp + 0x78]
add rdx, rcx
jmp 0x1800f9868
mov r8d, dword [rbp - 0x80]
mov rdx, qword [rsp + 0x78]
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
nop
mov qword [rsp + 0x70], r12
lea rax, [rbp - 0x70]
mov rcx, qword [rsp + 0x78]
cmp rcx, rax
je 0x1800f98b9
mov rdx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800f98b3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800f98ec
call fcn.1801690e8
nop
mov rcx, r14
call fcn.18016acd0
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.180169060
lea r11, [rsp + 0x1c0]
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.18019241c
nop
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp + 0x90]
call fcn.1801007d0
nop
mov r8, rax
lea rdx, str.wincolor_sink:_::WriteFile___failed._GetLastError__:
lea rcx, [rsp + 0x48]
call fcn.1800d0de0
nop
mov rcx, rax
call fcn.1800fc650
nop
mov ecx, eax
call fcn.18016aff4
int3