Function at 0x4013be
Capabilities:
Delete drive layout via ioctl
Read file on windows
Write file on windows

Disassembly:
push ebp
push edi
push esi
mov esi, 1
push ebx
sub esp, 0x288
mov ebp, dword [esp + 0x2a0]
mov edi, dword [esp + 0x2ac]
push dword [esp + 0x29c]
push str..PHYSICALDRIVE_d
lea ebx, [esp + 0x210]
push ebx
call sub.msvcrt.dll_sprintf
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push ebx
call sub.KERNEL32.dll_CreateFileA
add esp, 0xc
cmp eax, 0xffffffff
mov ebx, eax
jne 0x401425
push str.Accessing_physical_drive
xor si, si
call fcn.00401376
jmp 0x401658
push edi
push eax
call fcn.004012e0
pop edx
cmp eax, 0x200
pop ecx
je 0x40145c
push 0x200
xor esi, esi
push edi
push ebx
call fcn.004012e0
pop edx
pop ecx
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
push str.Error:_Sector_size_of_this_drive_is__d__must_be__d_n
add eax, 0x40
push eax
call sub.msvcrt.dll_fprintf
add esp, 0x10
test edi, edi
je 0x40149c
push 0
lea eax, [esp + 8]
push eax
push 0
push 0
push 0
push 0
push 0x7c100
push ebx
call sub.KERNEL32.dll_DeviceIoControl
test eax, eax
jne 0x401642
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push str.failed_to_nuke_n
call sub.msvcrt.dll_fputs
pop edi
pop ebp
jmp 0x401642
test esi, esi
je 0x4014f2
push 0
lea eax, [esp + 4]
push eax
push 0x200
lea eax, [esp + 0x14]
push eax
push ebx
call sub.KERNEL32.dll_ReadFile
test eax, eax
jne 0x4014ca
push str.Reading_raw_drive
xor esi, esi
call fcn.00401376
pop ecx
jmp 0x4014f2
mov eax, dword [esp]
cmp eax, 0x200
je 0x4014f2
push 0x200
xor esi, esi
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
push str.Error:_ReadFile_on_drive_only_got__d_of__d_bytes_n
add eax, 0x40
push eax
call sub.msvcrt.dll_fprintf
add esp, 0x10
cmp dword [esp + 0x2a4], 0
je 0x40153a
test esi, esi
je 0x40153a
mov edx, dword [0x405fa4]
cmp edx, 0x1bd
jbe 0x401527
mov eax, dword [sym.imp.msvcrt.dll__iob]
xor esi, esi
add eax, 0x40
push eax
push str.Error:_MBR_will_not_fit__not_writing_n
call sub.msvcrt.dll_fputs
pop eax
pop edx
jmp 0x40153a
lea eax, [esp + 8]
push edx
push 0x405fc0
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp dword [esp + 0x2a8], 0
je 0x401573
mov eax, ebp
shl eax, 4
cmp byte [esp + eax + 0x1b6], 0x80
je 0x401573
xor edx, edx
lea ecx, [esp + 0x1c6]
lea eax, [ebp - 1]
cmp edx, eax
setne al
dec al
inc edx
and al, 0x80
mov byte [ecx], al
add ecx, 0x10
cmp edx, 3
jle 0x40155c
test esi, esi
je 0x401642
push 0
push 0
push 0
push ebx
call sub.KERNEL32.dll_SetFilePointer
push 0
lea ebp, [esp + 4]
push ebp
push 0x200
lea edi, [esp + 0x14]
push edi
push ebx
call sub.KERNEL32.dll_WriteFile
test eax, eax
jne 0x4015a9
push str.Writing_MBR
jmp 0x401610
mov eax, dword [esp]
mov edx, dword [sym.imp.msvcrt.dll__iob]
cmp eax, 0x200
je 0x4015c9
push 0x200
push eax
lea eax, [edx + 0x40]
push str.Error:_WriteFile_on_drive_only_wrote__d_of__d_bytes_n
jmp 0x401637
push 0x200
push 0x200
lea eax, [esp + 0x210]
push eax
lea eax, [edx + 0x40]
push str.WriteFile_to__s_wrote__d_of__d_bytes_n
push eax
call sub.msvcrt.dll_fprintf
push 0
push 0
push 0
push ebx
call sub.KERNEL32.dll_SetFilePointer
push 0
push ebp
push 0x200
push edi
push ebx
call sub.KERNEL32.dll_ReadFile
add esp, 0x14
test eax, eax
jne 0x40161a
push str.Reading_raw_drive
call fcn.00401376
pop eax
xor esi, esi
jmp 0x401642
mov eax, dword [esp]
cmp eax, 0x200
je 0x401642
push 0x200
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
push str.Error:_ReadFile_on_drive_only_got__d_of__d_bytes_n
add eax, 0x40
push eax
xor esi, esi
call sub.msvcrt.dll_fprintf
add esp, 0x10
push ebx
call sub.KERNEL32.dll_CloseHandle
test eax, eax
jne 0x401659
push str.CloseFile_on_drive
xor esi, esi
call fcn.00401376
pop eax
add esp, 0x288
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret