Function at 0x4011b0
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x194
mov eax, dword [0x46b554]
xor eax, esp
mov dword [esp + 0x190], eax
mov eax, dword [str.._:]
mov ecx, dword [ebp + 0xc]
mov edx, dword [0x4571e8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
mov dword [esp + 0x60], eax
mov eax, dword [0x4571ec]
push 3
mov dword [esp + 0x6c], eax
xor eax, eax
push ebx
push 3
mov dword [esp + 0x7a], eax
mov dword [esp + 0x7e], eax
mov dword [esp + 0x82], eax
mov dword [esp + 0x86], eax
mov word [esp + 0x8a], ax
mov ax, word [ecx]
mov dword [esp + 0x70], edx
mov dx, word [0x4571f0]
push 0xc0000000
lea ecx, [esp + 0x70]
push ecx
mov word [esp + 0x80], dx
mov dword [esp + 0x34], ebx
mov word [esp + 0x7c], ax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, ebx
je 0x4014e5
push ebx
lea edx, [esp + 0x24]
push edx
push 0xc
lea eax, [esp + 0x58]
push eax
push ebx
push ebx
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4016e4
push 0x12
push ebx
push ebx
push 0x4571c4
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4016e4
lea ecx, [esp + 0x24]
push ecx
push ebx
push 0x4571c4
push ebx
push edi
mov dword [esp + 0x38], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x401504
mov esi, dword [esp + 0x20]
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x18], 0
je 0x4014e5
push 0x12
push 0
push 0
push 0x4571d4
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4014e5
lea edx, [esp + 0x24]
push edx
push 0
push 0x4571d4
push 0
push edi
mov dword [esp + 0x38], 0x1c
mov dword [esp + 0x2c], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x4014de
mov ebx, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0
lea ecx, [esp + 0x34]
push ecx
push edi
mov dword [esp + 0x28], 0
call ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4016f0
push 0x46c980
push eax
call fcn.0042fbfd
mov esi, eax
add esp, 8
test esi, esi
je 0x4014de
mov edx, dword [esp + 0x10]
push edx
push 0
push esi
call fcn.00439e80
add esp, 0xc
push 0
push 0
mov dword [esi], 6
mov eax, dword [esp + 0x18]
push eax
push esi
lea ecx, [esp + 0x34]
push ecx
push edi
call ebx
test eax, eax
je 0x4016f0
lea eax, [esi + 4]
push 0x23
push eax
call fcn.0042f9c1
add esp, 8
add eax, 2
je 0x401705
push 0x23
push eax
call fcn.0042f9c1
mov ebx, eax
add esp, 8
add ebx, 2
je 0x401705
push 0x23
push ebx
call fcn.0042f9c1
add esp, 8
test eax, eax
je 0x401705
sub eax, ebx
sar eax, 1
add eax, eax
push eax
lea edx, [esp + 0x9c]
push ebx
push edx
mov dword [esp + 0x28], eax
call fcn.00439f00
mov ecx, dword [esp + 0x28]
xor eax, eax
lea edx, [esp + 0xa4]
mov word [esp + ecx + 0xa4], ax
push edx
lea eax, [esp + 0x128]
push eax
call fcn.0042fb72
add esp, 0x14
test eax, eax
jne 0x4014af
push str.vid_
lea ebx, [esi + 4]
push ebx
call fcn.0042fc08
add esp, 8
test eax, eax
je 0x401705
mov ecx, dword [eax + 8]
mov dword [esp + 0x88], ecx
mov edx, dword [eax + 0xc]
xor eax, eax
push str.pid_
push ebx
mov dword [esp + 0x94], edx
mov word [esp + 0x98], ax
call fcn.0042fc08
add esp, 8
test eax, eax
je 0x401705
mov ecx, dword [eax + 8]
mov dword [esp + 0x78], ecx
mov edx, dword [eax + 0xc]
lea ecx, [esp + 0x88]
xor eax, eax
push str.0fca
push ecx
mov dword [esp + 0x84], edx
mov word [esp + 0x88], ax
call fcn.0042fb72
add esp, 8
test eax, eax
jne 0x4014af
lea edx, [esp + 0x78]
push str.8021
push edx
call fcn.0042fb72
add esp, 8
test eax, eax
je 0x401713
push esi
call fcn.0042fc68
mov eax, dword [esp + 0x1c]
add esp, 4
lea ecx, [esp + 0x24]
push ecx
inc eax
push eax
push 0x4571d4
xor esi, esi
push esi
push edi
mov dword [esp + 0x2c], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x401318
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0042f9b2
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [esp + 0x14]
push 0
lea edx, [esp + 0x14]
push edx
push 0
push 0
lea eax, [esp + 0x34]
push eax
push edi
mov dword [esp + 0x28], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4016dd
push 0x46c980
push eax
call fcn.0042fbfd
mov esi, eax
add esp, 8
test esi, esi
je 0x40164f
mov ecx, dword [esp + 0x10]
push ecx
push 0
push esi
call fcn.00439e80
add esp, 0xc
push 0
push 0
mov dword [esi], 6
mov edx, dword [esp + 0x18]
push edx
push esi
lea eax, [esp + 0x34]
push eax
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
je 0x401606
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea ecx, [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x401626
push 0
lea edx, [esp + 0x24]
push edx
push 0xc
lea ecx, [esp + 0x4c]
push ecx
push 0
push 0
push 0x2d1080
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x401646
mov edx, dword [esp + 0x50]
cmp edx, dword [esp + 0x44]
jne 0x4015da
mov eax, dword [esp + 0x4c]
cmp eax, dword [esp + 0x40]
je 0x401666
push esi
call fcn.0042fc68
add esp, 4
lea ecx, [esp + 0x24]
push ecx
inc ebx
push ebx
push 0x4571c4
xor esi, esi
push esi
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x401500
jmp 0x4012b2
push esi
call fcn.0042fc68
add esp, 4
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4014e5
push esi
call fcn.0042fc68
add esp, 4
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4014e5
push esi
call fcn.0042fc68
add esp, 4
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4014e5
lea eax, [esi + 4]
push 0x23
push eax
mov dword [esp + 0x20], 1
call fcn.0042f9c1
add esp, 8
add eax, 2
je 0x401626
push 0x23
push eax
call fcn.0042f9c1
mov ebx, eax
add esp, 8
add ebx, 2
je 0x401646
push 0x26
push ebx
call fcn.0042f9c1
add esp, 8
test eax, eax
je 0x401606
sub eax, ebx
sar eax, 1
add eax, eax
push eax
lea ecx, [esp + 0x11c]
push ebx
push ecx
mov dword [esp + 0x28], eax
call fcn.00439f00
mov eax, dword [esp + 0x28]
xor edx, edx
push esi
mov word [esp + eax + 0x128], dx
call fcn.0042fc68
add esp, 0x10
xor esi, esi
jmp 0x4012b2
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4014e5
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
push esi
call fcn.0042fc68
add esp, 4
jmp 0x4014e5
push esi
call fcn.0042fc68
add esp, 4
jmp 0x4014de
push esi
call fcn.0042fc68
add esp, 4
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov edx, dword [0x46d778]
push 0x1388
push edx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40173d
mov bl, 1
mov eax, dword [0x46d778]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esp + 0x19c]
pop edi
xor eax, eax
test bl, bl
pop esi
setne al
pop ebx
xor ecx, esp
call fcn.0042f9b2
mov esp, ebp
pop ebp
ret 0x14