Function at 0x1400ee9cc
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 [0x14017d3a8]
lea r12, [0x14017d3a8]
lea r13, [0x14000d538]
mov r14b, 4
cmp r10, r12
je 0x1400eea2d
test byte [r10 + 0x1c], r14b
je 0x1400eea2d
cmp byte [r10 + 0x19], r14b
jb 0x1400eea2d
mov rcx, qword [r10 + 0x10]
mov edx, 0xbc
mov r8, r13
call fcn.14001dd24
mov r10, qword [0x14017d3a8]
mov rax, qword [rdi + 0x38]
cmp r10, r12
je 0x1400eea66
test byte [r10 + 0x1c], r14b
je 0x1400eea66
cmp byte [r10 + 0x19], 5
jb 0x1400eea66
mov rcx, qword [r10 + 0x10]
mov r9, rax
mov edx, 0xbd
mov r8, r13
shr r9, 0x20
mov dword [rsp + 0x20], eax
call fcn.1400285b4
mov r10, qword [0x14017d3a8]
cmp byte [rdi + 0x48], 0
je 0x1400eec4a
mov r9d, dword [rdi + 0x68]
test r9d, r9d
je 0x1400eec3a
cmp r10, r12
je 0x1400eeaa0
test byte [r10 + 0x1c], r14b
je 0x1400eeaa0
cmp byte [r10 + 0x19], 5
jb 0x1400eeaa0
mov rcx, qword [r10 + 0x10]
mov edx, 0xbe
mov r8, r13
call fcn.14001de24
mov edx, 0x20000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
jne 0x1400eeabc
xor eax, eax
jmp 0x1400eeeb5
xor r9d, r9d
lea rbx, [rax + 0xffff]
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
and rbx, 0xffffffffffff0000
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp - 8], rax
test rax, rax
jne 0x1400eeaf0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400eeab5
xor edx, edx
mov r8d, 0x10000
mov rcx, rbx
call sub.msvcrt.dll_memset
mov r8d, dword [rdi + 0x68]
mov rdx, qword [rdi + 0x60]
mov rcx, rbx
call sub.msvcrt.dll_memcpy
mov r11, qword [rdi + 0x38]
mov rcx, qword [rdi]
and dword [rdi + 0x68], 0
lea rax, [r11 + 0x10000]
mov dword [rbp - 0x10], r11d
shr r11, 0x20
lea r9, [rbp - 0x20]
mov r8d, 0x10000
mov rdx, rbx
mov qword [rdi + 0x38], rax
mov dword [rbp - 0xc], r11d
call fcn.1400e19b8
mov rcx, qword [rdi]
lea r8, [rbp + 0x30]
lea rdx, [rbp - 0x20]
mov r9d, 1
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 0x1400eebbe
mov rax, qword [0x14017d3a8]
cmp rax, r12
je 0x1400eeab5
test byte [rax + 0x1c], r14b
je 0x1400eeab5
cmp byte [rax + 0x19], 2
jb 0x1400eeab5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14017d3a8]
mov edx, 0xbf
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r13
call fcn.14001de24
jmp 0x1400eeab5
mov r9d, dword [rbp + 0x30]
cmp r9d, 0x10000
je 0x1400eec0d
mov rcx, qword [0x14017d3a8]
cmp rcx, r12
je 0x1400eeab5
test byte [rcx + 0x1c], r14b
je 0x1400eeab5
cmp byte [rcx + 0x19], 2
jb 0x1400eeab5
mov rcx, qword [rcx + 0x10]
mov edx, 0xc0
mov r8, r13
mov dword [rsp + 0x20], reloc.ADVAPI32.dll_TraceEvent
call fcn.1400285b4
jmp 0x1400eeab5
mov rcx, qword [0x14017d3a8]
cmp rcx, r12
je 0x1400eec3a
test byte [rcx + 0x1c], r14b
je 0x1400eec3a
cmp byte [rcx + 0x19], r14b
jb 0x1400eec3a
mov r9, qword [rdi + 0x38]
mov rcx, qword [rcx + 0x10]
mov edx, 0xc1
mov r8, r13
call fcn.140029954
cmp byte [rdi + 0x48], 0
je 0x1400eec4a
mov eax, 1
jmp 0x1400eeeb5
mov rax, qword [rdi + 0x158]
mov edx, 0x20000
xor ecx, ecx
sub rax, 0x200
mov qword [rdi + 0x38], rax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400eeab5
xor r9d, r9d
lea rsi, [rax + 0xffff]
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
and rsi, 0xffffffffffff0000
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp - 8], rax
test rax, rax
jne 0x1400eeca5
mov rcx, rbx
jmp 0x1400eeae8
mov rcx, qword [rdi]
and dword [rbp - 0x10], 0
and dword [rbp - 0xc], 0
lea r9, [rbp - 0x20]
mov r8d, 0x200
mov rdx, rsi
call fcn.1400e156c
mov rcx, qword [rdi]
lea r8, [rbp + 0x30]
lea rdx, [rbp - 0x20]
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1400eed25
mov rax, qword [0x14017d3a8]
cmp rax, r12
je 0x1400eed16
test byte [rax + 0x1c], r14b
je 0x1400eed16
cmp byte [rax + 0x19], 2
jb 0x1400eed16
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0xc2
mov rcx, qword [0x14017d3a8]
mov r9d, eax
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.14001de24
mov rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400eec9d
mov r9d, dword [rbp + 0x30]
mov r8d, 0x200
cmp r9d, r8d
je 0x1400eed64
mov rcx, qword [0x14017d3a8]
cmp rcx, r12
je 0x1400eed16
test byte [rcx + 0x1c], r14b
je 0x1400eed16
cmp byte [rcx + 0x19], 2
jb 0x1400eed16
mov edx, 0xc3
mov dword [rsp + 0x20], r8d
mov rcx, qword [rcx + 0x10]
mov r8, r13
call fcn.1400285b4
jmp 0x1400eed16
mov rax, qword [rdi + 0x38]
mov rcx, qword [rdi]
lea r9, [rbp - 0x20]
mov dword [rbp - 0x10], eax
shr rax, 0x20
mov rdx, rsi
mov dword [rbp - 0xc], eax
call fcn.1400e19b8
mov rcx, qword [rdi]
lea r8, [rbp + 0x30]
lea rdx, [rbp - 0x20]
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1400eedd0
mov rax, qword [0x14017d3a8]
cmp rax, r12
je 0x1400eed16
test byte [rax + 0x1c], r14b
je 0x1400eed16
cmp byte [rax + 0x19], 2
jb 0x1400eed16
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0xc4
jmp 0x1400eed00
mov r9d, dword [rbp + 0x30]
mov eax, 0x200
cmp r9d, eax
je 0x1400eee10
mov rcx, qword [0x14017d3a8]
cmp rcx, r12
je 0x1400eed16
test byte [rcx + 0x1c], r14b
je 0x1400eed16
cmp byte [rcx + 0x19], 2
jb 0x1400eed16
mov edx, 0xc5
mov dword [rsp + 0x20], eax
jmp 0x1400eed56
add qword [rdi + 0x38], rax
mov rcx, qword [rdi]
mov rdx, qword [rdi + 0x38]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1400eee2f
xor edi, edi
jmp 0x1400eee3e
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edi, eax
test eax, eax
jne 0x1400eee77
mov rcx, qword [0x14017d3a8]
cmp rcx, r12
je 0x1400eee77
test byte [rcx + 0x1c], r14b
je 0x1400eee77
cmp byte [rcx + 0x19], 2
jb 0x1400eee77
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14017d3a8]
mov edx, 0xc6
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r13
call fcn.14001de24
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 [0x14017d3a8]
cmp rcx, r12
je 0x1400eeeb3
test byte [rcx + 0x1c], r14b
je 0x1400eeeb3
cmp byte [rcx + 0x19], r14b
jb 0x1400eeeb3
mov rcx, qword [rcx + 0x10]
mov edx, 0xc7
mov r8, r13
call fcn.14001dd24
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