Function at 0x140096084
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.1400ba8b0
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.14005c420
xor r12d, r12d
cmp eax, r12d
jne 0x1400960e8
cmp byte [0x14010b849], r12b
je 0x140096489
cmp byte [0x1400ec040], r12b
je 0x140096489
mov r8, qword [rsp + 0x5180]
lea r9, [rsp + 0x5188]
lea rcx, [rsp + 0x1920]
mov edx, 0xc00
call fcn.1400abefc
mov r13d, 0x1000000
lea rdx, [rsp + 0xd20]
lea rcx, [rsp + 0x1920]
mov r8, r13
mov word [rsp + 0x311e], r12w
call fcn.140073a88
mov rcx, rdi
call fcn.14006b2b4
lea rdx, [rsp + 0x120]
mov r8, r13
mov rcx, rax
call fcn.140073a88
mov esi, 0x400
lea rdx, [rsp + 0x120]
lea rcx, [rsp + 0x120]
mov r8d, esi
call fcn.140053b54
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.1400a8550
mov r11, r12
lea rax, [0x1400fec20]
movzx eax, word [r11 + rax]
add r11, 2
mov word [rsp + r11 + 0x51e], ax
cmp ax, r12w
jne 0x1400961e7
cmp byte [0x14010b849], r12b
je 0x140096248
lea rdi, [0x14010b849]
mov rcx, rdi
call fcn.140052a24
cmp rax, rdi
jne 0x140096235
lea rcx, [rsp + 0x520]
call fcn.140052abc
mov rdx, rax
jmp 0x14009623d
lea rdx, [rsp + 0x520]
mov r8, r13
mov rcx, rdi
call fcn.140073ac0
lea rdx, [0x1400c8b90]
lea rcx, [rsp + 0x520]
xor r8d, r8d
call fcn.1400319b0
mov rdi, rax
cmp rax, r12
jne 0x1400962a5
lea rdx, [0x1400c88c8]
lea rcx, [rsp + 0x520]
xor r8d, r8d
call fcn.1400319b0
mov rdi, rax
cmp rax, r12
jne 0x1400962a5
mov ecx, 0x1f5
call fcn.140061d2c
lea rdx, [rsp + 0x520]
mov rcx, rax
call fcn.140095e68
jmp 0x140096489
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call fcn.1400aa2d4
lea rsi, [0x14012ada0]
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 0x1400962e2
add r11, r13
test ecx, ecx
jne 0x1400962ce
cmp eax, r12d
je 0x140096322
cmp byte [rsp + 0x120], r12b
je 0x140096322
mov ecx, 0x6b
call fcn.140061c38
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.1400ac480
cmp bl, r12b
jne 0x14009633c
mov rcx, r12
mov al, byte [rsp + rcx + 0x120]
mov byte [rcx + rsi], al
add rcx, r13
cmp al, r12b
jne 0x14009632a
lea r8, [rsp + 0xb0]
lea rdx, str._r_n_s
mov rcx, rdi
call fcn.1400ac480
lea r8, [rsp + 0xd20]
lea rdx, [0x1400cc678]
mov rcx, rdi
call fcn.1400ac480
lea rdx, str.LimitLog
xor r8d, r8d
mov rcx, rbp
call fcn.14005c420
cmp eax, r12d
je 0x140096481
lea rdx, str.LogSize
mov r8d, 0x3e8
mov rcx, rbp
call fcn.14005c420
mov rcx, rdi
mov ebx, eax
shl ebx, 0xa
call fcn.1400aa1b8
sub eax, ebx
cmp eax, r12d
jle 0x140096481
lea edx, [rax + 0x2710]
xor r8d, r8d
mov rcx, rdi
call fcn.1400aa2d4
lea rcx, [rsp + 0x3120]
mov r8, rdi
mov edx, 0x2000
call fcn.1400ac878
mov rcx, rdi
call fcn.1400aa1b8
lea rcx, [rsp + 0x3120]
mov r9, rdi
mov r8d, 0x2000
mov rdx, r13
mov esi, r12d
mov ebp, eax
call fcn.1400a9fd4
mov rbx, rax
jmp 0x14009644f
xor r8d, r8d
mov edx, esi
call fcn.1400aa2d4
lea rcx, [rsp + 0x3120]
movsxd r8, ebx
mov r9, rdi
mov rdx, r13
call fcn.1400aa698
add ebp, ebx
xor r8d, r8d
mov rcx, rdi
mov edx, ebp
add esi, ebx
call fcn.1400aa2d4
lea rcx, [rsp + 0x3120]
mov r9, rdi
mov r8d, 0x2000
mov rdx, r13
call fcn.1400a9fd4
mov ebx, eax
mov rcx, rdi
cmp eax, r12d
jne 0x140096403
call fcn.1400ac104
xor r8d, r8d
mov edx, esi
mov rcx, rdi
call fcn.1400aa2d4
mov rcx, rdi
call fcn.1400b2f44
mov ecx, eax
call fcn.1400ab224
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, rdi
call fcn.1400aa410
mov rcx, qword [rsp + 0x5120]
xor rcx, rsp
call fcn.1400a8530
add rsp, 0x5138
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret