Function at 0x140024e50
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
mov eax, 0x182d0
call fcn.1400417b0
sub rsp, rax
mov rax, qword [0x1400681b8]
xor rax, rsp
mov qword [rsp + 0x182c0], rax
mov r14, rcx
mov edi, r8d
lea rcx, [rsp + 0x60]
mov rsi, rdx
lea rbp, [rsp + 0x81f0]
call qword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
lea rcx, [rsi + 0xc]
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea rax, [rsp + 0x110]
mov ebx, 0x32
mov dword [rsp + 0x28], ebx
lea r9, str.HH:mm.ss
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetTimeFormatW]
lea r9, str._yyyy_MM_dd
xor edx, edx
sub ebx, eax
lea r8, [rsp + 0x50]
cdqe
mov dword [rsp + 0x28], ebx
lea rcx, [rsp + rax*2 + 0x10e]
mov qword [rsp + 0x20], rcx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetDateFormatW]
cmp dword [0x1400815f0], 0
lea rax, [0x140058800]
mov r9, qword [rsi]
lea r10, [0x140058804]
cmovne r10, rax
lea rcx, [rsp + 0x81f0]
mov rax, qword [rsi + 0x58]
mov ebx, 0x8063
mov qword [rsp + 0x38], r10
lea r8, [rax + rdi*2]
mov eax, 0x77777777
imul dword [rsp + 0x60]
mov qword [rsp + 0x30], r8
lea r8, str.__13I64d___s__UTC_d___s_s
sub edx, dword [rsp + 0x60]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
lea rax, [rsp + 0x110]
mov dword [rsp + 0x28], edx
mov edx, ebx
mov qword [rsp + 0x20], rax
call fcn.140024d10
mov edx, 0x4031
lea rax, [rsp + 0x81f0]
mov ecx, edx
nop
cmp word [rax], 0
je 0x140024fa0
add rax, 2
sub rcx, 1
jne 0x140024f90
sub rdx, rcx
xor edi, edi
test rcx, rcx
mov r8d, edi
cmovne r8, rdx
je 0x140024fb6
add r8, r8
jmp 0x140024fb9
mov r8, rdi
cmp dword [0x1400815f4], edi
jne 0x140025028
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x180]
mov qword [rsp + 0x30], rdi
lea r8, [rsp + 0x81f0]
mov dword [rsp + 0x28], 0x1fffc
mov r9d, 0xffffffff
xor edx, edx
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x140025007
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400250ca
mov rcx, rbx
lea rax, [rsp + 0x180]
cmp byte [rax], dil
je 0x140025020
inc rax
sub rcx, 1
jne 0x140025012
sub rbx, rcx
test rcx, rcx
jmp 0x140025094
mov eax, dword [0x140081804]
dec eax
cmp eax, 1
ja 0x1400250aa
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x180]
mov qword [rsp + 0x30], rdi
lea r8, [rsp + 0x81f0]
mov dword [rsp + 0x28], 0x1fffc
mov r9d, 0xffffffff
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x140024ffc
mov rdx, rbx
lea rax, [rsp + 0x180]
nop
cmp byte [rax], dil
je 0x14002508e
inc rax
sub rdx, 1
jne 0x140025080
sub rbx, rdx
test rdx, rdx
mov rax, rdi
lea rbp, [rsp + 0x180]
cmovne rax, rbx
mov r8, rdi
cmovne r8, rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rdi
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140024ffc
xor eax, eax
mov rcx, qword [rsp + 0x182c0]
xor rcx, rsp
call fcn.140041820
add rsp, 0x182d0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret