Function at 0x77d00f0a
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x77d1a0c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 2
push eax
mov dword [ebp - 0x7c], eax
push 3
lea eax, [ebp - 0xc]
xor edi, edi
push eax
mov dword [ebp - 0x64], edi
mov ebx, 0x400
mov dword [ebp - 0x78], 0x70
call fcn.77d007d7
test eax, eax
jge 0x77d00f69
mov ecx, eax
and ecx, 0x1fff0000
cmp ecx, 0x70000
jne 0x77d00f61
movzx eax, ax
mov dword [ebp - 0x60], eax
jmp 0x77d01212
lea eax, [ebp - 0xc]
push eax
push 0x77d0123c
lea eax, [ebp - 0x5c]
push 0x28
push eax
call fcn.77c9e2c6
xor ecx, ecx
add esp, 0x10
cmp eax, ecx
jl 0x77d00f4e
push ecx
push ecx
push 3
push ecx
push 3
push 0x80000000
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x68], eax
jne 0x77d00fac
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x77d00f61
xor ecx, ecx
push ecx
lea edx, [ebp - 0x74]
push edx
push 0xc
lea edx, [ebp - 0xa0]
push edx
push ecx
push ecx
push 0x2d1080
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x77d00fef
mov eax, dword [ebp - 0x9c]
mov ebx, dword [ebp - 0x78]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x70], eax
jmp 0x77d010b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 1
mov dword [ebp - 0x60], eax
jne 0x77d01209
mov edi, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0x400
jmp 0x77d0106e
xor eax, eax
push eax
lea ecx, [ebp - 0x74]
push ecx
push ebx
push dword [ebp - 0x64]
push eax
push eax
push 0x560000
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x77d01091
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
mov dword [ebp - 0x60], eax
jne 0x77d01042
push dword [ebp - 0x64]
add ebx, ebx
jmp 0x77d01059
cmp eax, 0xea
jne 0x77d011ec
mov eax, dword [ebp - 0x64]
mov ebx, dword [eax]
imul ebx, ebx, 0x18
add ebx, 0x20
push eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push ebx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 8
push dword [eax + 0x18]
call edi
test eax, eax
mov dword [ebp - 0x64], eax
jne 0x77d0100e
mov dword [ebp - 0x60], 0xe
jmp 0x77d011ec
mov eax, dword [ebp - 0x64]
mov edi, dword [eax]
imul edi, edi, 0x18
add edi, 0x20
or dword [ebp - 0x6c], 0xffffffff
lea ebx, [edi + 0x70]
mov dword [ebp - 0x60], 2
mov dword [ebp - 0x70], 1
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
test eax, eax
mov dword [esi], eax
je 0x77d01085
mov ecx, dword [ebp - 0x60]
mov dword [eax + 0x14], ebx
mov eax, dword [esi]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
mov ecx, dword [ebp - 0x6c]
mov dword [eax + 0x10], ecx
mov eax, dword [esi]
mov ecx, dword [ebp - 0x70]
mov dword [eax + 0x28], ecx
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esi]
push 4
add eax, 0x1c
push eax
call fcn.77c9e187
xor ebx, ebx
cmp eax, ebx
jge 0x77d0111a
mov ecx, eax
and ecx, 0x1fff0000
cmp ecx, 0x70000
jne 0x77d011e9
movzx eax, ax
jmp 0x77d011e9
mov eax, dword [esi]
push 0x10
add eax, 0x48
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x77d0114a
mov eax, dword [esi]
push 0x77d01228
push 0x10
add eax, 0x48
push eax
call fcn.77c9e187
cmp eax, ebx
jl 0x77d010fe
push dword [esi]
push dword [ebp - 0x68]
call fcn.77d00727
cmp eax, ebx
mov dword [ebp - 0x60], eax
jne 0x77d011ec
push 3
push 0x18
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0xa8]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.ntdll.dll_NtQueryVolumeInformationFile]
test eax, eax
jl 0x77d011e2
cmp dword [ebp - 0x64], 0
mov eax, dword [esi]
mov ecx, dword [ebp - 0x84]
mov dword [eax + 0x2c], ecx
mov eax, dword [esi]
mov ecx, dword [ebp - 0x80]
mov dword [eax + 0x30], ecx
mov eax, dword [esi]
mov ecx, dword [ebp - 0x8c]
mov dword [eax + 0x38], ecx
mov ecx, dword [ebp - 0x88]
mov dword [eax + 0x3c], ecx
mov ecx, dword [ebp - 0x94]
mov eax, dword [esi]
mov dword [eax + 0x40], ecx
mov ecx, dword [ebp - 0x90]
mov dword [eax + 0x44], ecx
je 0x77d011dc
mov eax, dword [esi]
mov dword [eax + 0x68], 0x68
mov esi, dword [esi]
mov eax, dword [esi + 0x68]
push edi
push dword [ebp - 0x64]
add eax, esi
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
and dword [ebp - 0x60], 0
jmp 0x77d011ec
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x64], 0
je 0x77d01209
push dword [ebp - 0x64]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x60]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.77cc744e
leave
ret 8