Function at 0x419e80
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2cf0
call fcn.005ad780
mov eax, dword [0x6a8a44]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x2cd4], ecx
mov dword [ebp - 0x2cf0], 0
mov dword [ebp - 0x2cd8], 0
call fcn.004777d0
movzx eax, al
test eax, eax
je 0x419ed0
pop ebp
push ecx
push ebx
push ebp
pop edx
pop edi
push edx
push esp
push esi
pop ebp
push edx
push edx
pop ecx
pop esp
pop esp
pop esi
mov dword [ebp - 0x2cd8], 0
jmp 0x419eeb
mov ecx, dword [ebp - 0x2cd8]
add ecx, 1
mov dword [ebp - 0x2cd8], ecx
cmp dword [ebp - 0x2cd8], 0x10
jge 0x41a29e
mov dword [ebp - 0x2cdc], 0
mov edx, dword [ebp - 0x2cd8]
push edx
push str..PhysicalDrive_d
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2cdc], eax
cmp dword [ebp - 0x2cdc], 0xffffffff
jne 0x419f4d
jmp 0x419edc
mov dword [ebp - 0x2ce8], 0
push 0xc
push 0
lea edx, [ebp - 0x2b20]
push edx
call fcn.005be3a0
add esp, 0xc
mov dword [ebp - 0x2b20], 0
mov dword [ebp - 0x2b1c], 0
push 0x2710
push 0
lea eax, [ebp - 0x2b14]
push eax
call fcn.005be3a0
add esp, 0xc
push 0
lea ecx, [ebp - 0x2ce8]
push ecx
push 0x2710
mov edx, 1
imul eax, edx, 0
lea ecx, [ebp + eax - 0x2b14]
push ecx
push 0xc
lea edx, [ebp - 0x2b20]
push edx
push 0x2d1400
mov eax, dword [ebp - 0x2cdc]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x41a26c
lea ecx, [ebp - 0x2b14]
mov dword [ebp - 0x2ce0], ecx
mov byte [ebp - 0x204], 0
push 0x7f
push 0
lea edx, [ebp - 0x203]
push edx
call fcn.005be3a0
add esp, 0xc
mov byte [ebp - 0x104], 0
push 0x7f
push 0
lea eax, [ebp - 0x103]
push eax
call fcn.005be3a0
add esp, 0xc
mov byte [ebp - 0x84], 0
push 0x7f
push 0
lea ecx, [ebp - 0x83]
push ecx
call fcn.005be3a0
add esp, 0xc
mov byte [ebp - 0x184], 0
push 0x7f
push 0
lea edx, [ebp - 0x183]
push edx
call fcn.005be3a0
add esp, 0xc
lea eax, [ebp - 0x84]
push eax
push 0
mov ecx, dword [ebp - 0x2ce0]
mov edx, dword [ecx + 0xc]
push edx
lea eax, [ebp - 0x2b14]
push eax
mov ecx, dword [ebp - 0x2cd4]
call fcn.0041b270
lea ecx, [ebp - 0x104]
push ecx
push 0
mov edx, dword [ebp - 0x2ce0]
mov eax, dword [edx + 0x10]
push eax
lea ecx, [ebp - 0x2b14]
push ecx
mov ecx, dword [ebp - 0x2cd4]
call fcn.0041b270
lea edx, [ebp - 0x184]
push edx
push 0
mov eax, dword [ebp - 0x2ce0]
mov ecx, dword [eax + 0x14]
push ecx
lea edx, [ebp - 0x2b14]
push edx
mov ecx, dword [ebp - 0x2cd4]
call fcn.0041b270
lea eax, [ebp - 0x204]
push eax
push 1
mov ecx, dword [ebp - 0x2ce0]
mov edx, dword [ecx + 0x18]
push edx
lea eax, [ebp - 0x2b14]
push eax
mov ecx, dword [ebp - 0x2cd4]
call fcn.0041b270
lea ecx, [ebp - 0x2cd0]
call fcn.0041ba20
lea ecx, [ebp - 0x84]
push ecx
call fcn.005c7590
add esp, 4
test eax, eax
jbe 0x41a111
lea edx, [ebp - 0x84]
push edx
lea eax, [ebp - 0x2ca8]
push eax
call fcn.005c7400
add esp, 8
lea ecx, [ebp - 0x104]
push ecx
call fcn.005c7590
add esp, 4
test eax, eax
jbe 0x41a13a
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x2ca8]
push eax
call fcn.005c7410
add esp, 8
lea ecx, [ebp - 0x184]
push ecx
lea edx, [ebp - 0x2ba8]
push edx
call fcn.005c7400
add esp, 8
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x2c28]
push ecx
call fcn.005c7400
add esp, 8
lea edx, [ebp - 0x2c28]
push edx
mov ecx, dword [ebp - 0x2cd4]
call fcn.0041ab60
lea eax, [ebp - 0x2ca8]
push eax
mov ecx, dword [ebp - 0x2cd4]
call fcn.0041ab60
lea ecx, [ebp - 0x2ba8]
push ecx
mov ecx, dword [ebp - 0x2cd4]
call fcn.0041ab60
push 0x2710
push 0
lea edx, [ebp - 0x2b14]
push edx
call fcn.005be3a0
add esp, 0xc
push 0
lea eax, [ebp - 0x2ce8]
push eax
push 0x2710
mov ecx, 1
imul edx, ecx, 0
lea eax, [ebp + edx - 0x2b14]
push eax
push 0
push 0
push 0x700a0
mov ecx, dword [ebp - 0x2cdc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x41a1f1
jmp 0x419edc
mov edx, 1
imul eax, edx, 0
lea ecx, [ebp + eax - 0x2b14]
mov dword [ebp - 0x2ce4], ecx
mov edx, dword [ebp - 0x2ce4]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x2cd0], eax
mov ecx, dword [edx + 0x1c]
mov dword [ebp - 0x2ccc], ecx
mov edx, dword [ebp - 0x2ce4]
cmp dword [edx + 8], 0xc
jne 0x41a236
mov dword [ebp - 0x2b28], 2
jmp 0x41a258
mov eax, dword [ebp - 0x2ce4]
cmp dword [eax + 8], 0xc
jne 0x41a24e
mov dword [ebp - 0x2b28], 1
jmp 0x41a258
mov dword [ebp - 0x2b28], 0
lea ecx, [ebp - 0x2cd0]
push ecx
mov ecx, dword [ebp - 0x2cd4]
call fcn.0041acc0
jmp 0x41a28c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2cec], eax
mov edx, dword [ebp - 0x2cec]
push edx
push str._nDeviceIOControl_IOCTL_STORAGE_QUERY_PROPERTY_error___d_n
call fcn.00419230
add esp, 8
mov eax, dword [ebp - 0x2cdc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x419edc
call fcn.00477bf0
movzx ecx, al
test ecx, ecx
je 0x41a2c5
push eax
push esi
push edi
pop ebp
pop esi
pop edi
pop ebx
push esi
pop ecx
pop esp
push edi
pop eax
pop ebp
push ebp
pop ecx
push edx
pop esp
pop esi
pop esp
push esp
pop eax
pop ebp
push edi
push ebx
pop ecx
push esi
push ecx
call fcn.00477a10
movzx edx, al
test edx, edx
je 0x41a2ef
push edi
pop edi
push ebx
push eax
push ebp
push ecx
push edi
push edx
pop esp
push edi
pop edi
pop ecx
push esp
push eax
pop esi
pop edx
push ecx
pop esi
pop ecx
pop edi
pop ebx
push esi
pop edx
push esi
pop edx
pop ecx
pop ecx
pop eax
pop ebx
pop esp
mov eax, dword [ebp - 0x2cf0]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005ad281
mov esp, ebp
pop ebp
ret