Function at 0x421000
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x5c
mov eax, dword [0x457a00]
xor eax, esp
mov dword [esp + 0x58], eax
xor eax, eax
push ebp
mov ebp, dword [esp + 0x64]
mov dword [ebp], eax
mov dword [ebp + 4], eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
push esi
mov dword [ebx + 0x10], eax
push edi
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
push 0x227
mov edi, ecx
mov byte [esp + 0x28], 0
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov word [esp + 0x45], ax
mov byte [esp + 0x47], al
mov byte [esp + 0x48], al
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], eax
mov dword [esp + 0x55], eax
mov dword [esp + 0x59], eax
mov dword [esp + 0x5d], eax
mov dword [esp + 0x61], eax
mov word [esp + 0x65], ax
mov byte [esp + 0x67], al
mov dword [ebx + 0x1c], eax
call fcn.004302de
add esp, 4
mov esi, eax
xor eax, eax
push eax
mov dword [esi + 4], 0x227
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov ecx, dword [esi + 4]
lea eax, [esp + 0x18]
push eax
push ecx
push esi
push 0xc
lea edx, [esp + 0x2c]
push edx
push 0x2d1400
push edi
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
mov dword [esp + 0x10], eax
je 0x42125b
mov eax, dword [esi + 0xc]
add eax, esi
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4210f0
lea edi, [esp + 0x24]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x421102
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x10]
add eax, ecx
mov esi, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x421127
lea edi, [esp + 0x44]
sub eax, esi
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x421140
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x24]
rep movsb byte es:[edi], byte [esi]
xor edi, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x421161
sub eax, edx
lea esi, [eax - 1]
nop
mov al, byte [esp + edi + 0x24]
add edi, 1
cmp al, 0x20
je 0x421170
sub edi, 1
mov edi, edi
mov cl, byte [esp + esi + 0x24]
sub esi, 1
cmp cl, 0x20
je 0x421180
lea eax, [esp + 0x24]
add esi, 1
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x421196
sub eax, edx
cmp edi, eax
jae 0x4211d7
test edi, edi
jl 0x4211d7
lea eax, [esp + 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4211b0
sub eax, edx
cmp esi, eax
jae 0x4211d7
test esi, esi
jl 0x4211d7
sub esi, edi
add esi, 1
push esi
lea edx, [esp + edi + 0x28]
push edx
push ebp
call fcn.0043dca0
add esp, 0xc
lea eax, [esp + 0x44]
xor edi, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4211e0
sub eax, edx
lea esi, [eax - 1]
mov edi, edi
mov al, byte [esp + edi + 0x44]
add edi, 1
cmp al, 0x20
je 0x4211f0
sub edi, 1
mov edi, edi
mov cl, byte [esp + esi + 0x44]
sub esi, 1
cmp cl, 0x20
je 0x421200
lea eax, [esp + 0x44]
add esi, 1
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x421216
sub eax, edx
cmp edi, eax
jae 0x421257
test edi, edi
jl 0x421257
lea eax, [esp + 0x44]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x421230
sub eax, edx
cmp esi, eax
jae 0x421257
test esi, esi
jl 0x421257
sub esi, edi
add esi, 1
push esi
lea edx, [esp + edi + 0x48]
push edx
push ebx
call fcn.0043dca0
add esp, 0xc
mov esi, dword [esp + 0xc]
push esi
call fcn.00432210
mov ecx, dword [esp + 0x68]
add esp, 4
xor eax, eax
cmp dword [esp + 0x10], eax
pop edi
pop esi
setne al
pop ebp
xor ecx, esp
call fcn.0042fb8f
add esp, 0x5c
ret