Function at 0x1400015a0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140007010]
xor rax, rsp
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
xor edi, edi
cmp qword [0x1400070d8], rdi
jne 0x140001710
lea edx, [rdi + 0xa]
lea r8d, [rdi + 0x40]
lea rcx, str.logs.txt
call qword [sym.imp.MSVCP140.dll_struct__iobuf____ptr64___cdecl_std::_Fiopen_char_const____ptr64__int__int_]
mov rbx, rax
test rax, rax
je 0x140001710
mov byte [0x1400070d4], 1
mov byte [0x1400070c9], dil
lea rcx, [0x140007058]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_stream_buffer_pointers]
mov r9, qword [rsp + 0x50]
mov qword [rsp + 0x30], r9
mov r8, qword [rsp + 0x58]
mov qword [rsp + 0x28], r8
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rdx
lea rcx, [0x140007058]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_char____ptr64____ptr64__char____ptr64____ptr64__int____ptr64__char____ptr64____ptr64__char____ptr64____ptr64__int____ptr64____ptr64]
mov qword [0x1400070d8], rbx
mov rax, qword [0x140007a00]
mov qword [0x1400070cc], rax
mov qword [0x1400070c0], rdi
lea rdx, [rsp + 0x40]
lea rcx, [0x140007058]
call qword [sym.imp.MSVCP140.dll_public:_class_std::locale___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::getloc_void____ptr64]
nop
mov rcx, rax
call fcn.140002880
mov rbx, rax
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::codecvt_base::always_noconv_void_const___ptr64]
test al, al
je 0x1400016b6
mov qword [0x1400070c0], rdi
jmp 0x1400016cb
mov qword [0x1400070c0], rbx
lea rcx, [0x140007058]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400016ee
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x1400016ee
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
mov rax, qword [0x140007050]
movsxd rcx, dword [rax + 4]
lea rbx, [0x140007050]
add rcx, rbx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
jmp 0x140001732
mov rax, qword [0x140007050]
movsxd rcx, dword [rax + 4]
lea rbx, [0x140007050]
add rcx, rbx
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, [0x140001500]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, [0x140007058]
call fcn.1400025b0
test rax, rax
jne 0x140001789
mov rax, qword [0x140007050]
movsxd rcx, dword [rax + 4]
add rcx, rbx
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140002b70
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret