Function at 0x427fa4
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x427fad
mov eax, dword [ebp - 4]
add esp, 0xfffff868
xor edx, edx
mov dword [ebp - 0x2798], edx
mov dword [ebp - 0x279c], edx
mov dword [ebp - 0x2790], edx
mov dword [ebp - 0x2794], edx
mov dword [ebp - 0x2788], edx
mov dword [ebp - 0x278c], edx
mov dword [ebp - 0x2784], edx
mov dword [ebp - 0x2780], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
mov edx, dword [0x426608]
call fcn.0040535c
mov ecx, 4
lea eax, [ebp - 0x60]
mov edx, dword [0x426608]
call fcn.0040538c
xor eax, eax
push ebp
push 0x428453
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov byte [ebp - 6], 0
mov byte [ebp - 7], 0
lea eax, [ebp - 0x60]
mov ecx, 4
mov edx, dword [0x426608]
call fcn.0040546c
call fcn.00426674
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 4
call fcn.004031cc
xor eax, eax
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.00426bc0
push 0
push 0
push 3
push 0
push 3
push 0
lea eax, [ebp - 0x2780]
mov ecx, dword [ebp - 0x24]
mov edx, 0x42846c
call fcn.00404d04
mov eax, dword [ebp - 0x2780]
call fcn.00404eb8
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x4280d6
push 0
push 0
push 3
push 0
push 3
push 0
lea eax, [ebp - 0x2784]
mov ecx, dword [ebp - 0x24]
mov edx, 0x428488
call fcn.00404d04
mov eax, dword [ebp - 0x2784]
call fcn.00404eb8
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x4283ff
xor eax, eax
push ebp
push 0x4283f8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6c]
xor ecx, ecx
mov edx, 0xc
call fcn.004031cc
xor eax, eax
mov dword [ebp - 0x6c], eax
xor eax, eax
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x277c]
xor ecx, ecx
mov edx, 0x2710
call fcn.004031cc
xor eax, eax
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0x2710
lea eax, [ebp - 0x277c]
push eax
push 0xc
lea eax, [ebp - 0x6c]
push eax
push 0x2d1400
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
jne 0x428152
call fcn.00404460
jmp 0x4283ff
lea eax, [ebp - 0x30]
mov edx, dword [0x426608]
call fcn.00405420
call fcn.0042663c
lea eax, [ebp - 0x277c]
cmp dword [eax + 0x10], 0
jbe 0x4281b5
push 0
lea eax, [ebp - 0x2788]
push eax
lea eax, [ebp - 0x278c]
lea edx, [ebp - 0x277c]
mov edx, dword [edx + 0x10]
lea edx, [ebp + edx - 0x277c]
call fcn.00404bf0
mov eax, dword [ebp - 0x278c]
xor ecx, ecx
mov edx, 3
call fcn.00426960
mov edx, dword [ebp - 0x2788]
lea eax, [ebp - 0x30]
call fcn.00404a90
lea eax, [ebp - 0x277c]
cmp dword [eax + 0x14], 0
jbe 0x428205
push 0
lea eax, [ebp - 0x2790]
push eax
lea eax, [ebp - 0x2794]
lea edx, [ebp - 0x277c]
mov edx, dword [edx + 0x14]
lea edx, [ebp + edx - 0x277c]
call fcn.00404bf0
mov eax, dword [ebp - 0x2794]
xor ecx, ecx
mov edx, 3
call fcn.00426960
mov edx, dword [ebp - 0x2790]
lea eax, [ebp - 0x2c]
call fcn.00404a90
lea eax, [ebp - 0x277c]
cmp dword [eax + 0x18], 0
jbe 0x42824b
lea eax, [ebp - 0x279c]
lea edx, [ebp - 0x277c]
mov edx, dword [edx + 0x18]
lea edx, [ebp + edx - 0x277c]
call fcn.00404bf0
mov eax, dword [ebp - 0x279c]
lea edx, [ebp - 0x2798]
call fcn.00426fe8
mov edx, dword [ebp - 0x2798]
lea eax, [ebp - 0x28]
call fcn.00404a90
mov dword [ebp - 0x14], 0xffffffff
cmp dword [ebp - 0x30], 0
je 0x4282c3
cmp byte [ebp - 6], 0
jne 0x428274
mov byte [ebp - 6], 1
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 0x60]
xor eax, eax
call fcn.00427594
pop ecx
mov byte [ebp - 7], al
cmp byte [ebp - 7], 0
je 0x4282c3
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
lea eax, [eax + eax*2]
cmp dword [ebp + eax*4 - 0x60], 0
je 0x4282ba
mov eax, dword [ebp - 0x10]
cmp byte [ebp + eax - 0x20], 0
jne 0x4282ba
mov eax, dword [ebp - 0x10]
lea eax, [eax + eax*2]
mov eax, dword [ebp + eax*4 - 0x60]
mov edx, dword [ebp - 0x30]
call fcn.00404e04
jne 0x4282ba
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x20], 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
jmp 0x4282c3
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 4
jne 0x42827f
cmp dword [ebp - 0x30], 0
jne 0x4282d9
cmp dword [ebp - 0x2c], 0
jne 0x4282d9
cmp dword [ebp - 0x28], 0
je 0x4283e1
cmp dword [ebp - 0x14], 0
jge 0x42832c
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 4]
cmp dword [edx + eax*4], 0
jne 0x42831e
mov eax, dword [ebp - 0x10]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 4]
cmp dword [edx + eax*4 + 4], 0
jne 0x42831e
mov eax, dword [ebp - 0x10]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 4]
cmp dword [edx + eax*4 + 8], 0
jne 0x42831e
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
jmp 0x4283bd
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 4
jne 0x4282e4
jmp 0x4283bd
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 4]
cmp dword [edx + eax*4], 0
jne 0x42835b
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 4]
cmp dword [edx + eax*4 + 4], 0
jne 0x42835b
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 4]
cmp dword [edx + eax*4 + 8], 0
je 0x4283bd
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 4]
cmp dword [edx + eax*4], 0
jne 0x4283b4
mov eax, dword [ebp - 0x10]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 4]
cmp dword [edx + eax*4 + 4], 0
jne 0x4283b4
mov eax, dword [ebp - 0x10]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 4]
cmp dword [edx + eax*4 + 8], 0
jne 0x4283b4
mov eax, dword [ebp - 0x10]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 4]
lea eax, [edx + eax*4]
mov edx, dword [ebp - 0x14]
lea edx, [edx + edx*2]
mov ecx, dword [ebp - 4]
lea edx, [ecx + edx*4]
mov ecx, dword [0x426608]
call fcn.00405684
jmp 0x4283bd
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 4
jne 0x428360
cmp dword [ebp - 0x14], 0
jl 0x4283e1
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 4]
lea eax, [edx + eax*4]
lea edx, [ebp - 0x30]
mov ecx, dword [0x426608]
call fcn.00405684
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4283ff
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 4
jne 0x42805f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42845a
lea eax, [ebp - 0x279c]
mov edx, 8
call fcn.00404a1c
lea eax, [ebp - 0x60]
mov ecx, 4
mov edx, dword [0x426608]
call fcn.0040546c
lea eax, [ebp - 0x30]
mov edx, dword [0x426608]
call fcn.00405420
lea eax, [ebp - 0x24]
call fcn.004049f8
ret