Function at 0x14000500c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x110]
sub rsp, 0x210
mov rax, qword [0x14002b418]
xor rax, rsp
mov qword [rbp + 0x100], rax
xor r15d, r15d
mov rbx, rdx
cmp byte [0x14002befc], r15b
mov rdi, rcx
jne 0x140005254
xorps xmm0, xmm0
lea rcx, [rsp + 0x68]
movups xmmword [rsp + 0x68], xmm0
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movzx ecx, word [rsp + 0x76]
movzx edx, word [rsp + 0x74]
movzx r9d, word [rsp + 0x72]
movzx r8d, word [rsp + 0x70]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
lea rcx, [rbp - 0x70]
mov dword [rsp + 0x20], edx
lea rdx, str._i:_02i:_02i._03i_u
call fcn.140002288
test rbx, rbx
je 0x1400050a4
cmp word [rbx], r15w
jne 0x1400050ab
lea rbx, str._nullptr__n
mov qword [rsp + 0x48], r15
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], r15
mov r9, rbx
mov qword [rsp + 0x30], r15
mov r8, rdi
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call fcn.140005fa8
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test eax, eax
jle 0x14000524a
mov rcx, qword [0x14002bf08]
test rcx, rcx
jne 0x14000516e
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x14002bf08], rax
test rax, rax
jne 0x14000513b
or rcx, 0xffffffffffffffff
mov qword [0x14002bf08], rcx
cmp byte [0x14002bf10], r15b
jne 0x140005185
mov rdx, qword [rsp + 0x50]
mov r8d, edi
call fcn.14000527c
jmp 0x14000524a
xor ecx, ecx
lea rdx, [rsp + 0x78]
mov dword [rbp - 0x78], ecx
xorps xmm0, xmm0
mov word [rbp - 0x74], cx
mov rcx, rax
movups xmmword [rsp + 0x78], xmm0
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov rcx, qword [0x14002bf08]
test eax, eax
jne 0x140005120
mov byte [0x14002bf10], 1
jmp 0x140005120
cmp rcx, 0xffffffffffffffff
jne 0x140005120
cmp byte [0x14002befd], r15b
je 0x14000524a
xor ecx, ecx
jmp 0x140005129
cmp byte [0x14002befd], r15b
je 0x14000519d
mov rdx, qword [rsp + 0x50]
mov r8d, edi
xor ecx, ecx
call fcn.14000527c
call qword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov r8, qword [rsp + 0x50]
mov r9d, edi
mov qword [rsp + 0x38], r15
mov ecx, eax
mov qword [rsp + 0x30], r15
xor edx, edx
mov dword [rsp + 0x28], r15d
mov r14d, eax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
cmp eax, 0xc8
jb 0x1400051e7
lea ecx, [rsi + 1]
call fcn.140005f30
mov rbx, rax
test rax, rax
je 0x14000524a
jmp 0x1400051eb
lea rbx, [rbp + 0x30]
mov qword [rsp + 0x38], r15
lea eax, [rsi + 1]
mov qword [rsp + 0x30], r15
mov r9d, edi
mov byte [rsi + rbx], r15b
xor edx, edx
mov r8, qword [rsp + 0x50]
mov ecx, r14d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x140005239
mov rcx, qword [0x14002bf08]
lea r9, [rsp + 0x60]
mov r8d, esi
mov qword [rsp + 0x20], r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rax, [rbp + 0x30]
cmp rbx, rax
je 0x14000524a
mov rcx, rbx
call fcn.140005eb8
lea rcx, [rsp + 0x50]
call fcn.14000612c
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.140008010
mov rbx, qword [rsp + 0x250]
add rsp, 0x210
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret