Function at 0x140127c90
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
push rbp
push rsi
push r12
sub rsp, 0x1c0
mov rax, qword [0x1401ea158]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp dword [rcx + 0x68], 0
mov r12d, r8d
mov rbp, rdx
mov rsi, rcx
je 0x140127f84
mov qword [r11 - 0x20], rbx
mov qword [r11 - 0x38], r14
xor r14d, r14d
mov qword [rsp + 0x30], r14
lea rcx, str.C:Program_FilesAndrea_ElectronicsAEAPORen.log
lea r8d, [r14 + 1]
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rbx, rax
jne 0x140127d49
lea ecx, [rax + 2]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x30], r14
lea r8d, [r14 + 1]
lea rcx, str.C:Program_FilesAndrea_ElectronicsAEAPORen.log
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x140127f74
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x1b0], rdi
mov qword [rsp + 0x1a8], r13
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
lea rax, [rsp + 0x80]
lea r9, str.ddMMMyy
lea r8, [rsp + 0x58]
xor edx, edx
mov ecx, 0x400
mov dword [rsp + 0x28], 0x28
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetDateFormatW]
or rcx, 0xffffffffffffffff
xor eax, eax
mov qword [rsp + 0x38], r14
lea rdi, [rsp + 0x80]
lea r13, [0x14019a300]
lea r8, [rsp + 0x80]
repne scasw ax, word [rdi]
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x30], r13
not rcx
mov edx, 0x400
mov dword [rsp + 0x28], 0x14
mov r9d, ecx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rax, [rsp + 0x80]
lea r9, str.HH:mm:ss
lea r8, [rsp + 0x58]
xor edx, edx
mov ecx, 0x400
mov dword [rsp + 0x28], 0x28
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetTimeFormatW]
or rcx, 0xffffffffffffffff
xor eax, eax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r13
lea rdi, [rsp + 0x80]
lea r8, [rsp + 0x80]
repne scasw ax, word [rdi]
lea rax, [rsp + 0x68]
mov edx, 0x400
not rcx
mov dword [rsp + 0x28], 0x14
mov qword [rsp + 0x20], rax
mov r9d, ecx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp r12d, 0xffffffff
mov r13, qword [rsp + 0x1a8]
jne 0x140127eac
movzx eax, word [rsp + 0x66]
mov qword [rsp + 0x38], rbp
lea r9, [rsi + 0x78]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x68]
lea r8, str._s__s__s._i:__s_r_n
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa8]
lea rcx, [rsp + 0xc0]
mov edx, 0xc8
mov qword [rsp + 0x20], rax
call fcn.140148410
jmp 0x140127ef3
movzx eax, word [rsp + 0x66]
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x68]
lea r9, [rsi + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa8]
lea r8, str._s__s__s._i:__s___i__r_n
lea rcx, [rsp + 0xc0]
mov edx, 0xc8
mov qword [rsp + 0x20], rax
call fcn.140148410
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [rsp + 0x200], r14d
je 0x140127f31
lea r9, [rsp + 0x50]
lea rdx, [0x14019a4f4]
mov r8d, 2
mov rcx, rbx
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0xc0]
repne scasb al, byte [rdi]
lea r9, [rsp + 0x50]
lea rdx, [rsp + 0xc0]
not rcx
mov qword [rsp + 0x20], r14
lea r8, [rcx - 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x1b0]
mov rbx, qword [rsp + 0x1b8]
mov r14, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140144dc0
add rsp, 0x1c0
pop r12
pop rsi
pop rbp
ret