Function at 0x40258c
Capabilities:
Get storage device properties

Disassembly:
add eax, dword [eax]
add byte [ecx + 0x9c3], bh
xor eax, eax
lea edi, [esp + 0x1809]
mov byte [esp + 0x1808], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x44], eax
push ebx
mov dword [esp + 0x4c], eax
push ecx
lea edx, [esp + 0x1810]
mov dword [esp + 0x54], eax
push 0x2710
push edx
lea eax, [esp + 0x54]
push 0xc
push eax
push 0x2d1400
push ebp
mov dword [esp + 0x58], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
call dword [0x403044]
test eax, eax
je 0x4028c6
mov ecx, 0xf9
xor eax, eax
lea edi, [esp + 0x69]
mov byte [esp + 0x68], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf9
xor eax, eax
lea edi, [esp + 0x451]
mov byte [esp + 0x450], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf9
xor eax, eax
lea edi, [esp + 0x839]
mov byte [esp + 0x838], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf9
xor eax, eax
lea edi, [esp + 0xc21]
mov byte [esp + 0xc20], bl
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x1814]
lea ecx, [esp + 0x838]
stosw word es:[edi], ax
stosb byte es:[edi], al
push ecx
push ebx
lea eax, [esp + 0x1810]
push edx
push eax
call fcn.00402380
mov edx, dword [esp + 0x1828]
lea ecx, [esp + 0x460]
push ecx
push ebx
lea eax, [esp + 0x1820]
push edx
push eax
call fcn.00402380
mov edx, dword [esp + 0x183c]
lea ecx, [esp + 0xc40]
push ecx
push ebx
lea eax, [esp + 0x1830]
push edx
push eax
call fcn.00402380
mov edx, dword [esp + 0x1850]
lea ecx, [esp + 0x98]
push ecx
push 1
lea eax, [esp + 0x1840]
push edx
push eax
call fcn.00402380
mov al, byte [esp + 0x1048]
add esp, 0x40
cmp al, bl
jne 0x402725
movsx ecx, byte [esp + 0x68]
push ecx
call 0x40313e
add esp, 4
test eax, eax
jne 0x4026fe
movsx edx, byte [esp + 0x7b]
push edx
call 0x40313e
add esp, 4
test eax, eax
je 0x402725
mov esi, dword [0x403040]
lea eax, [esp + 0x68]
lea ecx, [esp + 0x1008]
push eax
push ecx
call esi
lea edx, [esp + 0x450]
lea eax, [esp + 0x1408]
push edx
push eax
call esi
lea edi, [esp + 0x450]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x838]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x50], 0x404170
mov esi, edi
mov edi, edx
mov edx, ecx
mov dword [esp + 0x40], edi
or ecx, 0xffffffff
mov dword [esp + 0x54], 0x404168
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 eax, 0x404170
and ecx, 3
mov dword [esp + 0x58], 0x404158
test eax, eax
mov dword [esp + 0x5c], 0x404150
mov dword [esp + 0x60], 0x404148
mov dword [esp + 0x64], ebx
rep movsb byte es:[edi], byte [esi]
je 0x4028c6
mov ebp, dword [0x403130]
lea ecx, [esp + 0x50]
mov esi, eax
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x40]
push edx
call ebp
mov edx, eax
mov al, byte [esp + 0x13]
mov byte [esp + 0x28], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x30]
call 0x402a11
push esi
mov dword [esp + 0x3f24], ebx
call ebp
mov cl, byte [esp + 0x13]
mov edx, eax
mov byte [esp + 0x14], cl
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x1c]
call 0x402a11
mov eax, dword [esp + 0x18]
mov byte [esp + 0x3f20], 1
cmp eax, ebx
jne 0x402825
mov eax, 0x403144
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push edx
push ebx
push eax
call fcn.00402958
cmp eax, dword [0x403140]
jne 0x4028e8
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x402866
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x40285d
cmp al, 0xff
je 0x40285d
dec al
mov byte [ecx], al
jmp 0x402866
push ecx
call 0x402c20
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], ebx
cmp ecx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x3f20], 0xffffffff
je 0x4028a1
mov al, byte [ecx - 1]
cmp al, bl
je 0x402897
cmp al, 0xff
je 0x402897
dec al
mov byte [ecx - 1], al
jmp 0x4028a1
dec ecx
push ecx
call 0x402c20
add esp, 4
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], ebx
add eax, 4
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], eax
mov esi, dword [eax]
cmp esi, ebx
jne 0x4027a5
mov ebp, dword [esp + 0x3c]
push ebp
call dword [0x403060]
xor eax, eax
mov ecx, dword [esp + 0x3f18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3f14
ret
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x40290c
mov al, byte [ecx - 1]
cmp al, bl
je 0x402902
cmp al, 0xff
je 0x402902
dec al
mov byte [ecx - 1], al
jmp 0x40290c
dec ecx
push ecx
call 0x402c20
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], ebx
cmp ecx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
je 0x402941
mov al, byte [ecx - 1]
cmp al, bl
je 0x402937
cmp al, 0xff
je 0x402937
dec al
mov byte [ecx - 1], al
mov eax, 1
jmp 0x4028cf
dec ecx
push ecx
call 0x402c20
add esp, 4
mov eax, 1
jmp 0x4028cf