Function at 0x4cac60
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1044
call fcn.004e1f60
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [ebp - 0x1024], eax
mov eax, dword [ebp + 0x10]
push 0x802
mov dword [ebp - 0x1038], eax
lea eax, [ebp - 0x808]
push 0
push eax
mov dword [ebp - 0x103c], ebx
call fcn.004e46b0
push 0x802
lea eax, [ebp - 0x100c]
push 0
push eax
call fcn.004e46b0
push ebx
mov dword [ebp - 0x1018], 0
xor edi, edi
call fcn.00429e10
add esp, 0x1c
test eax, eax
jne 0x4cace6
lea eax, [edi + 0x1e]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x100c]
push eax
push ebx
call fcn.00426bf0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4caf8f
push esi
push eax
push eax
push 3
push eax
push 3
push eax
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x101c], eax
cmp eax, 0xffffffff
jne 0x4cad32
mov ebx, 1
jmp 0x4caf48
push 0x200
call fcn.004e240a
mov esi, eax
add esp, 4
mov dword [ebp - 0x1018], esi
test esi, esi
je 0x4cad28
push 0
lea eax, [ebp - 0x1044]
push eax
push 0x200
push esi
push 0
push 0
push 0x700a0
push dword [ebp - 0x101c]
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x4cad28
mov eax, dword [esi + 0x14]
imul eax, dword [esi + 0x10]
push 0x24c0
mov dword [ebp - 0x1020], eax
call fcn.004e240a
mov esi, eax
add esp, 4
mov dword [ebp - 0x1014], esi
test esi, esi
jne 0x4cada3
lea ebx, [eax + 1]
mov edi, eax
jmp 0x4caf48
push 0x24c0
push 0
push esi
call fcn.004e46b0
add esp, 0xc
lea eax, [ebp - 0x1044]
push 0
push eax
push 0x24c0
push esi
push 0
push 0
push 0x70050
push dword [ebp - 0x101c]
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
jne 0x4cade5
lea ebx, [eax + 1]
mov edi, esi
jmp 0x4caf48
mov ecx, dword [esi + 4]
xor edx, edx
mov dword [ebp - 0x1010], ecx
test ecx, ecx
je 0x4caf3d
mov eax, dword [ebp - 0x103c]
lea ecx, [esi + 0x40]
mov dword [ebp - 0x1034], eax
mov eax, dword [ebp - 0x1040]
mov dword [ebp - 0x102c], eax
mov eax, dword [ebp - 0x103c]
mov dword [ebp - 0x1030], eax
mov eax, dword [ebp - 0x1040]
mov dword [ebp - 0x1028], eax
mov eax, dword [ebp - 0x1010]
cmp dword [ecx + 8], 0
je 0x4cae6c
mov esi, dword [ecx]
mov eax, esi
mov edi, dword [ecx + 4]
or eax, edi
je 0x4cae66
inc edx
cmp edx, 1
jne 0x4cae66
mov eax, dword [ecx - 8]
mov dword [ebp - 0x102c], eax
mov eax, dword [ecx - 4]
mov dword [ebp - 0x1034], eax
mov dword [ebp - 0x1028], esi
mov dword [ebp - 0x1030], edi
mov eax, dword [ebp - 0x1010]
add ecx, 0x90
sub eax, 1
mov dword [ebp - 0x1010], eax
jne 0x4cae31
cmp edx, 1
jne 0x4caf3d
mov eax, dword [ebp - 0x1020]
mov ecx, dword [ebp - 0x1028]
add ecx, dword [ebp - 0x102c]
cdq
mov edi, eax
mov esi, edx
mov eax, dword [ebp - 0x1030]
adc eax, dword [ebp - 0x1034]
add ecx, 0xffffffff
push esi
push edi
adc eax, 0xffffffff
push eax
push ecx
call fcn.004e2b80
add eax, 1
push esi
push edi
adc edx, 0
push edx
push eax
call fcn.004e2b40
mov esi, dword [ebp - 0x1024]
mov edi, eax
mov dword [ebp - 0x1024], edi
add edi, 0x49000
mov dword [ebp - 0x1020], edx
mov dword [esi], eax
mov eax, dword [ebp - 0x1018]
mov dword [esi + 4], edx
mov edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x18]
mov eax, dword [esi + 4]
adc eax, 0
cmp edx, eax
jl 0x4caf1b
jg 0x4caf02
cmp ecx, edi
jbe 0x4caf1b
sub ecx, dword [ebp - 0x1024]
mov eax, dword [ebp - 0x1038]
sbb edx, dword [ebp - 0x1020]
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x4caf42
mov eax, dword [ebp - 0x1038]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x4caf42
mov ebx, 0x1e
mov edi, dword [ebp - 0x1014]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push edi
mov esi, eax
call fcn.004e2413
push dword [ebp - 0x1018]
call fcn.004e2413
add esp, 8
push dword [ebp - 0x101c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x100c]
push eax
push dword [ebp - 0x103c]
call fcn.0042aae0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, ebx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004e1f40
mov esp, ebp
pop ebp
ret