Function at 0x10124de
Capabilities:
Get disk information via ioctl

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], 0x7a
mov ebx, 0x300
cmp dword [ebp - 4], 0x7a
je 0x101250c
cmp dword [ebp - 4], 0x18
jne 0x1012573
push ebx
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x101255b
push edi
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
push edi
push edi
push 0x70050
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1012567
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0xc]
mov dword [ebp - 4], eax
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0xc], edi
add ebx, 0x900
jmp 0x1012500
mov dword [ebp - 4], 0x7a
jmp 0x10126bb
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x1012570
mov dword [eax], ebx
mov dword [ebp - 4], edi
cmp dword [ebp - 4], edi
je 0x10126bb
cmp dword [ebp - 4], 0x18
je 0x10126bb
push 0x7a
pop eax
cmp dword [ebp - 4], eax
je 0x10126bb
mov dword [ebp - 4], eax
mov dword [ebp + 0xc], 0xa8
cmp dword [ebp - 4], 0x7a
je 0x10125a8
cmp dword [ebp - 4], 0x18
jne 0x10125ff
push dword [ebp + 0xc]
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [ebp - 8], ebx
cmp ebx, edi
je 0x1012630
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
push ebx
push edi
push edi
push 0x7400c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10125fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push edi
mov dword [ebp - 4], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
add dword [ebp + 0xc], 0x200
mov dword [ebp - 8], edi
jmp 0x101259c
mov dword [ebp - 4], edi
cmp dword [ebp - 4], edi
jne 0x10126a9
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
lea eax, [ebx - 1]
imul eax, eax, 0x90
add eax, 0xc0
push eax
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [ebp - 0xc], ecx
cmp ecx, edi
jne 0x1012639
mov dword [ebp - 4], 0x7a
jmp 0x10126a9
mov eax, dword [ebp - 8]
mov dword [ecx], edi
mov edx, dword [eax]
mov dword [ecx + 4], edx
mov edx, dword [eax + 4]
add eax, 8
mov dword [ecx + 8], edx
lea edi, [ecx + 0x30]
test ebx, ebx
jbe 0x10126a7
lea ecx, [edi + 0x10]
mov dword [ebp + 8], ebx
mov edx, 0x90
and dword [edi], 0
mov ebx, dword [eax]
mov dword [ecx - 8], ebx
mov ebx, dword [eax + 4]
mov dword [ecx - 4], ebx
mov ebx, dword [eax + 8]
mov dword [ecx], ebx
mov ebx, dword [eax + 0xc]
mov dword [ecx + 4], ebx
mov ebx, dword [eax + 0x14]
mov dword [ecx + 8], ebx
mov bl, byte [eax + 0x1b]
mov byte [ecx + 0xc], bl
mov bl, byte [eax + 0x18]
mov byte [ecx + 0x10], bl
mov bl, byte [eax + 0x19]
mov byte [ecx + 0x11], bl
mov bl, byte [eax + 0x1a]
mov byte [ecx + 0x12], bl
mov ebx, dword [eax + 0x10]
mov dword [ecx + 0x14], ebx
add eax, 0x20
add edi, edx
add ecx, edx
dec dword [ebp + 8]
jne 0x101265e
xor edi, edi
cmp dword [ebp - 8], edi
je 0x10126bb
push dword [ebp - 8]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 8