Function at 0x14003e660
Capabilities:
Write file on windows

Disassembly:
mov rcx, qword [rcx + 8]
jmp 0x14003e660
mov rax, rsp
push rbp
lea rbp, [rax - 0x2f8]
sub rsp, 0x3f0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14010d268]
xor rax, rsp
mov qword [rbp + 0x2e0], rax
mov rdi, rdx
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov qword [rsp + 0x20], rax
mov r8, qword [rbx + 0x88]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
sub rax, r8
cmp rax, 0x3c
jl 0x14003e854
xchg qword [rbx + 0x88], rcx
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x30]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
nop
movups xmm0, xmmword [rbp - 0x30]
movups xmmword [rbp + 0x28], xmm0
movups xmm1, xmmword [rbp - 0x20]
movups xmmword [rbp + 0x38], xmm1
mov eax, dword [rbp - 0x10]
mov dword [rbp + 0x48], eax
lea r9, [rbp + 0x28]
lea r8, str._Y__m__d__H:_M:_S
mov edx, 0x64
lea rcx, [rbp + 0x270]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_strftime]
lea rcx, str.__LOG_ERROR__________n
mov qword [rsp + 0x30], rcx
mov rax, rcx
inc rax
cmp byte [rax], 0
jne 0x14003e720
sub rax, rcx
mov qword [rsp + 0x38], rax
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rsi, rax
lea rax, [rbp + 0x270]
mov qword [rbp - 8], rax
lea rdx, [rbx + 8]
cmp qword [rbx + 0x20], 0x10
jb 0x14003e758
mov rdx, qword [rbx + 8]
mov rcx, qword [rbx + 0x18]
mov qword [rbp + 8], rdx
mov qword [rbp + 0x10], rcx
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14003e771
mov rcx, qword [rdi]
mov rax, qword [rdi + 0x10]
mov qword [rbp + 0x18], rcx
mov qword [rbp + 0x20], rax
mov qword [rsp + 0x40], 0xbba
lea rax, [rbp - 8]
mov qword [rsp + 0x48], rax
xor ecx, ecx
mov qword [rbp + 0x60], rcx
lea rbx, vtable.fmt::v5::basic_memory_buffer_char__500__class_std::allocator_char__.0
mov qword [rbp + 0x50], rbx
lea rax, [rbp + 0x70]
mov qword [rbp + 0x58], rax
mov qword [rbp + 0x68], 0x1f4
movaps xmm1, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x70], xmm1
mov dword [rbp - 0x80], ecx
lea rax, [rbp + 0x50]
mov qword [rbp - 0x78], rax
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rcx
mov dword [rbp - 0x58], ecx
mov dword [rbp - 0x50], ecx
mov dword [rbp - 0x40], ecx
movdqa xmmword [rsp + 0x60], xmm1
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x60]
call fcn.1400319f0
nop
mov rcx, qword [rbp - 0x60]
call fcn.14005f1b8
mov r9, rsi
mov r8, qword [rbp + 0x60]
mov edx, 1
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
nop
mov qword [rbp + 0x50], rbx
lea rax, [rbp + 0x70]
mov rcx, qword [rbp + 0x58]
cmp rcx, rax
je 0x14003e854
mov rdx, qword [rbp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003e84e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003e84e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005f1b8
nop
mov rcx, qword [rbp + 0x2e0]
xor rcx, rsp
call fcn.14005f850
lea r11, [rsp + 0x3f0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret