Function at 0x47dfc0
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x107c
call fcn.00565240
mov eax, dword [0x615000]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0x1c
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
push 0x12
push 0
push 0
push 0x6016a8
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x47e02b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
jmp 0x47e315
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
jmp 0x47e044
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x47e308
mov byte [ebp - 0x1040], 0
push 0x7fd
push 0
lea edx, [ebp - 0x103f]
push edx
call fcn.00562540
add esp, 0xc
mov byte [ebp - 0x840], 0
push 0x7fd
push 0
lea eax, [ebp - 0x83f]
push eax
call fcn.00562540
add esp, 0xc
mov dword [ebp - 0x1060], 0x7fe
mov dword [ebp - 0x3c], 0x7fe
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x1060]
push edx
lea eax, [ebp - 0x1040]
push eax
lea ecx, [ebp - 0x34]
push ecx
push 0xc
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
jne 0x47e0d8
jmp 0x47e03b
push 0x5dcf54
lea ecx, [ebp - 0x1040]
push ecx
call fcn.0046f8c0
add esp, 8
test eax, eax
jne 0x47e0f5
jmp 0x47e03b
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x105c], 0x1c
xor edx, edx
mov dword [ebp - 0x1058], edx
mov dword [ebp - 0x1054], edx
mov dword [ebp - 0x1050], edx
mov dword [ebp - 0x104c], edx
mov dword [ebp - 0x1048], edx
mov dword [ebp - 0x1044], edx
mov dword [ebp - 0x38], 0
mov eax, 1
test eax, eax
je 0x47e303
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x107c], ecx
lea edx, [ebp - 0x105c]
push edx
mov eax, dword [ebp - 0x107c]
push eax
push 0x6016a8
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
mov ecx, dword [ebp - 0x40]
add ecx, 1
mov dword [ebp - 0x40], ecx
test eax, eax
jne 0x47e197
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x4e0
je 0x47e192
cmp dword [ebp - 0x24], 0x103
jne 0x47e197
jmp 0x47e303
push 0
lea edx, [ebp - 0x2c]
push edx
push 0
push 0
lea eax, [ebp - 0x105c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
jne 0x47e1e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x7a
jne 0x47e1df
mov edx, dword [ebp - 0x2c]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [eax], 6
jmp 0x47e1e4
jmp 0x47e303
push 0
push 0
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
lea eax, [ebp - 0x105c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
jne 0x47e224
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x38], 0
jmp 0x47e303
mov dword [ebp - 0x1068], 0
push 0
push 0
push 3
push 0
push 3
push 0
mov eax, dword [ebp - 0x38]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1064], eax
push 0
lea ecx, [ebp - 0x1068]
push ecx
push 0xc
lea edx, [ebp - 0x1074]
push edx
push 0
push 0
push 0x2d1080
mov eax, dword [ebp - 0x1064]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x47e2e0
mov dword [ebp - 0x1078], 0
jmp 0x47e294
mov ecx, dword [ebp - 0x1078]
add ecx, 1
mov dword [ebp - 0x1078], ecx
mov edx, dword [ebp - 0x1078]
cmp edx, dword [ebp + 0xc]
jge 0x47e2e0
mov eax, dword [ebp - 0x1078]
push eax
mov ecx, dword [ebp + 8]
call fcn.0047e9a0
mov ecx, dword [ebp - 0x1070]
cmp ecx, dword [eax + 0x8c]
jne 0x47e2de
lea edx, [ebp - 0x1040]
push edx
mov eax, dword [ebp - 0x1078]
push eax
mov ecx, dword [ebp + 8]
call fcn.0047e9a0
add eax, 0x1c
mov ecx, eax
call fcn.00405fb0
jmp 0x47e2e0
jmp 0x47e285
mov ecx, dword [ebp - 0x1064]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x38], 0
jmp 0x47e133
jmp 0x47e03b
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055abea
mov esp, ebp
pop ebp
ret