Function at 0x4088c0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2750
call fcn.0041f680
push ebx
push ebp
mov ebp, dword [esp + 0x275c]
push esi
push edi
lea eax, [esp + 0x50]
mov edx, dword [ebp]
push 0x40
lea ecx, [esp + 0x14]
push eax
xor ebx, ebx
push ecx
push edx
mov dword [esp + 0x34], 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.004084f0
add esp, 0x10
cmp eax, 1
jne 0x408a1b
lea eax, [esp + 0x58]
lea esi, [ebp + 0xc]
push 0x18
push eax
push esi
call fcn.0041fc90
mov cl, byte [ebp + 0x23]
lea eax, [ebp + 0x23]
add esp, 0xc
cmp cl, 0x20
jne 0x408943
cmp eax, esi
jb 0x408943
mov byte [eax], bl
mov cl, byte [eax - 1]
dec eax
cmp cl, 0x20
je 0x408934
lea ecx, [esp + 0x70]
push 4
lea edx, [ebp + 0x2c]
push ecx
push edx
call fcn.0041fc90
mov edx, dword [ebp]
lea eax, [esp + 0x5c]
push 8
lea ecx, [esp + 0x28]
push eax
push ecx
push edx
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.004084f0
add esp, 0x1c
cmp eax, 1
jne 0x408b6c
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x51]
mov edx, dword [esp + 0x52]
and eax, 0xff
shl eax, 8
and ecx, 0xff
and edx, 0xff
add eax, ecx
mov ecx, dword [esp + 0x53]
shl eax, 8
add eax, edx
mov edx, dword [esp + 0x54]
shl eax, 8
and ecx, 0xff
and edx, 0xff
add eax, ecx
mov ecx, dword [esp + 0x56]
mov dword [ebp + 0x50], eax
mov eax, dword [esp + 0x55]
shl edx, 8
and eax, 0xff
and ecx, 0xff
add edx, eax
mov eax, dword [esp + 0x57]
shl edx, 8
add edx, ecx
and eax, 0xff
shl edx, 8
add edx, eax
pop edi
mov dword [ebp + 0x60], edx
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x2750
ret
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x28], ecx
lea edi, [esp + 0x50]
mov dword [esp + 0x2c], ecx
lea edx, [esp + 0x24]
mov dword [esp + 0x30], ecx
mov ecx, 0x9c4
rep stosd dword es:[edi], eax
push ebx
push edx
mov edx, dword [ebp]
lea eax, [esp + 0x58]
push 0x2710
push eax
lea ecx, [esp + 0x38]
push 0xc
push ecx
push 0x2d1400
push edx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x408b6c
mov edi, 0x4569e8
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0xc]
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
mov eax, dword [esp + 0x5c]
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
je 0x408ac4
lea edi, [esp + eax + 0x50]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
xor ebx, ebx
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x60]
cmp eax, ebx
je 0x408af9
lea edi, [esp + eax + 0x50]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x64]
cmp eax, ebx
je 0x408b25
lea edi, [esp + eax + 0x50]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x2c]
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 + 0x24]
push ebx
push ecx
lea edx, [esp + 0x40]
push 0x18
push edx
push ebx
push ebx
push 0x70000
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x408b6c
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x4c]
imul ecx, dword [esp + 0x48]
imul ecx, dword [esp + 0x44]
pop edi
mov dword [ebp + 0x50], ecx
mov dword [ebp + 0x60], edx
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x2750
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x2750
ret