Function at 0x421470
Capabilities:
Get storage device properties

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffff004
push eax
add esp, 0xffffff34
mov esi, edx
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, ecx
mov esi, eax
xor ebx, ebx
lea eax, [esp + 0xc]
xor ecx, ecx
mov edx, 0x1030
call fcn.00402b54
mov dword [esp + 0x14], 3
mov dword [esp + 0x24], 0x28
mov dword [esp + 0x28], 0x1000
mov dword [esp + 0xc], 0x32
xor eax, eax
mov dword [esp + 0x10], eax
cmp byte [esp + 6], 0xec
jne 0x421537
mov dword [esp + 0x18], 1
mov al, byte [esp + 1]
xor edx, edx
mov dl, al
mov dword [esp + 0x1c], edx
test al, al
je 0x4214ea
mov dword [esp + 0xc], 0x31
xor eax, eax
mov al, byte [esp + 2]
mov dword [esp + 0x20], eax
push 0
lea eax, [esp + 0xc]
push eax
push 0x1030
lea eax, [esp + 0x18]
push eax
push 0x1030
lea eax, [esp + 0x20]
push eax
push 0x2d1400
mov eax, dword [esi + 0x28]
push eax
call sub.kernel32.dll_DeviceIoControl
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x421537
mov edx, edi
lea eax, [esp + 0x3c]
mov ecx, 0x1000
call fcn.004029dc
cmp byte [esp + 6], 0xb0
jne 0x4215d3
mov al, byte [esp]
cmp al, 0xd0
je 0x421551
cmp al, 0xd5
jne 0x4215d3
mov dword [esp + 0x18], 2
cmp byte [esp], 0xd0
jne 0x421569
mov dword [esp + 0x1c], 2
jmp 0x421573
xor eax, eax
mov al, byte [esp + 2]
mov dword [esp + 0x1c], eax
push 0
lea eax, [esp + 0xc]
push eax
push 0x1030
lea eax, [esp + 0x18]
push eax
push 0x1030
lea eax, [esp + 0x20]
push eax
push 0x2d1400
mov eax, dword [esi + 0x28]
push eax
call sub.kernel32.dll_DeviceIoControl
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x4215d3
cmp byte [esp], 0xd0
jne 0x4215bc
mov edx, edi
lea eax, [esp + 0x3c]
mov ecx, 0x200
call fcn.004029dc
cmp byte [esp + 2], 6
jne 0x4215d3
mov edx, edi
lea eax, [esp + 0x3c]
mov ecx, 0x234
call fcn.004029dc
cmp byte [esp + 6], 0xef
jne 0x421640
mov dword [esp + 0x18], 3
xor eax, eax
mov al, byte [esp]
mov dword [esp + 0x1c], eax
push 0
lea eax, [esp + 0xc]
push eax
push 0x1030
lea eax, [esp + 0x18]
push eax
push 0x1030
lea eax, [esp + 0x20]
push eax
push 0x2d1400
mov eax, dword [esi + 0x28]
push eax
call sub.kernel32.dll_DeviceIoControl
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x421640
mov edx, edi
lea eax, [esp + 0x2c]
mov ecx, 4
call fcn.004029dc
cmp byte [esp], 0xd
jne 0x421640
lea eax, [esp + 0x3c]
mov eax, dword [eax]
mov dword [esi + 0x2728], eax
cmp byte [esp + 6], 0xb0
jne 0x42173b
cmp byte [esp], 0xd4
jne 0x42173b
lea eax, [esp + 0x103c]
xor ecx, ecx
mov edx, 0x90
call fcn.00402b54
mov dword [esp + 0x103c], 1
mov dword [esp + 0x1040], 0x54
mov dword [esp + 0x1044], 3
mov dword [esp + 0x1048], 0x80000000
mov dword [esp + 0x1054], 0x40
mov dword [esp + 0x1064], 0x3c
mov dword [esp + 0x1074], 1
mov dword [esp + 0x108c], 0x14
mov dword [esp + 0x1090], 0xffffffff
xor eax, eax
mov al, byte [esp + 2]
mov dword [esp + 0x10b4], eax
push 0
lea eax, [esp + 0xc]
push eax
push 0x90
lea eax, [esp + 0x1048]
push eax
push 0x90
lea eax, [esp + 0x1050]
push eax
push 0x2dd3c0
mov eax, dword [esi + 0x28]
push eax
call sub.kernel32.dll_DeviceIoControl
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x421724
cmp dword [esp + 0x104c], 8
jne 0x421724
mov byte [0x446bd4], 1
jmp 0x42172b
mov byte [0x446bd4], 0
test bl, bl
je 0x42173b
cmp dword [esp + 0x104c], 1
je 0x42173b
xor ebx, ebx
mov eax, ebx
add esp, 0x10cc
pop edi
pop esi
pop ebx
ret