Function at 0x140098020
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x500]
sub rsp, 0x600
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1401ff978]
xor rax, rsp
mov qword [rbp + 0x4f0], rax
xor r14d, r14d
mov dword [rsp + 0x40], r14d
mov ecx, dword [0x14020f880]
mov rax, qword gs:[0x58]
mov edx, 0x130
mov rsi, qword [rax + rcx*8]
add rsi, rdx
mov rcx, rsi
call fcn.1400db750
cmp rax, 0xffffffffffffffff
je 0x1400983c8
xor ecx, ecx
call fcn.140133a60
mov qword [rbp - 0x80], rax
lea rcx, [rbp - 0x80]
call fcn.140133978
lea rdx, str._04d__02d__02d__02d:_02d:_02d
test rax, rax
je 0x1400980f3
mov r9d, dword [rax + 0x10]
inc r9d
mov r8d, dword [rax + 0x14]
add r8d, 0x76c
mov ecx, dword [rax]
mov dword [rsp + 0x38], ecx
mov ecx, dword [rax + 4]
mov dword [rsp + 0x30], ecx
mov ecx, dword [rax + 8]
mov dword [rsp + 0x28], ecx
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x20], eax
lea rcx, [rbp + 0x90]
call fcn.140089b70
jmp 0x140098119
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea rcx, [rbp + 0x90]
call fcn.140089b70
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x70]
call fcn.140119b60
lea rax, [0x1401a6f60]
mov qword [rbp - 0x70], rax
lea rax, [0x1401a8720]
mov qword [rbp - 0x60], rax
lea rax, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x28], rax
mov dword [rsp + 0x40], 1
xor r8d, r8d
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x70]
call fcn.140021180
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x74], edx
lea rax, [rbp - 0x58]
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x58]
call fcn.1400213c0
nop
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp - 0x58], rax
mov qword [rbp + 0x10], r14
mov dword [rbp + 0x18], r14d
mov rcx, rsi
call fcn.1400db750
test rax, rax
jne 0x14009827d
mov rbx, r14
mov r8, rbx
mov rdx, qword [str.MW_DEBUG_LOG__04d.txt]
lea rcx, [rbp + 0xb0]
call fcn.140097f80
inc rbx
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
lea rcx, [rbp + 0xb0]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileA]
mov rdx, rax
mov rcx, rsi
call fcn.1400db760
mov rcx, rsi
cmp rbx, 0x64
je 0x14009826f
call fcn.1400db750
test rax, rax
je 0x1400981c4
mov rcx, rsi
call fcn.1400db750
cmp rax, 0xffffffffffffffff
je 0x1400981c4
lea rdx, [0x14017f058]
lea rcx, [rbp - 0x60]
call fcn.14000de20
mov rcx, rax
lea rdx, [rbp + 0x90]
call fcn.14000de20
mov rcx, rax
mov dl, 9
call fcn.140097c30
mov rcx, rax
lea rdx, str._Log_start__r_n
call fcn.14000de20
jmp 0x14009827d
or rdx, 0xffffffffffffffff
call fcn.1400db760
jmp 0x1400983a9
lea rbx, [rbp + 0x538]
call fcn.140008a70
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r14
mov r9, qword [rbp + 0x530]
mov r8d, 0x400
lea rdx, [rbp + 0xf0]
mov rcx, qword [rax]
call fcn.140125fb0
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x60]
call fcn.14000de20
mov rcx, rax
mov dl, 9
call fcn.140097c30
mov rcx, rax
lea rdx, [rbp + 0xf0]
call fcn.14000de20
mov rcx, rax
lea rdx, [0x14017f058]
call fcn.14000de20
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x70]
call fcn.14001fe10
nop
mov rbx, qword [rsp + 0x68]
lea rdi, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rdi, qword [rsp + 0x58]
mov rcx, rsi
call fcn.1400db750
mov rcx, rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x78]
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
jne 0x14009833e
or rdx, 0xffffffffffffffff
mov rcx, rsi
call fcn.1400db760
nop
mov rax, qword [rsp + 0x70]
cmp rax, 0x10
jb 0x140098396
inc rax
mov rcx, qword [rsp + 0x58]
cmp rax, 0x1000
jb 0x140098391
test cl, 0x1f
je 0x140098364
call fcn.1401221c0
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140098373
call fcn.1401221c0
int3
sub rcx, rax
cmp rcx, 8
jae 0x140098382
call fcn.1401221c0
int3
cmp rcx, 0x27
jbe 0x14009838e
call fcn.1401221c0
int3
mov rcx, rax
call fcn.1400f87e0
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], 0xf
mov byte [rsp + 0x58], 0
lea rcx, [rbp + 0x28]
call fcn.14001fe40
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x28], rax
lea rcx, [rbp + 0x28]
call fcn.1400f3630
nop
mov rcx, qword [rbp + 0x4f0]
xor rcx, rsp
call fcn.1400f84a0
add rsp, 0x600
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret