Function at 0x5e63a0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd38
mov eax, dword [0x6ce488]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0xd34], eax
xor bl, bl
mov eax, dword [ebp + 0x10]
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xd38], eax
nop
test bl, bl
jne 0x5e6734
push 0x200
lea eax, [ebp - 0x504]
push 0
push eax
call fcn.005feb40
push esi
push str..PhysicalDrive_d
push 0xffffffffffffffff
lea eax, [ebp - 0x504]
push 0xff
push eax
call fcn.005e68d0
add esp, 0x20
lea eax, [ebp - 0x504]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xd2c], eax
cmp eax, 0xffffffff
je 0x5e672a
push 0x800
lea eax, [ebp - 0xd04]
mov dword [ebp - 0xd30], 0
push 0
push eax
mov dword [ebp - 0xd20], 0
mov dword [ebp - 0xd28], 0
mov dword [ebp - 0xd24], 0
call fcn.005feb40
add esp, 0xc
lea eax, [ebp - 0xd30]
push 0
push eax
push 0x800
lea eax, [ebp - 0xd04]
push eax
push 0xc
lea eax, [ebp - 0xd28]
push eax
push 0x2d1400
push dword [ebp - 0xd2c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x5e6718
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.005feb40
push 0x100
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.005feb40
push 0x100
lea eax, [ebp - 0x304]
push 0
push eax
call fcn.005feb40
lea eax, [ebp - 0x204]
push eax
push 0
push dword [ebp - 0xcf4]
lea eax, [ebp - 0xd04]
push eax
call fcn.005e6750
lea eax, [ebp - 0x304]
push eax
push 0
push dword [ebp - 0xcf0]
lea eax, [ebp - 0xd04]
push eax
call fcn.005e6750
add esp, 0x44
lea eax, [ebp - 0x104]
push eax
push 1
push dword [ebp - 0xcec]
lea eax, [ebp - 0xd04]
push eax
call fcn.005e6750
movsx eax, byte [ebp - 0x104]
push eax
call fcn.00614d9b
add esp, 0x14
test eax, eax
jne 0x5e655d
movsx eax, byte [ebp - 0xf1]
push eax
call fcn.00614d9b
add esp, 4
test eax, eax
je 0x5e671e
lea eax, [ebp - 0x104]
mov dword [ebp - 0xd0c], 0
mov dword [ebp - 0xd08], 0xf
lea edx, [eax + 1]
mov byte [ebp - 0xd1c], 0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5e6581
sub eax, edx
lea ecx, [ebp - 0xd1c]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00417150
lea eax, [ebp - 0xd1c]
cmp edi, eax
je 0x5e65e0
mov ecx, edi
call fcn.00417a20
movups xmm0, xmmword [ebp - 0xd1c]
mov byte [ebp - 0xd1c], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0xd0c]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0xd0c], 0
mov dword [ebp - 0xd08], 0xf
lea ecx, [ebp - 0xd1c]
call fcn.00417a20
lea ecx, [ebp - 0x204]
mov dword [ebp - 0xd0c], 0
mov dword [ebp - 0xd08], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0xd1c], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5e6610
sub ecx, edx
lea eax, [ebp - 0x204]
push ecx
push eax
lea ecx, [ebp - 0xd1c]
call fcn.00417150
mov ebx, dword [ebp - 0xd34]
lea eax, [ebp - 0xd1c]
cmp ebx, eax
je 0x5e6675
mov ecx, ebx
call fcn.00417a20
movups xmm0, xmmword [ebp - 0xd1c]
mov byte [ebp - 0xd1c], 0
movups xmmword [ebx], xmm0
movq xmm0, qword [ebp - 0xd0c]
movq qword [ebx + 0x10], xmm0
mov dword [ebp - 0xd0c], 0
mov dword [ebp - 0xd08], 0xf
lea ecx, [ebp - 0xd1c]
call fcn.00417a20
lea ecx, [ebp - 0x304]
mov dword [ebp - 0xd0c], 0
mov dword [ebp - 0xd08], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0xd1c], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5e66a4
sub ecx, edx
lea eax, [ebp - 0x304]
push ecx
push eax
lea ecx, [ebp - 0xd1c]
call fcn.00417150
mov ebx, dword [ebp - 0xd38]
lea eax, [ebp - 0xd1c]
cmp ebx, eax
je 0x5e6709
mov ecx, ebx
call fcn.00417a20
movups xmm0, xmmword [ebp - 0xd1c]
mov byte [ebp - 0xd1c], 0
movups xmmword [ebx], xmm0
movq xmm0, qword [ebp - 0xd0c]
movq qword [ebx + 0x10], xmm0
mov dword [ebp - 0xd0c], 0
mov dword [ebp - 0xd08], 0xf
lea ecx, [ebp - 0xd1c]
call fcn.00417a20
mov bl, 1
jmp 0x5e671e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0xd2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, 0x10
jl 0x5e63d0
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005c358e
mov esp, ebp
pop ebp
ret