Function at 0x180026aa0
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push rbx
sub rsp, 0x3a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x380], rax
lea rdx, [rsp + 0x80]
mov r8d, pe_nt_image_headers64
mov ebx, ecx
call sym.PRDLL.dll_Undelete_CanUndoMBRFix
test eax, eax
je 0x180026d5c
mov qword [rsp + 0x398], rdi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x390], r12
xor r12d, r12d
mov edi, r12d
test rax, rax
je 0x180026d2e
lea rcx, [rsp + 0x40]
call fcn.180001a60
test eax, eax
je 0x180026d2e
mov edx, ebx
mov rbx, qword [rsp + 0x40]
lea r8d, [r12 + 1]
mov rcx, rbx
call fcn.180002620
test eax, eax
je 0x180026cf9
mov qword [rsp + 0x30], r12
lea r8d, [r12 + 1]
lea rcx, [rsp + 0x80]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x3b8], rbp
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x180026ce9
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x3c0], rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
nop word [rax + rax]
mov ecx, edi
mov r8d, 0x11
lea rdx, [rsp + rcx + 0x80]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
lea r8, [rsp + 0x50]
lea rdx, str._I64x
lea rcx, [rsp + 0x60]
call fcn.18002e1e4
lea r9, [rsp + 0x5c]
lea rdx, [rsp + 0x180]
mov r8d, 0x200
mov rcx, rbp
add edi, 0x18
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180026cca
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x48], r12d
mov qword [rsp + 0x40], rcx
test rbx, rbx
je 0x180026cca
lea rax, [rsp + 0x58]
test rax, rax
je 0x180026cca
bt dword [rbx + 0x10], 0x1f
jb 0x180026cca
mov rax, qword [rbx + 0x28]
add rax, rcx
mov qword [rsp + 0x40], rax
add rax, 0x200
cmp rax, qword [rbx + 0x18]
ja 0x180026cbb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [rsp + 0x40]
mov rcx, qword [rbx + 0x30]
lea r8, [rsp + 0x44]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x180026caa
mov rcx, qword [rbx + 0x30]
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x180]
mov r8d, 0x200
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180026c99
lea eax, [rsi - 4]
cmp edi, eax
jb 0x180026b90
jmp 0x180026cca
lea rdx, str.CachedDrive_Read:_WriteFile_error._n
mov rcx, rbx
call fcn.180001970
jmp 0x180026cca
lea rdx, str.CachedDrive_Read:_Error_positioning._n
mov rcx, rbx
call fcn.180001970
jmp 0x180026cca
lea rdx, str.CachedDrive_Read:_Last_byte_to_read_is_out_of_drive._n
mov rcx, rbx
call fcn.180001970
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rsi, qword [rsp + 0x3c0]
mov rcx, rbx
call fcn.180001b80
mov rbp, qword [rsp + 0x3b8]
test rbx, rbx
je 0x180026d2e
mov rcx, rbx
call fcn.180001b80
mov rcx, qword [rbx + 0x77]
test rcx, rcx
je 0x180026d1d
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdi, qword [rsp + 0x398]
mov r12, qword [rsp + 0x390]
mov eax, 1
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.18002d590
add rsp, 0x3a0
pop rbx
ret
mov eax, 1
jmp 0x180026d43