Function at 0x10128a6
Capabilities:
Get disk information

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], HeapDestroy
mov ebx, 0x300
cmp dword [ebp - 4], 0x7a
je 0x101272c
cmp dword [ebp - 4], 0x18
jne 0x1012793
push ebx
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x101277b
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 0x1012787
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 0x1012720
mov dword [ebp - 4], HeapDestroy
jmp 0x10128db
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x1012790
mov dword [eax], ebx
mov dword [ebp - 4], edi
cmp dword [ebp - 4], edi
je 0x10128db
cmp dword [ebp - 4], 0x18
je 0x10128db
push 0x7a
pop eax
cmp dword [ebp - 4], eax
je 0x10128db
mov dword [ebp - 4], eax
mov dword [ebp + 0xc], 0xa8
cmp dword [ebp - 4], 0x7a
je 0x10127c8
cmp dword [ebp - 4], 0x18
jne 0x101281f
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 0x1012850
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 0x101281c
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 0x10127bc
mov dword [ebp - 4], edi
cmp dword [ebp - 4], edi
jne 0x10128c9
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 0x1012859
mov dword [ebp - 4], HeapDestroy
jmp 0x10128c9
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 0x10128c7
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 0x101287e
xor edi, edi
cmp dword [ebp - 8], edi
je 0x10128db
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