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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1830
call fcn.004e1f60
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x180c]
push esi
push edi
mov edi, dword [ebp + 0x10]
or esi, 0xffffffff
push 0x802
push 0
push eax
mov dword [ebp - 0x1830], ebx
mov dword [ebp - 0x182c], edi
call fcn.004e46b0
push 0x802
lea eax, [ebp - 0x1008]
push 0
push eax
call fcn.004e46b0
push ebx
mov dword [ebp - 0x1824], 0
mov dword [ebp - 0x1820], 0
mov dword [edi], esi
call fcn.00429e10
add esp, 0x1c
test eax, eax
jne 0x45ddec
pop edi
lea eax, [esi + 0x1f]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x180c]
push eax
lea eax, [ebp - 0x1008]
push eax
push ebx
call fcn.00426bf0
mov ebx, eax
add esp, 0xc
mov dword [ebp - 0x1828], ebx
test ebx, ebx
jne 0x45dfaa
push eax
push eax
push 3
push eax
push 3
push eax
lea eax, [ebp - 0x180c]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x181c], ebx
cmp ebx, 0xffffffff
jne 0x45de41
mov ebx, 1
mov esi, eax
jmp 0x45dfaa
mov edi, dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
lea eax, [ebp - 0x1824]
push 0
push eax
push 0xc
lea eax, [ebp - 0x1818]
push eax
push 0
push 0
push 0x2d1080
push ebx
call edi
test eax, eax
jne 0x45de71
lea ebx, [eax + 1]
jmp 0x45dfa4
cmp dword [ebp - 0x1814], 0xffffffff
jne 0x45de84
mov ebx, 0x1e
jmp 0x45dfa4
push 0x24c0
call fcn.004e240a
add esp, 4
mov dword [ebp - 0x1820], eax
test eax, eax
jne 0x45dea3
lea ebx, [eax + 1]
jmp 0x45dfa4
push 0x24c0
push 0
push eax
call fcn.004e46b0
mov esi, dword [ebp - 0x1820]
lea eax, [ebp - 0x1824]
add esp, 0xc
push 0
push eax
push 0x24c0
push esi
push 0
push 0
push 0x70050
push ebx
call edi
test eax, eax
jne 0x45dee0
lea ebx, [eax + 1]
jmp 0x45dfa4
push 0x800
xor ebx, ebx
lea eax, [ebp - 0x804]
push ebx
push eax
call fcn.004e46b0
add esp, 0xc
xor edi, edi
cmp dword [esi + 4], ebx
jbe 0x45de7a
mov eax, dword [ebp - 0x1820]
add esi, 0x48
nop dword [eax + eax]
mov ecx, dword [esi]
test ecx, ecx
je 0x45df45
mov eax, dword [esi - 8]
or eax, dword [esi - 4]
je 0x45df3f
inc ebx
cmp ebx, 1
jne 0x45df3f
push ecx
push dword [ebp - 0x1814]
lea eax, [ebp - 0x804]
push str.DeviceHarddisk_dPartition_d
push eax
call fcn.004054c0
add esp, 0x10
mov eax, dword [ebp - 0x1820]
inc edi
add esi, 0x90
cmp edi, dword [eax + 4]
jb 0x45df10
cmp ebx, 1
jne 0x45de7a
lea eax, [ebp - 0x804]
push eax
call fcn.00427440
mov ebx, dword [ebp - 0x182c]
add esp, 4
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x45df9e
call fcn.00427e60
push 1
lea ecx, [ebp - 0x804]
mov dword [ebx], eax
push ecx
push eax
call fcn.00425a00
add esp, 0xc
test eax, eax
jne 0x45df9e
mov dword [ebx], 0xffffffff
lea ebx, [eax + 1]
jmp 0x45dfa4
mov ebx, dword [ebp - 0x1828]
mov esi, dword [ebp - 0x181c]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 0x1820]
mov edi, eax
call fcn.004e2413
add esp, 4
cmp esi, 0xffffffff
je 0x45dfcc
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, 0x516968
lea eax, [ebp - 0x1008]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45dffd
test dx, dx
je 0x45dff9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45dffd
add eax, 4
add ecx, 4
test dx, dx
jne 0x45dfd7
xor eax, eax
jmp 0x45e002
sbb eax, eax
or eax, 1
test eax, eax
je 0x45e01b
lea eax, [ebp - 0x1008]
push eax
push dword [ebp - 0x1830]
call fcn.0042aae0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e1f40
mov esp, ebp
pop ebp
ret