Function at 0x140096244
Capabilities:
Clear file content
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r12
push r13
mov eax, 0x5138
call fcn.1400baa60
sub rsp, rax
mov rax, qword [0x1400e0920]
xor rax, rsp
mov qword [rsp + 0x5120], rax
mov bl, dl
mov rdi, rcx
lea rbp, [0x1400c40d8]
lea rdx, [0x1400c4a60]
xor r8d, r8d
mov rcx, rbp
call fcn.14005c490
xor r12d, r12d
cmp eax, r12d
jne 0x1400962a8
cmp byte [0x14010b879], r12b
je 0x140096649
cmp byte [0x1400ec040], r12b
je 0x140096649
mov r8, qword [rsp + 0x5180]
lea r9, [rsp + 0x5188]
lea rcx, [rsp + 0x1920]
mov edx, 0xc00
call fcn.1400ac0ac
mov r13d, 0x1000000
lea rdx, [rsp + 0xd20]
lea rcx, [rsp + 0x1920]
mov r8, r13
mov word [rsp + 0x311e], r12w
call fcn.140073c10
mov rcx, rdi
call fcn.14006b38c
lea rdx, [rsp + 0x120]
mov r8, r13
mov rcx, rax
call fcn.140073c10
mov esi, 0x400
lea rdx, [rsp + 0x120]
lea rcx, [rsp + 0x120]
mov r8d, esi
call fcn.140053b90
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
lea rax, [rsp + 0x40]
mov edi, 0x32
lea r8, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
mov ecx, esi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetTimeFormatA]
lea rax, [rsp + 0x78]
lea r8, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
mov ecx, esi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetDateFormatA]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x78]
lea rdx, str._s__s
lea rcx, [rsp + 0xb0]
call fcn.1400a8700
mov r11, r12
lea rax, [0x1400fec20]
movzx eax, word [r11 + rax]
add r11, 2
mov word [rsp + r11 + 0x51e], ax
cmp ax, r12w
jne 0x1400963a7
cmp byte [0x14010b879], r12b
je 0x140096408
lea rdi, [0x14010b879]
mov rcx, rdi
call fcn.140052a60
cmp rax, rdi
jne 0x1400963f5
lea rcx, [rsp + 0x520]
call fcn.140052af8
mov rdx, rax
jmp 0x1400963fd
lea rdx, [rsp + 0x520]
mov r8, r13
mov rcx, rdi
call fcn.140073c48
lea rdx, [0x1400c8b90]
lea rcx, [rsp + 0x520]
xor r8d, r8d
call fcn.140031a0c
mov rdi, rax
cmp rax, r12
jne 0x140096465
lea rdx, [0x1400c88c8]
lea rcx, [rsp + 0x520]
xor r8d, r8d
call fcn.140031a0c
mov rdi, rax
cmp rax, r12
jne 0x140096465
mov ecx, 0x1f5
call fcn.140061d94
lea rdx, [rsp + 0x520]
mov rcx, rax
call fcn.140096028
jmp 0x140096649
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call fcn.1400aa484
lea rsi, [0x14012a220]
lea r11, [rsp + 0x120]
mov rdx, rsi
mov r13d, 1
sub rdx, r11
movzx eax, byte [r11]
movzx ecx, byte [r11 + rdx]
sub eax, ecx
jne 0x1400964a2
add r11, r13
test ecx, ecx
jne 0x14009648e
cmp eax, r12d
je 0x1400964e2
cmp byte [rsp + 0x120], r12b
je 0x1400964e2
mov ecx, 0x6b
call fcn.140061ca0
lea r8, [rsp + 0xb0]
lea rdx, str._r_n_r_n___________s___s__s_r_n
mov r9, rax
lea rax, [rsp + 0x120]
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.1400ac630
cmp bl, r12b
jne 0x1400964fc
mov rcx, r12
mov al, byte [rsp + rcx + 0x120]
mov byte [rcx + rsi], al
add rcx, r13
cmp al, r12b
jne 0x1400964ea
lea r8, [rsp + 0xb0]
lea rdx, str._r_n_s
mov rcx, rdi
call fcn.1400ac630
lea r8, [rsp + 0xd20]
lea rdx, [0x1400cc688]
mov rcx, rdi
call fcn.1400ac630
lea rdx, str.LimitLog
xor r8d, r8d
mov rcx, rbp
call fcn.14005c490
cmp eax, r12d
je 0x140096641
lea rdx, str.LogSize
mov r8d, 0x3e8
mov rcx, rbp
call fcn.14005c490
mov rcx, rdi
mov ebx, eax
shl ebx, 0xa
call fcn.1400aa368
sub eax, ebx
cmp eax, r12d
jle 0x140096641
lea edx, [rax + 0x2710]
xor r8d, r8d
mov rcx, rdi
call fcn.1400aa484
lea rcx, [rsp + 0x3120]
mov r8, rdi
mov edx, 0x2000
call fcn.1400aca28
mov rcx, rdi
call fcn.1400aa368
lea rcx, [rsp + 0x3120]
mov r9, rdi
mov r8d, 0x2000
mov rdx, r13
mov esi, r12d
mov ebp, eax
call fcn.1400aa184
mov rbx, rax
jmp 0x14009660f
xor r8d, r8d
mov edx, esi
call fcn.1400aa484
lea rcx, [rsp + 0x3120]
movsxd r8, ebx
mov r9, rdi
mov rdx, r13
call fcn.1400aa848
add ebp, ebx
xor r8d, r8d
mov rcx, rdi
mov edx, ebp
add esi, ebx
call fcn.1400aa484
lea rcx, [rsp + 0x3120]
mov r9, rdi
mov r8d, 0x2000
mov rdx, r13
call fcn.1400aa184
mov ebx, eax
mov rcx, rdi
cmp eax, r12d
jne 0x1400965c3
call fcn.1400ac2b4
xor r8d, r8d
mov edx, esi
mov rcx, rdi
call fcn.1400aa484
mov rcx, rdi
call fcn.1400b30f4
mov ecx, eax
call fcn.1400ab3d4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, rdi
call fcn.1400aa5c0
mov rcx, qword [rsp + 0x5120]
xor rcx, rsp
call fcn.1400a86e0
add rsp, 0x5138
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret