Function at 0x1002b7d0
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x1004c024]
xor eax, ebp
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.1002ac70
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x1002b8ae
mov word [ebp - 0x60], 0
push 0x3e
push 0
lea ecx, [ebp - 0x5e]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
push 0x1004088c
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.MSVCR80.dll__swprintf]
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x1002b8ae
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x9c], eax
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x36a
push 0x100408b4
call fcn.100287f0
add esp, 8
push eax
push str._s:_Failed_to_get_partition_number:_index:__d__start_sec:__I64d.
mov edx, dword [ebp - 0x9c]
push edx
mov eax, dword [ebp - 0x9c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
call edx
add esp, 0x18
xor eax, eax
jmp 0x1002bbea
mov dword [ebp - 0x18], 0x4028
mov eax, dword [ebp - 0x18]
push eax
call fcn.1000f6bd
add esp, 4
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x18]
push edx
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x1c], 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x7400c
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1002bab8
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x80], edx
mov eax, dword [ebp - 0x80]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [ebp - 0x18], 0x40c0
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.1000f6bd
add esp, 4
mov dword [ebp - 0x84], eax
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp - 0x68]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x68]
push ecx
push 0
push 0
push 0x70050
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
jne 0x1002b9e4
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp - 0x88]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0xa0], eax
push 0x393
push 0x10040904
call fcn.100287f0
add esp, 8
push eax
push 0x10040910
mov eax, dword [ebp - 0xa0]
push eax
mov ecx, dword [ebp - 0xa0]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
add esp, 0xc
xor eax, eax
jmp 0x1002bbea
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x6c], 0
jmp 0x1002b9fc
mov edx, dword [ebp - 0x6c]
add edx, 1
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x6c]
cmp ecx, dword [eax + 4]
jae 0x1002ba60
mov edx, dword [ebp - 0x6c]
imul edx, edx, 0x90
mov eax, dword [ebp - 0x64]
lea ecx, [eax + edx + 0x30]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x70]
push 0
push 0x200
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [edx + 8]
push ecx
call sub.ntdll.dll__alldiv
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], edx
mov edx, dword [ebp - 0xa8]
cmp edx, dword [ebp + 0x10]
jne 0x1002ba5e
mov eax, dword [ebp - 0xa4]
cmp eax, dword [ebp + 0x14]
jne 0x1002ba5e
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x10], edx
jmp 0x1002ba60
jmp 0x1002b9f3
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x8c], edx
mov eax, dword [ebp - 0x8c]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
cmp dword [ebp - 0x10], 0xffffffff
jne 0x1002baae
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x98]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x98]
mov edx, dword [eax + 0x50]
call edx
jmp 0x1002bbea
mov eax, 1
jmp 0x1002bbea
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
jne 0x1002bb21
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0x90]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0xac], eax
push 0x3b2
push 0x10040940
call fcn.100287f0
add esp, 8
push eax
push 0x1004094c
mov eax, dword [ebp - 0xac]
push eax
mov ecx, dword [ebp - 0xac]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
add esp, 0xc
xor eax, eax
jmp 0x1002bbea
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x74], 0
jmp 0x1002bb39
mov edx, dword [ebp - 0x74]
add edx, 1
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x74]
cmp ecx, dword [eax]
jae 0x1002bb9a
mov edx, dword [ebp - 0x74]
shl edx, 5
mov eax, dword [ebp - 4]
lea ecx, [eax + edx + 8]
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x78]
push 0
push 0x200
mov eax, dword [edx + 4]
push eax
mov ecx, dword [edx]
push ecx
call sub.ntdll.dll__alldiv
xor edx, edx
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], edx
mov eax, dword [ebp - 0xb4]
cmp eax, dword [ebp + 0x10]
jne 0x1002bb98
mov ecx, dword [ebp - 0xb0]
cmp ecx, dword [ebp + 0x14]
jne 0x1002bb98
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x10], eax
jmp 0x1002bb9a
jmp 0x1002bb30
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
cmp dword [ebp - 0x10], 0xffffffff
jne 0x1002bbe5
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x98]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x98]
mov eax, dword [edx + 0x50]
call eax
jmp 0x1002bbea
mov eax, 1
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.1000f6c2
mov esp, ebp
pop ebp
ret 0x10