Function at 0x1000da598
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, [0x100003188]
mov bpl, 4
cmp r10, r13
je 0x1000da5f7
test byte [r10 + 0x1c], bpl
je 0x1000da5f7
cmp byte [r10 + 0x19], bpl
jb 0x1000da5f7
mov rcx, qword [r10 + 0x10]
mov edx, 0xbe
mov r8, r14
call fcn.10001c7b8
mov r10, qword [0x1001653b8]
mov rax, qword [rdi + 0x38]
cmp r10, r13
je 0x1000da630
test byte [r10 + 0x1c], bpl
je 0x1000da630
cmp byte [r10 + 0x19], 5
jb 0x1000da630
mov rcx, qword [r10 + 0x10]
mov r9, rax
mov edx, 0xbf
mov r8, r14
shr r9, 0x20
mov dword [rsp + 0x20], eax
call fcn.10001e8b4
mov r10, qword [0x1001653b8]
cmp byte [rdi + 0x48], 0
mov r15d, 1
je 0x1000da822
mov r9d, dword [rdi + 0x68]
test r9d, r9d
je 0x1000da814
cmp r10, r13
je 0x1000da670
test byte [r10 + 0x1c], bpl
je 0x1000da670
cmp byte [r10 + 0x19], 5
jb 0x1000da670
mov rcx, qword [r10 + 0x10]
mov edx, 0xc0
mov r8, r14
call fcn.10001c7dc
mov edx, 0x20000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
jne 0x1000da68c
xor eax, eax
jmp 0x1000daa9c
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 0x1000da6c0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1000da685
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.1000d3504
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 0x1000da794
mov rax, qword [0x1001653b8]
cmp rax, r13
je 0x1000da685
test byte [rax + 0x1c], bpl
je 0x1000da685
cmp byte [rax + 0x19], 2
jb 0x1000da685
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.10001c7dc
jmp 0x1000da685
mov r9d, dword [rsp + 0x80]
cmp r9d, 0x10000
je 0x1000da7e7
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1000da685
test byte [rcx + 0x1c], bpl
je 0x1000da685
cmp byte [rcx + 0x19], 2
jb 0x1000da685
mov rcx, qword [rcx + 0x10]
mov edx, 0xc2
mov r8, r14
mov dword [rsp + 0x20], 0x10000
call fcn.10001e8b4
jmp 0x1000da685
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1000da814
test byte [rcx + 0x1c], bpl
je 0x1000da814
cmp byte [rcx + 0x19], bpl
jb 0x1000da814
mov r9, qword [rdi + 0x38]
mov rcx, qword [rcx + 0x10]
mov edx, 0xc3
mov r8, r14
call fcn.10001d680
cmp byte [rdi + 0x48], 0
je 0x1000da822
mov eax, r15d
jmp 0x1000daa9c
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 0x1000da685
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 0x1000da881
mov rcx, rbx
jmp 0x1000da6b8
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.1000d33d4
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 0x1000da907
mov rax, qword [0x1001653b8]
cmp rax, r13
je 0x1000da8f7
test byte [rax + 0x1c], bpl
je 0x1000da8f7
cmp byte [rax + 0x19], 2
jb 0x1000da8f7
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.10001c7dc
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000da879
mov r9d, dword [rsp + 0x80]
cmp r9d, r15d
je 0x1000da944
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1000da8f7
test byte [rcx + 0x1c], bpl
je 0x1000da8f7
cmp byte [rcx + 0x19], 2
jb 0x1000da8f7
mov edx, 0xc5
mov rcx, qword [rcx + 0x10]
mov r8, r14
mov dword [rsp + 0x20], r15d
call fcn.10001e8b4
jmp 0x1000da8f7
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.1000d3504
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 0x1000da9bb
mov rax, qword [0x1001653b8]
cmp rax, r13
je 0x1000da8f7
test byte [rax + 0x1c], bpl
je 0x1000da8f7
cmp byte [rax + 0x19], 2
jb 0x1000da8f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0xc6
jmp 0x1000da8e1
mov r9d, dword [rsp + 0x80]
cmp r9d, r15d
je 0x1000da9f6
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1000da8f7
test byte [rcx + 0x1c], bpl
je 0x1000da8f7
cmp byte [rcx + 0x19], 2
jb 0x1000da8f7
mov edx, 0xc7
jmp 0x1000da931
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 0x1000daa15
xor edi, edi
jmp 0x1000daa24
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edi, eax
test eax, eax
jne 0x1000daa5d
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1000daa5d
test byte [rcx + 0x1c], bpl
je 0x1000daa5d
cmp byte [rcx + 0x19], 2
jb 0x1000daa5d
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.10001c7dc
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 0x1000daa9a
test byte [rcx + 0x1c], bpl
je 0x1000daa9a
cmp byte [rcx + 0x19], bpl
jb 0x1000daa9a
mov rcx, qword [rcx + 0x10]
mov edx, 0xc9
mov r8, r14
call fcn.10001c7b8
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