Function at 0x1400c6b10
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r13
push r14
mov rbp, rsp
sub rsp, 0x50
and dword [rbp + 0x30], 0
mov rdi, rcx
mov r10, qword [0x14016d090]
lea r12, [0x14016d090]
lea r13, [0x14014e5a0]
mov r14b, 4
cmp r10, r12
je 0x1400c6b71
test byte [r10 + 0x1c], r14b
je 0x1400c6b71
cmp byte [r10 + 0x19], r14b
jb 0x1400c6b71
mov rcx, qword [r10 + 0x10]
mov edx, 0xbc
mov r8, r13
call fcn.140004968
mov r10, qword [0x14016d090]
mov rax, qword [rdi + 0x38]
cmp r10, r12
je 0x1400c6baa
test byte [r10 + 0x1c], r14b
je 0x1400c6baa
cmp byte [r10 + 0x19], 5
jb 0x1400c6baa
mov rcx, qword [r10 + 0x10]
mov r9, rax
shr r9, 0x20
mov edx, 0xbd
mov r8, r13
mov dword [rsp + 0x20], eax
call fcn.14000f654
mov r10, qword [0x14016d090]
cmp byte [rdi + 0x48], 0
je 0x1400c6d8c
mov r9d, dword [rdi + 0x68]
test r9d, r9d
je 0x1400c6d7c
cmp r10, r12
je 0x1400c6be4
test byte [r10 + 0x1c], r14b
je 0x1400c6be4
cmp byte [r10 + 0x19], 5
jb 0x1400c6be4
mov rcx, qword [r10 + 0x10]
mov edx, 0xbe
mov r8, r13
call fcn.140004988
mov edx, 0x20000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
jne 0x1400c6c00
xor eax, eax
jmp 0x1400c6ff7
xor r9d, r9d
lea rbx, [rax + 0xffff]
xor r8d, r8d
xor ecx, ecx
and rbx, 0xffffffffffff0000
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp - 8], rax
test rax, rax
jne 0x1400c6c34
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400c6bf9
xor edx, edx
mov r8d, 0x10000
mov rcx, rbx
call sub.msvcrt.dll_memset
mov r8d, dword [rdi + 0x68]
mov rcx, rbx
mov rdx, qword [rdi + 0x60]
call sub.msvcrt.dll_memcpy
mov rax, qword [rdi + 0x38]
lea r9, [rbp - 0x20]
and dword [rdi + 0x68], 0
mov r8d, 0x10000
mov dword [rbp - 0x10], eax
mov rdx, rbx
lea rcx, [rax + 0x10000]
shr rax, 0x20
mov qword [rdi + 0x38], rcx
mov rcx, qword [rdi]
mov dword [rbp - 0xc], eax
call fcn.1400b9d08
mov rcx, qword [rdi]
lea r8, [rbp + 0x30]
mov r9d, 1
lea rdx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x1400c6d00
mov rax, qword [0x14016d090]
cmp rax, r12
je 0x1400c6bf9
test byte [rax + 0x1c], r14b
je 0x1400c6bf9
cmp byte [rax + 0x19], 2
jb 0x1400c6bf9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14016d090]
mov edx, 0xbf
mov r9d, eax
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.140004988
jmp 0x1400c6bf9
mov r9d, dword [rbp + 0x30]
cmp r9d, 0x10000
je 0x1400c6d4f
mov rcx, qword [0x14016d090]
cmp rcx, r12
je 0x1400c6bf9
test byte [rcx + 0x1c], r14b
je 0x1400c6bf9
cmp byte [rcx + 0x19], 2
jb 0x1400c6bf9
mov rcx, qword [rcx + 0x10]
mov edx, 0xc0
mov r8, r13
mov dword [rsp + 0x20], 0x10000
call fcn.14000f654
jmp 0x1400c6bf9
mov rcx, qword [0x14016d090]
cmp rcx, r12
je 0x1400c6d7c
test byte [rcx + 0x1c], r14b
je 0x1400c6d7c
cmp byte [rcx + 0x19], r14b
jb 0x1400c6d7c
mov r9, qword [rdi + 0x38]
mov edx, 0xc1
mov rcx, qword [rcx + 0x10]
mov r8, r13
call fcn.14000f8a4
cmp byte [rdi + 0x48], 0
je 0x1400c6d8c
mov eax, 1
jmp 0x1400c6ff7
mov rax, qword [rdi + 0x158]
mov edx, 0x20000
sub rax, 0x200
xor ecx, ecx
mov qword [rdi + 0x38], rax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400c6bf9
xor r9d, r9d
lea rsi, [rax + 0xffff]
xor r8d, r8d
xor ecx, ecx
and rsi, 0xffffffffffff0000
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp - 8], rax
test rax, rax
jne 0x1400c6de7
mov rcx, rbx
jmp 0x1400c6c2c
mov rcx, qword [rdi]
lea r9, [rbp - 0x20]
and dword [rbp - 0x10], 0
mov r8d, 0x200
and dword [rbp - 0xc], 0
mov rdx, rsi
call fcn.1400b98c4
mov rcx, qword [rdi]
lea r8, [rbp + 0x30]
mov r9d, 1
lea rdx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1400c6e67
mov rax, qword [0x14016d090]
cmp rax, r12
je 0x1400c6e58
test byte [rax + 0x1c], r14b
je 0x1400c6e58
cmp byte [rax + 0x19], 2
jb 0x1400c6e58
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0xc2
mov rcx, qword [0x14016d090]
mov r9d, eax
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.140004988
mov rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400c6ddf
mov r9d, dword [rbp + 0x30]
mov r8d, 0x200
cmp r9d, r8d
je 0x1400c6ea6
mov rcx, qword [0x14016d090]
cmp rcx, r12
je 0x1400c6e58
test byte [rcx + 0x1c], r14b
je 0x1400c6e58
cmp byte [rcx + 0x19], 2
jb 0x1400c6e58
mov edx, 0xc3
mov dword [rsp + 0x20], r8d
mov rcx, qword [rcx + 0x10]
mov r8, r13
call fcn.14000f654
jmp 0x1400c6e58
mov rax, qword [rdi + 0x38]
lea r9, [rbp - 0x20]
mov rcx, qword [rdi]
mov rdx, rsi
mov dword [rbp - 0x10], eax
shr rax, 0x20
mov dword [rbp - 0xc], eax
call fcn.1400b9d08
mov rcx, qword [rdi]
lea r8, [rbp + 0x30]
mov r9d, 1
lea rdx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1400c6f12
mov rax, qword [0x14016d090]
cmp rax, r12
je 0x1400c6e58
test byte [rax + 0x1c], r14b
je 0x1400c6e58
cmp byte [rax + 0x19], 2
jb 0x1400c6e58
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0xc4
jmp 0x1400c6e42
mov r9d, dword [rbp + 0x30]
mov eax, 0x200
cmp r9d, eax
je 0x1400c6f52
mov rcx, qword [0x14016d090]
cmp rcx, r12
je 0x1400c6e58
test byte [rcx + 0x1c], r14b
je 0x1400c6e58
cmp byte [rcx + 0x19], 2
jb 0x1400c6e58
mov edx, 0xc5
mov dword [rsp + 0x20], eax
jmp 0x1400c6e98
add qword [rdi + 0x38], rax
xor r9d, r9d
mov rdx, qword [rdi + 0x38]
xor r8d, r8d
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1400c6f71
xor edi, edi
jmp 0x1400c6f80
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edi, eax
test eax, eax
jne 0x1400c6fb9
mov rcx, qword [0x14016d090]
cmp rcx, r12
je 0x1400c6fb9
test byte [rcx + 0x1c], r14b
je 0x1400c6fb9
cmp byte [rcx + 0x19], 2
jb 0x1400c6fb9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14016d090]
mov edx, 0xc6
mov r9d, eax
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.140004988
mov rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [0x14016d090]
cmp rcx, r12
je 0x1400c6ff5
test byte [rcx + 0x1c], r14b
je 0x1400c6ff5
cmp byte [rcx + 0x19], r14b
jb 0x1400c6ff5
mov rcx, qword [rcx + 0x10]
mov edx, 0xc7
mov r8, r13
call fcn.140004968
mov eax, edi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret