Function at 0x409b90
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2754
call fcn.00446420
push ebx
push ebp
mov ebp, dword [esp + 0x2760]
push esi
push edi
lea eax, [esp + 0x54]
mov edx, dword [ebp]
push 0x40
lea ecx, [esp + 0x14]
push eax
xor ebx, ebx
push ecx
push edx
mov dword [esp + 0x3c], ebx
mov dword [ebp + 0x198], ebx
mov byte [esp + 0x20], 0x12
mov byte [esp + 0x21], bl
mov byte [esp + 0x22], bl
mov byte [esp + 0x23], bl
mov byte [esp + 0x24], 0x40
mov byte [esp + 0x25], bl
call fcn.00407860
add esp, 0x10
cmp eax, 1
jne 0x409d05
lea eax, [esp + 0x5c]
lea esi, [ebp + 0x14]
push 0x18
push eax
push esi
call fcn.00446d50
mov cl, byte [ebp + 0x2b]
lea eax, [ebp + 0x2b]
add esp, 0xc
cmp cl, 0x20
jne 0x409c19
cmp eax, esi
jb 0x409c19
mov byte [eax], bl
mov cl, byte [eax - 1]
dec eax
cmp cl, 0x20
je 0x409c0a
lea ecx, [esp + 0x74]
push 4
lea edx, [ebp + 0x34]
push ecx
push edx
call fcn.00446d50
mov eax, dword [esp + 0x61]
lea ecx, [esp + 0x60]
and eax, 0xff
push 8
shr eax, 7
mov dword [ebp + 0x198], eax
mov eax, dword [ebp]
lea edx, [esp + 0x28]
push ecx
push edx
push eax
mov byte [esp + 0x34], 0x25
mov byte [esp + 0x35], bl
mov byte [esp + 0x36], bl
mov byte [esp + 0x37], bl
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], bl
call fcn.00407860
add esp, 0x1c
cmp eax, 1
jne 0x409eda
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x55]
mov edx, dword [esp + 0x56]
and eax, 0xff
shl eax, 8
and ecx, 0xff
and edx, 0xff
add eax, ecx
mov ecx, dword [esp + 0x57]
shl eax, 8
add eax, edx
and ecx, 0xff
shl eax, 8
add eax, ecx
mov ecx, dword [esp + 0x5a]
cdq
mov dword [ebp + 0x58], eax
mov eax, dword [esp + 0x58]
mov dword [ebp + 0x5c], edx
mov edx, dword [esp + 0x59]
and eax, 0xff
and edx, 0xff
shl eax, 8
add eax, edx
mov edx, dword [esp + 0x5b]
shl eax, 8
and ecx, 0xff
and edx, 0xff
add eax, ecx
shl eax, 8
add eax, edx
cdq
mov dword [ebp + 0x80], eax
mov dword [ebp + 0x84], edx
xor eax, eax
mov ecx, 0x9c4
mov dword [esp + 0x30], eax
lea edi, [esp + 0x54]
mov dword [esp + 0x34], eax
push ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x30]
lea edx, [esp + 0x58]
push ecx
mov ecx, dword [ebp]
mov dword [esp + 0x40], eax
push 0x2710
push edx
lea eax, [esp + 0x40]
push 0xc
push eax
push 0x2d1400
push ecx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x409eda
mov edi, 0x4c2a80
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x28], edx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x60]
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
je 0x409db6
lea edi, [esp + eax + 0x54]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x28]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x64]
cmp eax, ebx
je 0x409df1
lea edi, [esp + eax + 0x54]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov dword [esp + 0x24], eax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x24]
dec edi
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x68]
cmp eax, ebx
je 0x409e1d
lea edi, [esp + eax + 0x54]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp]
lea ecx, [esp + 0x2c]
push ebx
push ecx
lea edx, [esp + 0x44]
push 0x18
push edx
push ebx
push ebx
push 0x70000
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x409eda
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
mov dword [ebp + 0x70], ecx
mov dword [ebp + 0x78], edx
mov dword [ebp + 0x7c], ebx
mov edx, dword [ebp + 0x78]
mov ecx, ebx
mov dword [ebp + 0x80], eax
mov dword [ebp + 0x74], ebx
push ecx
mov ecx, dword [ebp + 0x70]
mov eax, ebx
push edx
push eax
mov dword [ebp + 0x68], esi
push ecx
mov dword [ebp + 0x6c], edi
mov dword [ebp + 0x84], ebx
call fcn.00446060
push edi
push esi
push edx
push eax
call fcn.00446060
mov dword [ebp + 0x58], eax
mov eax, dword [ebp + 0x80]
mov dword [ebp + 0x5c], edx
mov ecx, dword [ebp + 0x5c]
mov edx, ebx
push edx
mov edx, dword [ebp + 0x58]
push eax
push ecx
push edx
call fcn.00446060
mov dword [ebp + 0x60], eax
lea eax, [ebp + 0x2b]
mov dword [ebp + 0x64], edx
cmp byte [eax], 0x20
jne 0x409ecd
cmp eax, dword [esp + 0x28]
jb 0x409ecd
mov byte [eax], bl
mov cl, byte [eax - 1]
dec eax
cmp cl, 0x20
je 0x409ebc
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x2754
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x2754
ret