Function at 0x1000da6ec
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x50
and dword [rax + 8], 0
mov rdi, rcx
mov r10, qword [0x1001653b8]
lea r13, [0x1001653b8]
lea r14, [0x100003148]
mov bpl, 4
cmp r10, r13
je 0x1000da74b
test byte [r10 + 0x1c], bpl
je 0x1000da74b
cmp byte [r10 + 0x19], bpl
jb 0x1000da74b
mov rcx, qword [r10 + 0x10]
mov edx, 0xbe
mov r8, r14
call fcn.10001c854
mov r10, qword [0x1001653b8]
mov rax, qword [rdi + 0x38]
cmp r10, r13
je 0x1000da784
test byte [r10 + 0x1c], bpl
je 0x1000da784
cmp byte [r10 + 0x19], 5
jb 0x1000da784
mov rcx, qword [r10 + 0x10]
mov r9, rax
mov edx, 0xbf
mov r8, r14
shr r9, 0x20
mov dword [rsp + 0x20], eax
call fcn.10001d914
mov r10, qword [0x1001653b8]
cmp byte [rdi + 0x48], 0
mov r15d, 1
je 0x1000da976
mov r9d, dword [rdi + 0x68]
test r9d, r9d
je 0x1000da968
cmp r10, r13
je 0x1000da7c4
test byte [r10 + 0x1c], bpl
je 0x1000da7c4
cmp byte [r10 + 0x19], 5
jb 0x1000da7c4
mov rcx, qword [r10 + 0x10]
mov edx, 0xc0
mov r8, r14
call fcn.10001c878
mov edx, 0x20000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
jne 0x1000da7e0
xor eax, eax
jmp 0x1000dabf0
lea rbx, [rax + 0xffff]
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
xor ecx, ecx
and rbx, 0xffffffffffff0000
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x1000da814
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1000da7d9
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 [rsp + 0x40], r11d
shr r11, 0x20
lea r9, [rsp + 0x30]
mov r8d, 0x10000
mov rdx, rbx
mov qword [rdi + 0x38], rax
mov dword [rsp + 0x44], r11d
call fcn.1000d3658
mov rcx, qword [rdi]
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x30]
mov r9d, r15d
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x1000da8e8
mov rax, qword [0x1001653b8]
cmp rax, r13
je 0x1000da7d9
test byte [rax + 0x1c], bpl
je 0x1000da7d9
cmp byte [rax + 0x19], 2
jb 0x1000da7d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1001653b8]
mov edx, 0xc1
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r14
call fcn.10001c878
jmp 0x1000da7d9
mov r9d, dword [rsp + 0x80]
cmp r9d, 0x10000
je 0x1000da93b
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1000da7d9
test byte [rcx + 0x1c], bpl
je 0x1000da7d9
cmp byte [rcx + 0x19], 2
jb 0x1000da7d9
mov rcx, qword [rcx + 0x10]
mov edx, 0xc2
mov r8, r14
mov dword [rsp + 0x20], 0x10000
call fcn.10001d914
jmp 0x1000da7d9
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1000da968
test byte [rcx + 0x1c], bpl
je 0x1000da968
cmp byte [rcx + 0x19], bpl
jb 0x1000da968
mov r9, qword [rdi + 0x38]
mov rcx, qword [rcx + 0x10]
mov edx, 0xc3
mov r8, r14
call fcn.10001d71c
cmp byte [rdi + 0x48], 0
je 0x1000da976
mov eax, r15d
jmp 0x1000dabf0
mov rax, qword [rdi + 0x158]
mov r15d, 0x200
mov edx, 0x20000
sub rax, r15
xor ecx, ecx
mov qword [rdi + 0x38], rax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1000da7d9
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 [rsp + 0x48], rax
test rax, rax
jne 0x1000da9d5
mov rcx, rbx
jmp 0x1000da80c
mov rcx, qword [rdi]
and dword [rsp + 0x40], 0
and dword [rsp + 0x44], 0
lea r9, [rsp + 0x30]
mov r8d, r15d
mov rdx, rsi
call fcn.1000d3528
mov rcx, qword [rdi]
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x30]
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1000daa5b
mov rax, qword [0x1001653b8]
cmp rax, r13
je 0x1000daa4b
test byte [rax + 0x1c], bpl
je 0x1000daa4b
cmp byte [rax + 0x19], 2
jb 0x1000daa4b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0xc4
mov rcx, qword [0x1001653b8]
mov r9d, eax
mov r8, r14
mov rcx, qword [rcx + 0x10]
call fcn.10001c878
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000da9cd
mov r9d, dword [rsp + 0x80]
cmp r9d, r15d
je 0x1000daa98
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1000daa4b
test byte [rcx + 0x1c], bpl
je 0x1000daa4b
cmp byte [rcx + 0x19], 2
jb 0x1000daa4b
mov edx, 0xc5
mov rcx, qword [rcx + 0x10]
mov r8, r14
mov dword [rsp + 0x20], r15d
call fcn.10001d914
jmp 0x1000daa4b
mov rax, qword [rdi + 0x38]
mov rcx, qword [rdi]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x40], eax
shr rax, 0x20
mov r8d, r15d
mov rdx, rsi
mov dword [rsp + 0x44], eax
call fcn.1000d3658
mov rcx, qword [rdi]
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x30]
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1000dab0f
mov rax, qword [0x1001653b8]
cmp rax, r13
je 0x1000daa4b
test byte [rax + 0x1c], bpl
je 0x1000daa4b
cmp byte [rax + 0x19], 2
jb 0x1000daa4b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0xc6
jmp 0x1000daa35
mov r9d, dword [rsp + 0x80]
cmp r9d, r15d
je 0x1000dab4a
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1000daa4b
test byte [rcx + 0x1c], bpl
je 0x1000daa4b
cmp byte [rcx + 0x19], 2
jb 0x1000daa4b
mov edx, 0xc7
jmp 0x1000daa85
add qword [rdi + 0x38], r15
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 0x1000dab69
xor edi, edi
jmp 0x1000dab78
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edi, eax
test eax, eax
jne 0x1000dabb1
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1000dabb1
test byte [rcx + 0x1c], bpl
je 0x1000dabb1
cmp byte [rcx + 0x19], 2
jb 0x1000dabb1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1001653b8]
mov edx, 0xc8
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r14
call fcn.10001c878
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1000dabee
test byte [rcx + 0x1c], bpl
je 0x1000dabee
cmp byte [rcx + 0x19], bpl
jb 0x1000dabee
mov rcx, qword [rcx + 0x10]
mov edx, 0xc9
mov r8, r14
call fcn.10001c854
mov eax, edi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret