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

Disassembly:
sub esp, 0x2c8
mov eax, dword [0x46f650]
xor eax, esp
mov dword [esp + 0x2c4], eax
cmp dword [ecx + 0x18], 0
mov dword [esp + 0x10], ecx
je 0x44b847
push esi
push edi
push 0x12
push 0
push 0
push 0x460a74
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov esi, eax
lea eax, [esp + 0x34]
push eax
push 0
push 0x460a74
push 0
push esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x48], 0x1c
mov edi, 1
mov dword [esp + 0x30], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x44b83e
push ebx
push ebp
jmp 0x44b515
mov edi, dword [esp + 0x28]
test edi, edi
je 0x44b83c
mov edi, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
lea edx, [esp + 0x4c]
push edx
push esi
mov dword [esp + 0x28], 0
call edi
mov eax, dword [esp + 0x10]
push eax
call fcn.0040b5c4
add esp, 4
mov ebp, eax
lea ecx, [esp + 0x58]
push ecx
mov dword [ebp], 6
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x14]
push edx
push eax
push ebp
lea ecx, [esp + 0x4c]
push ecx
push esi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x70], 0x1c
call edi
mov dword [esp + 0x28], eax
test eax, eax
je 0x44b833
add ebp, 4
push ebp
lea edx, [esp + 0xd0]
push 0x104
push edx
call fcn.00429007
push 0x458c74
lea eax, [esp + 0xdc]
push 0x104
push eax
call fcn.00429076
add esp, 0x18
push 0x104
lea ecx, [esp + 0xd0]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
lea eax, [esp + 0x10]
push eax
push 0x104
lea ecx, [esp + 0xd4]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
lea eax, [esp + 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebx, eax
xor edi, edi
xor esi, esi
cmp ebx, 5
jne 0x44b709
mov eax, dword [esp + 0x6c]
mov ebx, dword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
xor ebp, ebp
push ebp
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], eax
call ebx
test eax, eax
jne 0x44b7c0
cmp edi, ebp
jne 0x44b7c0
mov ecx, dword [esp + 0x14]
push ebp
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x7c]
push eax
push ebp
push 0xa
push ecx
mov dword [esp + 0x44], 0x58
call dword [sym.imp.SETUPAPI.dll_CM_Get_DevNode_Registry_PropertyW]
test eax, eax
jne 0x44b6ef
mov edx, dword [esp + 0x20]
mov edi, dword [edx + 0x10]
cmp edi, ebp
je 0x44b6ef
lea ecx, [edi + 0x12]
lea eax, [esp + 0x74]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x44b696
cmp dx, bp
je 0x44b692
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x44b696
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x44b670
xor eax, eax
jmp 0x44b69b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
je 0x44b6ab
mov edi, dword [edi + 0x830]
cmp edi, ebp
jne 0x44b663
jmp 0x44b6ef
push 0x218
call fcn.0040b5c4
mov esi, eax
mov dword [esi + 0x214], ebp
mov ax, word [esp + 0xd0]
mov word [esi], ax
mov eax, dword [esp + 0x1c]
add eax, 4
push eax
lea ecx, [esi + 0xc]
push 0x104
push ecx
mov dword [esi + 4], 5
mov dword [esi + 8], 0xffffffff
call fcn.00429007
add esp, 0x10
mov edx, dword [esp + 0x14]
push ebp
push edx
lea eax, [esp + 0x1c]
push eax
call ebx
test eax, eax
je 0x44b623
jmp 0x44b7c0
push 0
push 0
push 3
push 0
push 3
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x44b7c0
push 0
lea ecx, [esp + 0x14]
push ecx
push 0xc
lea edx, [esp + 0x3c]
push edx
push 0
push 0
push 0x2d1080
push ebp
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ecx, dword [esp + 0x20]
mov edi, dword [ecx + 0x10]
test eax, eax
je 0x44b7b9
mov edx, dword [esp + 0x34]
test edi, edi
je 0x44b7b9
xor eax, eax
lea ecx, [edi + 0x398]
cmp edx, dword [ecx]
je 0x44b775
inc eax
add ecx, 4
cmp eax, 4
jl 0x44b760
mov edi, dword [edi + 0x830]
jmp 0x44b754
push 0x218
call fcn.0040b5c4
mov esi, eax
mov dword [esi + 0x214], 0
mov dx, word [esp + 0xd0]
mov word [esi], dx
mov dword [esi + 4], ebx
mov eax, dword [esp + 0x38]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1c]
add eax, 4
push eax
lea ecx, [esi + 0xc]
push 0x104
push ecx
call fcn.00429007
add esp, 0x10
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x18]
push edx
call fcn.0040b5f3
add esp, 4
test edi, edi
je 0x44b804
test esi, esi
je 0x44b804
cmp dword [edi + 0x820], 0
jne 0x44b7ec
mov dword [edi + 0x820], esi
mov dword [edi + 0x5b4], esi
jmp 0x44b7f8
mov eax, dword [edi + 0x824]
mov dword [eax + 0x214], esi
inc dword [edi + 0x828]
mov dword [edi + 0x824], esi
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x3c]
push ecx
inc eax
push eax
push 0x460a74
push 0
push edx
mov dword [esp + 0x38], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
mov esi, dword [esp + 0x1c]
test eax, eax
jne 0x44b511
jmp 0x44b83c
push ebp
call fcn.0040b5f3
add esp, 4
pop ebp
pop ebx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
pop edi
pop esi
mov ecx, dword [esp + 0x2c4]
xor ecx, esp
call fcn.00428d44
add esp, 0x2c8
ret