Function at 0x4dd670
Capabilities:
Get disk information via ioctl

Disassembly:
push 0xffffffffffffffff
push 0x575b96
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5d480c]
xor eax, esp
mov dword [esp + 0x230], eax
push ebp
push esi
push edi
mov eax, dword [0x5d480c]
xor eax, esp
push eax
lea eax, [esp + 0x244]
mov dword fs:[0], eax
mov eax, dword [esp + 0x260]
mov edi, dword [esp + 0x25c]
mov dword [esp + 0x20], eax
call fcn.0045e1b2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4dd6d6
push 0x80004005
call fcn.004017e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov ebp, dword [esp + 0x254]
push 0
push ebp
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x258], 0
call dword [sym.imp.SETUPAPI.dll_CM_Get_Child]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4dd8f7
push eax
mov eax, dword [esp + 0x18]
push 0x100
lea edx, [esp + 0x48]
push edx
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Get_Device_IDW]
test eax, eax
jne 0x4dd8e0
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x14]
call fcn.00408aa0
push 0x23
push 0x5c
lea ecx, [esp + 0x18]
call fcn.0043a930
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x20]
push 0x59e8c0
push eax
call fcn.0041a250
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x250], 1
call fcn.0041a0d0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x24c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4dd79c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.53f56307_b6bf_11d0_94f2_00a0c91efb8b
lea ecx, [esp + 0x14]
call fcn.0041f1f0
mov ebp, dword [esp + 0x10]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4dd7ed
test edi, edi
je 0x4dd7e5
push ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:SendExtCommand___CreateFile_failed_err0x_x_path_s
push edi
call fcn.004d2ee0
add esp, 0x10
lea eax, [ebp - 0x10]
jmp 0x4dd914
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0xc
lea edx, [esp + 0x30]
push edx
push 0
push 0
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4dd83d
test edi, edi
je 0x4dd828
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:SendExtCommand___DeviceIoControl_diskNumber_failed_err0x_x
push edi
call fcn.004d2ee0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
call fcn.00403e00
jmp 0x4dd938
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
push str..PhysicalDrive_d
push ecx
call fcn.00404280
xor eax, eax
xor edx, edx
mov word [esp + 0x3c], dx
mov dword [esp + 0x3e], eax
mov dword [esp + 0x42], eax
mov dword [esp + 0x46], eax
mov word [esp + 0x4a], ax
mov eax, dword [esp + 0x264]
mov ecx, eax
mov edx, eax
shr edx, 0x10
and ecx, 0xff0000
or ecx, edx
mov edx, eax
and edx, 0xff00
shl eax, 0x10
or edx, eax
mov eax, dword [esp + 0x270]
push edi
push eax
shr ecx, 8
shl edx, 8
or ecx, edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x4a], eax
mov eax, dword [esp + 0x34]
push eax
mov dword [esp + 0x4a], ecx
push 0xa
lea ecx, [esp + 0x4c]
push ecx
push edx
mov byte [esp + 0x54], 0xff
mov byte [esp + 0x55], 0xe0
call fcn.004d9dd0
add esp, 0x24
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.00403e00
mov eax, esi
jmp 0x4dd93a
test edi, edi
je 0x4dd911
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0x18]
push eax
push str.ERROR:SendExtCommand___CM_Get_Device_ID_instance:_d__failed_err0x_x
jmp 0x4dd908
test edi, edi
je 0x4dd911
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
push str.ERROR:SendExtCommand___CM_Get_Child_instance:_d__failed_err0x_x
push edi
call fcn.004d2ee0
add esp, 0x10
lea eax, [esi - 0x10]
mov dword [esp + 0x24c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4dd938
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00493eee
add esp, 0x240
ret