Function at 0x40d0f0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e620
mov eax, dword fs:[0]
push eax
mov eax, 0x2930
call fcn.004109f0
mov eax, dword [0x44e0d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2938], edx
mov byte [ebp - 0x2925], cl
mov eax, dword [ebp + 8]
mov edi, 0x43d080
push 0x63
pop edx
mov ecx, edi
mov dword [ebp - 0x293c], eax
call fcn.0040e719
xor ebx, ebx
cmp byte [ebp - 0x2925], bl
jne 0x40d165
push 0x6a
pop edx
mov ecx, edi
call fcn.0040e719
call fcn.0040db4d
mov byte [ebp - 0x2925], al
push 0x6f
pop edx
mov ecx, edi
call fcn.0040e719
movsx eax, byte [ebp - 0x2925]
push eax
lea eax, [ebp - 0x1d8]
push str.._c:
push eax
call fcn.00405c44
add esp, 0xc
lea eax, [ebp - 0x1d8]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0x7c
mov esi, eax
mov ecx, edi
pop edx
mov dword [ebp - 0x292c], esi
call fcn.0040e719
cmp esi, 0xffffffff
je 0x40d572
mov edx, 0x80
mov ecx, edi
call fcn.0040e719
mov esi, 0x2710
mov dword [ebp - 0x2930], ebx
push esi
lea eax, [ebp - 0x28e8]
mov dword [ebp - 0x291c], ebx
push ebx
push eax
mov dword [ebp - 0x2924], ebx
mov dword [ebp - 0x2920], ebx
call fcn.00412370
add esp, 0xc
mov edx, 0x8e
mov ecx, edi
call fcn.0040e719
push ebx
lea eax, [ebp - 0x2930]
push eax
push esi
lea eax, [ebp - 0x28e8]
push eax
push 0xc
lea eax, [ebp - 0x2924]
push eax
push 0x2d1400
push dword [ebp - 0x292c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40d55a
mov edx, 0x97
mov ecx, edi
call fcn.0040e719
mov edx, 0x9f
mov ecx, edi
call fcn.0040e719
cmp dword [ebp - 0x28d0], esi
jae 0x40d55a
cmp dword [ebp - 0x28d8], esi
jae 0x40d55a
mov edx, 0xab
mov ecx, edi
call fcn.0040e719
mov eax, esi
sub eax, dword [ebp - 0x28d0]
push 0x64
pop edx
cmp eax, edx
mov ecx, edx
mov edi, edx
cmovl ecx, eax
sub esi, dword [ebp - 0x28d8]
dec ecx
cmp esi, edx
mov dword [ebp - 0x2934], ecx
mov ecx, 0x43d080
cmovl edi, esi
add edx, 0x4d
dec edi
call fcn.0040e719
mov esi, dword [ebp - 0x2934]
cmp esi, 1
jl 0x40d555
cmp edi, 1
jl 0x40d555
push 0x64
lea eax, [ebp - 0x74]
push ebx
push eax
call fcn.00412370
push 0x64
lea eax, [ebp - 0xd8]
push ebx
push eax
call fcn.00412370
add esp, 0x18
mov edx, 0xbc
mov ecx, 0x43d080
call fcn.0040e719
lea edx, [ebp - 0x28e8]
add edx, dword [ebp - 0x28d0]
lea ecx, [ebp - 0x74]
push esi
call fcn.0040e0c6
mov edx, 0xc0
mov ecx, 0x43d080
call fcn.0040e719
mov eax, dword [ebp - 0x28d8]
lea ecx, [ebp - 0x28e8]
add eax, ecx
push edi
push eax
lea eax, [ebp - 0xd8]
push eax
call fcn.0041ed70
add esp, 0xc
mov edi, 0x43d080
mov edx, 0xc8
mov ecx, edi
call fcn.0040e719
mov al, byte [ebp - 0x74]
test al, al
jle 0x40d351
movsx eax, al
push eax
call fcn.0041e1f1
pop ecx
test eax, eax
jne 0x40d36e
mov al, byte [ebp - 0x61]
test al, al
jle 0x40d55a
movsx eax, al
push eax
call fcn.0041e1f1
pop ecx
test eax, eax
je 0x40d55a
mov edx, 0xcc
mov ecx, edi
call fcn.0040e719
push 0xf
pop esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x28f0], ebx
mov dword [ebp - 0x28ec], ebx
lea edx, [ecx + 1]
mov dword [ebp - 0x28f0], ebx
mov dword [ebp - 0x28ec], esi
mov byte [ebp - 0x2900], bl
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d3a1
sub ecx, edx
lea eax, [ebp - 0x74]
push ecx
push eax
lea ecx, [ebp - 0x2900]
call fcn.00401d00
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2900]
cmp dword [ebp - 0x28ec], 0x10
lea ecx, [ebp - 0x2918]
push dword [ebp - 0x28f0]
cmovae eax, dword [ebp - 0x2900]
push eax
call fcn.0040b0df
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x2938]
mov ecx, edi
push eax
call fcn.004054c3
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x2918]
call fcn.00402823
or dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x28ec]
cmp edx, 0x10
jb 0x40d440
mov ecx, dword [ebp - 0x2900]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d437
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d59c
push edx
push ecx
call fcn.0040f9bd
pop ecx
pop ecx
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x2908], ebx
mov dword [ebp - 0x2904], ebx
lea edx, [ecx + 1]
mov dword [ebp - 0x28f0], ebx
mov dword [ebp - 0x28ec], esi
mov byte [ebp - 0x2900], bl
mov dword [ebp - 0x2908], ebx
mov dword [ebp - 0x2904], esi
mov byte [ebp - 0x2918], bl
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d479
sub ecx, edx
lea eax, [ebp - 0xd8]
push ecx
push eax
lea ecx, [ebp - 0x2918]
call fcn.00401d00
mov dword [ebp - 4], 2
lea eax, [ebp - 0x2918]
cmp dword [ebp - 0x2904], 0x10
lea ecx, [ebp - 0x2900]
push dword [ebp - 0x2908]
cmovae eax, dword [ebp - 0x2918]
push eax
call fcn.0040b0df
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x293c]
mov ecx, esi
push eax
call fcn.004054c3
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2900]
call fcn.00402823
or dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2904]
cmp edx, 0x10
jb 0x40d520
mov ecx, dword [ebp - 0x2918]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d517
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d59c
push edx
push ecx
call fcn.0040f9bd
pop ecx
pop ecx
mov dword [ebp - 0x2908], ebx
mov dword [ebp - 0x2904], 0xf
mov byte [ebp - 0x2918], bl
cmp dword [edi + 0x10], ebx
jne 0x40d540
cmp dword [esi + 0x10], ebx
je 0x40d555
mov edi, 0x43d080
mov edx, 0xd3
mov ecx, edi
call fcn.0040e719
mov bl, 1
jmp 0x40d55a
mov edi, 0x43d080
mov edx, 0xdb
mov ecx, edi
call fcn.0040e719
push dword [ebp - 0x292c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0xdf
mov ecx, edi
call fcn.0040e719
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f9cb
leave
ret 4
call fcn.0041521a
int3