Function at 0x1401298e4
Capabilities:
Write file on windows

Disassembly:
test rcx, rcx
je 0x140129b9a
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x1401e7e78]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov byte [rsp + 0x50], r8b
mov rsi, r9
mov r15, rdx
mov r14, rcx
test rdx, rdx
je 0x140129b71
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor r8d, r8d
mov dword [rsp + 0x54], eax
movsxd rbx, eax
test rsi, rsi
je 0x14012995d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r13d, eax
xor r8d, r8d
jmp 0x140129960
mov r13d, r8d
movsxd rax, r13d
mov r12, r8
add rax, rbx
lea rcx, [rax + 0x28]
lea rcx, [rax + rcx*2]
cmp rcx, 0x400
jae 0x140129980
lea rdi, [rbp - 0x70]
jmp 0x140129997
call fcn.140120104
xor r8d, r8d
mov rdi, rax
mov r12, rax
test rax, rax
je 0x140129b71
mov rbx, r8
cmp byte [rsp + 0x50], r8b
je 0x140129a5a
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
mov r8, qword [rsp + 0x58]
movzx eax, word [rsp + 0x66]
movzx ecx, word [rsp + 0x64]
cmp r8, qword [r14 + 0x40]
jne 0x1401299ec
movzx r9d, word [rsp + 0x62]
lea rdx, str._i:_02i:_02i._03i
movzx r8d, word [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x68]
call fcn.14009be2c
jmp 0x140129a2e
movzx edx, word [rsp + 0x62]
movzx r10d, word [rsp + 0x60]
movzx r11d, word [rsp + 0x5e]
movzx r9d, word [rsp + 0x5a]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], ecx
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x30], edx
lea rdx, str._i__02i__02i__i:_02i:_02i._03i
mov dword [rsp + 0x28], r10d
movzx r8d, r8w
mov dword [rsp + 0x20], r11d
call fcn.14009be2c
movups xmm0, xmmword [rsp + 0x58]
lea rcx, [rsp + 0x68]
movdqu xmmword [r14 + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rbx, eax
lea rdx, [rsp + 0x68]
mov r8, rbx
mov rcx, rdi
call fcn.14013b6b0
xor r8d, r8d
test rsi, rsi
je 0x140129ab2
cmp word [rsi], r8w
je 0x140129ab2
mov qword [rsp + 0x38], r8
lea rcx, [rbx + rdi]
mov qword [rsp + 0x30], r8
lea eax, [r13*2 + 1]
add eax, r13d
or r9d, 0xffffffff
mov dword [rsp + 0x28], eax
mov r8, rsi
mov qword [rsp + 0x20], rcx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, 1
jle 0x140129aa8
dec eax
movsxd rcx, eax
add rbx, rcx
mov byte [rbx + rdi], 0x20
inc rbx
xor r8d, r8d
cmp word [r15], r8w
je 0x140129afc
mov eax, dword [rsp + 0x54]
lea rdx, [rbx + rdi]
mov qword [rsp + 0x38], r8
or r9d, 0xffffffff
mov qword [rsp + 0x30], r8
mov ecx, 0xfde9
mov r8, r15
lea eax, [rax + rax*2]
inc eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, 1
jle 0x140129af9
dec eax
movsxd rcx, eax
add rbx, rcx
xor r8d, r8d
cmp byte [rbp + 0x400], r8b
je 0x140129b12
mov eax, 0xa0d
mov word [rbx + rdi], ax
add rbx, 2
mov byte [rbx + rdi], r8b
cmp qword [r14 + 0x38], r8
je 0x140129b64
lea rcx, [rsp + 0x58]
call fcn.140128da8
lea rdx, [r14 + 0x50]
mov r8d, 0x1f4
lea rcx, [rsp + 0x58]
call fcn.140128e50
mov rcx, qword [r14 + 0x38]
lea r9, [rsp + 0x54]
xor eax, eax
mov dword [rsp + 0x54], ebx
mov r8d, ebx
mov qword [rsp + 0x20], rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [rsp + 0x58]
call fcn.140128dec
test r12, r12
je 0x140129b71
mov rcx, r12
call fcn.14012008c
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140139b10
mov rbx, qword [rsp + 0x4f0]
add rsp, 0x4a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret