Function at 0x14009c170
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 + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1401eb978]
xor rax, rsp
mov qword [rbp + 0x4f0], rax
xor r14d, r14d
mov dword [rsp + 0x40], r14d
mov ecx, dword [0x1401fb070]
mov rax, qword gs:[0x58]
mov edx, 0x130
mov rsi, qword [rax + rcx*8]
add rsi, rdx
mov rcx, rsi
call fcn.1400e12b0
cmp rax, 0xffffffffffffffff
je 0x14009c579
xor ecx, ecx
call fcn.140117848
mov qword [rbp - 0x80], rax
lea rcx, [rbp - 0x80]
call fcn.140128d38
lea rdx, str._04d__02d__02d__02d:_02d:_02d
test rax, rax
je 0x14009c243
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.14008e2b0
jmp 0x14009c269
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.14008e2b0
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x70]
call fcn.14010ef50
lea rcx, [0x140000000]
lea rax, [rcx + 0x196890]
mov qword [rbp - 0x70], rax
lea rax, [rcx + 0x197a28]
mov qword [rbp - 0x60], rax
mov dword [rsp + 0x40], 1
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x28], rax
mov dword [rbp + 0x24], 0x80
mov qword [rbp - 0x68], r14
xor r8d, r8d
lea rdx, [rbp - 0x58]
lea rcx, [rbp + 0x28]
call fcn.14001d540
nop
lea rax, [rbp - 0x60]
mov qword [rsp + 0x48], rax
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x60], rax
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x64], edx
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rbp + rcx - 0x74], edx
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 + 0x48], rax
lea rcx, [rbp - 0x58]
call fcn.14001d2c0
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.1400e12b0
test rax, rax
jne 0x14009c42e
mov rbx, r14
mov r8, rbx
mov rdx, qword [str.MW_DEBUG_LOG__04d.txt]
lea rcx, [rbp + 0xb0]
call fcn.14009c0f0
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.1400dabb0
mov rcx, rsi
cmp rbx, 0x64
je 0x14009c420
call fcn.1400e12b0
test rax, rax
je 0x14009c375
mov rcx, rsi
call fcn.1400e12b0
cmp rax, 0xffffffffffffffff
je 0x14009c375
lea rdx, [0x140172488]
lea rcx, [rbp - 0x60]
call fcn.140014900
mov rcx, rax
lea rdx, [rbp + 0x90]
call fcn.140014900
mov rcx, rax
mov dl, 9
call fcn.14009bd70
mov rcx, rax
lea rdx, str._Log_start__r_n
call fcn.140014900
jmp 0x14009c42e
or rdx, 0xffffffffffffffff
call fcn.1400dabb0
jmp 0x14009c55a
lea rbx, [rbp + 0x538]
call fcn.140007830
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.14011b804
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x60]
call fcn.140014900
mov rcx, rax
mov dl, 9
call fcn.14009bd70
mov rcx, rax
lea rdx, [rbp + 0xf0]
call fcn.140014900
mov rcx, rax
lea rdx, [0x140172488]
call fcn.140014900
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x70]
call fcn.14001bed0
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.1400e12b0
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 0x14009c4ef
or rdx, 0xffffffffffffffff
mov rcx, rsi
call fcn.1400dabb0
nop
mov rax, qword [rsp + 0x70]
cmp rax, 0x10
jb 0x14009c547
inc rax
mov rcx, qword [rsp + 0x58]
cmp rax, 0x1000
jb 0x14009c542
test cl, 0x1f
je 0x14009c515
call fcn.140117518
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14009c524
call fcn.140117518
int3
sub rcx, rax
cmp rcx, 8
jae 0x14009c533
call fcn.140117518
int3
cmp rcx, 0x27
jbe 0x14009c53f
call fcn.140117518
int3
mov rcx, rax
call fcn.1400ee124
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], 0xf
mov byte [rsp + 0x58], 0
lea rcx, [rbp + 0x28]
call fcn.14001bf00
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x28], rax
lea rcx, [rbp + 0x28]
call fcn.1400e86f8
nop
mov rcx, qword [rbp + 0x4f0]
xor rcx, rsp
call fcn.1400ede60
add rsp, 0x600
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret