Function at 0x10019510
Capabilities:
Delete drive layout via ioctl
Unmount volume via ioctl
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov dword [ebp - 0xa4], eax
mov eax, dword [esi + 0x10]
mul dword [esi + 0xc]
push edi
push 0
mov edi, ecx
mov ecx, dword [esi + 0x14]
push ecx
push edx
push eax
mov dword [ebp - 0xa0], 0
call fcn.1000de70
mov ecx, dword [esi + 4]
push ecx
mov ecx, dword [esi]
push ecx
push edx
push eax
call fcn.1000de70
mov ebx, edx
mov dword [ebp - 0xac], eax
test ebx, ebx
ja 0x10019582
jb 0x10019573
cmp eax, 0x10000
jae 0x10019582
mov dword [ebp - 0x98], 0x14
jmp 0x10019612
push 0
lea edx, [ebp - 0x9c]
push edx
push 0
push 0
push 0
push 0
push 0x90018
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x100195af
mov dword [ebp - 0x98], 7
jmp 0x10019612
push 0
lea eax, [ebp - 0x9c]
push eax
push 0
push 0
push 0
push 0
push 0x7c100
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov ecx, eax
add esp, 4
mov dword [ebp - 0xa0], ecx
test ecx, ecx
jne 0x10019648
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x98], 9
test edi, edi
je 0x1001961d
push 0
lea ecx, [ebp - 0x9c]
push ecx
push 0
push 0
push 0
push 0
push 0x9001c
push edi
call ebx
test edi, edi
je 0x1001961d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x10019631
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000d340
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14]
push eax
push 0
push ecx
call sub.msvcrt.dll_memset
push 0x88
lea ecx, [ebp - 0x94]
push 0
push ecx
call sub.msvcrt.dll_memset
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp - 0xa0]
add esp, 0x18
push 0
lea edx, [ebp - 0x9c]
push edx
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0xac]
xor esi, esi
push esi
lea edx, [ebp - 0x9c]
push edx
push esi
sub eax, 0x10000
push esi
push 0x88
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x94]
push eax
sbb ebx, esi
push 0x7c010
mov dword [ebp - 0x80], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
mov dword [ebp - 0x94], 4
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x8c], 0x10000
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], 0x101010b
call ebx
test eax, eax
jne 0x10019701
mov dword [ebp - 0x98], 1
jmp 0x100195f5
push esi
lea ecx, [ebp - 0x9c]
push ecx
push esi
push esi
push esi
push esi
push 0x90020
push edi
call ebx
push esi
lea edx, [ebp - 0x9c]
push edx
push esi
push esi
push esi
push esi
push 0x9001c
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.fmifs
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, esi
jne 0x10019748
mov edi, 1
jmp 0x10019783
push str.Format
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
jne 0x1001975f
mov edi, 1
jmp 0x1001977c
mov ecx, dword [ebp - 0xa4]
push 0x10016c80
push 1
push 0x100259a0
push 0x10025808
push esi
push ecx
call eax
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x98], edi
cmp edi, esi
jne 0x1001961d
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push 1
push eax
call sym.dcapi.dll_dc_set_mbr
add esp, 0xc
mov dword [ebp - 0x98], eax
jmp 0x1001961d