Function at 0x18002cc60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], r9
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov r15, r9
mov r13, rdx
mov rsi, rcx
xor edi, edi
mov ebx, edi
mov dword [rsp + 0x34], ebx
mov qword [rsp + 0x48], rdi
mov rcx, qword [rcx + 0x34]
test rcx, rcx
je 0x18002ccb0
lea rax, [rsp + 0x38]
test rax, rax
je 0x18002ccb0
lea r14, [rcx + 0x7f]
mov qword [rsp + 0x38], r14
jmp 0x18002ccb5
mov r14, qword [rsp + 0x38]
or r8, 0xffffffffffffffff
mov rdx, qword [rdx + 0x10]
call fcn.180002590
mov edx, dword [r14]
xor ecx, ecx
lea r9d, [r8 + 5]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x18002ce65
mov rax, qword [r13 + 0x8b]
mov r12d, edi
mov dword [rsp + 0x50], edi
mov ecx, dword [rax]
mov dword [rsp + 0x40], ecx
mov qword [r15], rdi
mov rax, qword [r13 + 8]
mov qword [rsp + 0x58], rax
mov r15, qword [rsp + 0x48]
nop word [rax + rax]
mov eax, r12d
cmp rax, qword [r13 + 8]
jae 0x18002ce50
xor edx, edx
mov rcx, qword [rsi + 0x2c]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x18002ce50
mov ecx, dword [r14]
mov rdx, rcx
mov r8d, dword [rsp + 0x40]
imul rdx, r8
inc r8d
mov dword [rsp + 0x40], r8d
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x38]
mov r8d, ecx
mov rcx, qword [rsi + 0x34]
call fcn.180002c60
test eax, eax
je 0x18002ce32
mov eax, dword [r14]
cmp dword [rsp + 0x54], eax
jne 0x18002ce32
mov ecx, dword [r13 + 8]
sub ecx, r12d
mov dword [rsp + 0x30], ecx
mov eax, dword [r14]
cmp ecx, eax
cmova ecx, eax
mov dword [rsp + 0x30], ecx
test edi, edi
je 0x18002cdd6
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x30]
mov r8d, ecx
mov rdx, qword [rsp + 0x38]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18002cdd2
lea rdx, str.Unformated_RecoverFile:_Error_writing_recover_file._n
mov rcx, rsi
call fcn.180016b80
mov dword [rsi], 0x2000000e
mov ebx, 1
mov dword [rsp + 0x34], ebx
jmp 0x18002ce50
mov ecx, dword [rsp + 0x30]
mov r8d, ecx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xc0]
add rcx, rax
mov rdx, qword [rsp + 0x38]
call fcn.18002dae0
mov r11d, dword [rsp + 0x30]
add r12d, r11d
mov dword [rsp + 0x50], r12d
mov rcx, qword [rsp + 0x48]
add rcx, r11
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x60], rcx
mov rcx, qword [rsp + 0x58]
sub rcx, r11
mov qword [rsp + 0x58], rcx
mov eax, r12d
mov rcx, qword [rsp + 0xb8]
mov qword [rcx], rax
jmp 0x18002cd10
lea rdx, str.Unformated_RecoverFile:_Error_reading_deleted_file_sector._n
mov rcx, rsi
call fcn.180016b80
mov dword [rsi], 0x2000000f
mov ebx, 1
mov dword [rsp + 0x34], ebx
xor edx, edx
mov r8d, 0x8000
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x18002ce6a
mov r15, qword [rsp + 0x48]
test edi, edi
je 0x18002ce91
test r15, r15
je 0x18002ce91
lea r9, [r13 + 0x18]
lea r8, [r13 + 0x28]
lea rdx, [r13 + 0x20]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18002ce99
test ebx, ebx
sete dil
mov eax, edi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret