Function at 0x49e070
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
xor edx, edx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [esp + 8], edx
mov dword [esp + 0xc], edx
cmp byte [ebp + 0xc], dl
jne 0x49e0b1
movzx eax, byte [ebx + 0x17]
mov ecx, dword [edi + 0x20]
push eax
add eax, eax
cdq
push edx
push eax
mov eax, dword [edi + 0x24]
push eax
push ecx
push ebx
call fcn.0048c6c0
mov esi, eax
test esi, esi
jl 0x49e361
xor edx, edx
mov al, byte [edi + 0x28]
and al, 3
jne 0x49e0ea
mov eax, dword [edi + 0x40]
mov ecx, dword [edi + 0x44]
cmp eax, edx
jne 0x49e0c6
cmp ecx, edx
je 0x49e0e2
mov esi, dword [edi + 0x48]
push edx
push esi
push ecx
push eax
mov eax, ebx
call fcn.0048c730
mov esi, eax
test esi, esi
jl 0x49e2f2
xor edx, edx
jmp 0x49e0ee
mov dword [edi + 0x48], edx
mov dword [edi + 0x4c], edx
jmp 0x49e0ee
cmp al, 3
je 0x49e11c
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x34]
cmp eax, edx
jne 0x49e0fc
cmp ecx, edx
je 0x49e116
mov esi, dword [edi + 0x38]
push edx
push esi
push ecx
push eax
mov eax, ebx
call fcn.0048c660
mov esi, eax
test esi, esi
jl 0x49e2f2
jmp 0x49e11c
mov dword [edi + 0x38], edx
mov dword [edi + 0x3c], edx
mov ecx, dword [ebx + 0x40]
test byte [ecx + 0xbd], 1
mov eax, dword [edi]
mov edx, dword [edi + 4]
jne 0x49e12e
cdq
mov esi, eax
and esi, edx
cmp esi, 0xffffffff
jne 0x49e141
mov esi, 0xc0000024
jmp 0x49e2f2
cmp eax, 0xfffffffe
jne 0x49e155
cmp edx, 0xffffffff
jne 0x49e155
mov esi, 0xc0000024
jmp 0x49e2f2
push edx
push eax
lea esi, [ecx + 0xe4]
call fcn.0045b640
test eax, eax
je 0x49e1f4
mov eax, dword [eax]
test eax, eax
je 0x49e1f4
cmp byte [eax + 0x3c], 0x1c
je 0x49e184
mov esi, 0xc0000024
jmp 0x49e2f2
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
xor esi, esi
test eax, eax
jne 0x49e194
test ecx, ecx
je 0x49e1b2
mov edx, dword [ebp + 8]
push 0
push ecx
mov ecx, dword [edx + 0x40]
push eax
xor ebx, ebx
call fcn.004727d0
mov ebx, dword [ebp + 8]
mov esi, eax
test esi, esi
jl 0x49e2f2
mov eax, dword [edi + 0x28]
cmp eax, 0x9001c
ja 0x49e238
je 0x49e2ed
cmp eax, 0x74080
ja 0x49e2ed
je 0x49e2ed
cmp eax, 0x70000
je 0x49e1fe
cmp eax, 0x700a0
jne 0x49e2ed
mov edx, dword [edi + 0x48]
cmp edx, 0x70
jbe 0x49e20b
mov edx, 0x70
jmp 0x49e20b
mov esi, 0xc0000008
jmp 0x49e2f2
mov edx, dword [edi + 0x48]
cmp edx, 0x18
jbe 0x49e20b
mov edx, 0x18
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
test edx, edx
jne 0x49e21d
test eax, eax
je 0x49e231
mov eax, dword [edi + 0x44]
mov ecx, dword [edi + 0x40]
push 0x977868
push eax
mov eax, dword [ebx + 0x24]
push ecx
mov ecx, ebx
call eax
xor esi, esi
jmp 0x49e2f2
cmp eax, 0x2d0c10
je 0x49e2ed
cmp eax, 0x2d1080
je 0x49e2bd
cmp eax, 0x2d1400
jne 0x49e2ed
mov edx, 0xc
cmp dword [edi + 0x38], edx
jb 0x49e2b6
mov eax, dword [edi + 0x34]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [edi + 0x30]
push eax
mov eax, dword [ebx + 0x20]
push ecx
mov ecx, ebx
mov esi, 0xc0000023
call eax
cmp dword [esp + 0x14], 0
jne 0x49e2f2
mov edx, dword [edi + 0x48]
cmp edx, 0x5c
jbe 0x49e28c
mov edx, 0x5c
xor eax, eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
test edx, edx
jne 0x49e29e
test eax, eax
je 0x49e2b2
mov ecx, dword [edi + 0x44]
mov eax, dword [edi + 0x40]
push 0x9778e8
push ecx
push eax
mov eax, dword [ebx + 0x24]
mov ecx, ebx
call eax
xor esi, esi
jmp 0x49e2f2
mov esi, 0xc000000d
jmp 0x49e2f2
mov edx, 0xc
cmp dword [edi + 0x48], edx
jb 0x49e2ed
mov ecx, dword [edi + 0x44]
mov eax, dword [edi + 0x40]
push 0x9778d8
push ecx
push eax
mov eax, dword [ebx + 0x24]
mov ecx, ebx
call eax
mov dword [esp + 8], 0xc
mov dword [esp + 0xc], 0
jmp 0x49e2f2
mov esi, 0xc0000023
cmp byte [ebp + 0xc], 0
je 0x49e361
test esi, esi
jge 0x49e34b
mov edx, esi
mov eax, ebx
call fcn.004a57b0
xor eax, eax
mov dword [ebx + 0x110], eax
mov dword [ebx + 0x114], eax
and esi, 0xc0000000
cmp esi, 0xc0000000
je 0x49e371
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, eax
or edx, ecx
je 0x49e371
lea edx, [esp + 8]
push edx
push ecx
push eax
mov eax, dword [ebx + 0x24]
mov edx, 4
mov ecx, ebx
call eax
mov byte [ebx + 0x11], al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dword [ebx + 0x110], 1
mov dword [ebx + 0x114], 0
jmp 0x49e313
mov dword [ebx + 0x110], esi
mov dword [ebx + 0x114], 0
movzx ecx, byte [ebx + 0x17]
mov esi, dword [edi + 0x24]
lea edx, [esp + 8]
push edx
mov eax, ecx
cdq
add eax, dword [edi + 0x20]
adc esi, edx
push esi
push eax
mov eax, dword [ebx + 0x24]
mov edx, ecx
mov ecx, ebx
call eax
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10