Function at 0x40dc10
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x274c
call fcn.00577780
mov eax, dword [0x615780]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x2720]
push 0x40
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x2748], edi
push eax
push dword [edi]
mov dword [ebp - 0x274c], 0
lea ebx, [edi + 0x40]
mov dword [edi + 0x1f0], 0
mov dword [ebp - 0xc], 0x12
mov word [ebp - 8], 0x40
call fcn.0040c150
add esp, 0x10
cmp eax, 1
jne 0x40ddbb
push 0x18
lea eax, [ebp - 0x2718]
push eax
push ebx
call fcn.005863b0
lea eax, [edi + 0x57]
add esp, 0xc
cmp byte [eax], 0x20
jne 0x40dc9e
cmp eax, ebx
jb 0x40dc9e
mov byte [eax], 0
dec eax
cmp byte [eax], 0x20
je 0x40dc91
push 0x20
push ebx
call fcn.00579650
add esp, 8
test eax, eax
je 0x40dcf5
sub eax, edi
sub eax, 0x40
cmp eax, 3
jle 0x40dcf5
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40dcc0
sub ecx, edx
cmp ecx, 2
jbe 0x40dcf5
mov cl, byte [edi + 0x41]
lea edx, [edi + 0x41]
cmp cl, 0x20
je 0x40dcf5
nop dword [eax]
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x40dcec
add cl, 0x20
mov byte [edx], cl
mov cl, byte [edx + 1]
inc edx
cmp cl, 0x20
jne 0x40dce0
push 4
lea eax, [ebp - 0x2700]
push eax
lea eax, [edi + 0x60]
push eax
call fcn.005863b0
movzx eax, byte [ebp - 0x271f]
shr eax, 7
mov dword [edi + 0x1f0], eax
lea eax, [ebp - 0x2720]
push 8
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x25
push eax
push dword [edi]
mov dword [ebp - 0xc], 0
mov word [ebp - 8], 0
call fcn.0040c150
add esp, 0x1c
cmp eax, 1
jne 0x40e02a
movzx eax, byte [ebp - 0x2720]
movzx ecx, byte [ebp - 0x271f]
shl eax, 8
add eax, ecx
movzx ecx, byte [ebp - 0x271e]
shl eax, 8
add eax, ecx
movzx ecx, byte [ebp - 0x271d]
shl eax, 8
add eax, ecx
movzx ecx, byte [ebp - 0x271b]
cdq
mov dword [edi + 0x84], eax
movzx eax, byte [ebp - 0x271c]
shl eax, 8
add eax, ecx
mov dword [edi + 0x88], edx
movzx ecx, byte [ebp - 0x271a]
shl eax, 8
add eax, ecx
movzx ecx, byte [ebp - 0x2719]
shl eax, 8
add eax, ecx
cdq
mov dword [edi + 0xac], eax
mov dword [edi + 0xb0], edx
push 0x2710
lea eax, [ebp - 0x2720]
mov dword [ebp - 0x2724], 0
push 0
push eax
mov dword [ebp - 0x272c], 0
mov dword [ebp - 0x2728], 0
call fcn.00578cc0
add esp, 0xc
lea eax, [ebp - 0x274c]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2720]
push eax
push 0xc
lea eax, [ebp - 0x272c]
push eax
push 0x2d1400
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40e02a
mov eax, dword [ebp - 0x2714]
mov byte [ebx], 0
test eax, eax
je 0x40de66
lea edx, [ebp - 0x2720]
add edx, eax
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x40de40
sub edx, esi
lea edi, [ebx - 1]
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40de50
mov ecx, edx
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 [ebp - 0x2710]
test eax, eax
je 0x40dea6
lea edx, [ebp - 0x2720]
add edx, eax
mov esi, edx
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x40de80
sub edx, esi
lea edi, [ebx - 1]
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40de90
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x2748]
cmp byte [esi + 0x57], 0x20
lea eax, [esi + 0x57]
jne 0x40dec2
invalid