Function at 0x45fb90
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x834
push ebx
mov ebx, dword [esp + 0x83c]
push ebp
push esi
mov dword [esp + 0xc], ecx
push edi
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x44]
xor ebp, ebp
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 8]
cmp eax, ebp
jne 0x45fbc0
mov eax, 0x4d1750
push eax
lea eax, [esp + 0x28]
push str.._s
push eax
call fcn.00467d68
add esp, 0xc
cmp ebx, ebp
jne 0x45fbe6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x834
ret 4
push ebp
push ebp
push 3
push ebp
push 3
lea ecx, [esp + 0x38]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45fc3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x28]
add eax, 0x48c
push edx
push str.CreateFile__s_
push 0x3ff
push eax
call fcn.00466ca7
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x834
ret 4
lea ecx, [esp + 0x20]
push ebp
push ecx
lea edx, [esp + 0x4c]
push 0x800
push edx
lea eax, [esp + 0x24]
push 0xc
push eax
push 0x2d1400
push esi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebp
jne 0x45fcab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
push ecx
push str.DeviceIoControl__s_
add edx, 0x48c
push 0x3ff
push edx
call fcn.00466ca7
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x834
ret 4
mov eax, dword [esp + 0x60]
cmp eax, 7
mov dword [esp + 0x10], eax
jne 0x45fea1
mov eax, dword [esp + 0x50]
or ecx, 0xffffffff
add ebx, 0x14
push 1
lea esi, [esp + eax + 0x48]
xor eax, eax
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov ecx, ebx
push ebp
call fcn.00404fd0
test al, al
je 0x45fd00
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
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 [ebx + 4]
mov dword [ebx + 8], ebp
mov byte [eax + ebp], 0
mov ecx, dword [esp + 0x54]
xor eax, eax
mov edx, dword [esp + 0x848]
push 1
lea esi, [esp + ecx + 0x48]
or ecx, 0xffffffff
mov edi, esi
lea ebp, [edx + 0x24]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.00404fd0
test al, al
je 0x45fd4b
mov edi, dword [ebp + 4]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov dword [ebp + 8], ebx
mov byte [ebx + ecx], 0
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x848]
or ecx, 0xffffffff
lea esi, [esp + edx + 0x44]
lea ebp, [eax + 0x44]
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
call fcn.004054d0
cmp eax, ebx
jae 0x45fd7b
call fcn.00463c83
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x45fda0
mov al, byte [ecx - 1]
test al, al
je 0x45fda0
cmp al, 0xff
je 0x45fda0
test ebx, ebx
jne 0x45fdc4
dec al
push ebx
mov byte [ecx - 1], al
mov ecx, ebp
call fcn.00403b70
jmp 0x45fde7
test ebx, ebx
jne 0x45fdaf
push 1
mov ecx, ebp
call fcn.00403b70
jmp 0x45fde7
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x45fdbb
cmp eax, ebx
jae 0x45fdcc
push 1
mov ecx, ebp
call fcn.00403b70
push ebx
mov ecx, ebp
call fcn.004054e0
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.00404fb0
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x848]
lea esi, [esp + eax + 0x44]
lea ebp, [ecx + 0x34]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
call fcn.004054d0
cmp eax, ebx
jae 0x45fe17
call fcn.00463c83
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x45fe4b
mov al, byte [ecx - 1]
test al, al
je 0x45fe4b
cmp al, 0xff
je 0x45fe4b
test ebx, ebx
jne 0x45fe7e
dec al
push ebx
mov byte [ecx - 1], al
mov ecx, ebp
call fcn.00403b70
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x834
ret 4
test ebx, ebx
jne 0x45fe69
push 1
mov ecx, ebp
call fcn.00403b70
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x834
ret 4
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x45fe75
cmp eax, ebx
jae 0x45fe86
push 1
mov ecx, ebp
call fcn.00403b70
push ebx
mov ecx, ebp
call fcn.004054e0
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.00404fb0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x834
ret 4