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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x77d260c4]
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.77d0d4ed
test eax, eax
jge 0x77d0dc7d
mov ecx, eax
and ecx, 0x1fff0000
cmp ecx, 0x70000
jne 0x77d0dc75
movzx eax, ax
mov dword [ebp - 0x60], eax
jmp 0x77d0df26
lea eax, [ebp - 0xc]
push eax
push 0x77d0df50
lea eax, [ebp - 0x5c]
push 0x28
push eax
call fcn.77cac57c
xor ecx, ecx
add esp, 0x10
cmp eax, ecx
jl 0x77d0dc62
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 0x77d0dcc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x77d0dc75
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 0x77d0dd03
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 0x77d0ddc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 1
mov dword [ebp - 0x60], eax
jne 0x77d0df1d
mov edi, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0x400
jmp 0x77d0dd82
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 0x77d0dda5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
mov dword [ebp - 0x60], eax
jne 0x77d0dd56
push dword [ebp - 0x64]
add ebx, ebx
jmp 0x77d0dd6d
cmp eax, 0xea
jne 0x77d0df00
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 0x77d0dd22
mov dword [ebp - 0x60], 0xe
jmp 0x77d0df00
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 0x77d0dd99
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.77cac425
xor ebx, ebx
cmp eax, ebx
jge 0x77d0de2e
mov ecx, eax
and ecx, 0x1fff0000
cmp ecx, 0x70000
jne 0x77d0defd
movzx eax, ax
jmp 0x77d0defd
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 0x77d0de5e
mov eax, dword [esi]
push 0x77d0df3c
push 0x10
add eax, 0x48
push eax
call fcn.77cac425
cmp eax, ebx
jl 0x77d0de12
push dword [esi]
push dword [ebp - 0x68]
call fcn.77d0d43d
cmp eax, ebx
mov dword [ebp - 0x60], eax
jne 0x77d0df00
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 0x77d0def6
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 0x77d0def0
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 0x77d0df00
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x64], 0
je 0x77d0df1d
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.77cd6011
leave
ret 8