Function at 0x498ec0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xd58
mov eax, dword [0x54b144]
xor eax, esp
mov dword [esp + 0xd54], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x10], eax
xor al, al
push edi
mov edi, dword [ebp + 0xc]
mov byte [esp + 0xf], al
mov dword [esp + 0x10], 0
test al, al
jne 0x4992fe
push 0x200
lea eax, [esp + 0x35c]
push 0
push eax
call fcn.004dcc10
add esp, 0xc
lea eax, [esp + 0x358]
push dword [esp + 0x10]
push str..PhysicalDrive_d
push 0xff
push eax
call fcn.0049aef0
add esp, 0x10
lea eax, [esp + 0x358]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x4992e8
push 0x800
lea eax, [esp + 0x55c]
mov dword [esp + 0x20], 0
push 0
push eax
mov dword [esp + 0x60], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
call fcn.004dcc10
add esp, 0xc
lea eax, [esp + 0x1c]
push 0
push eax
push 0x800
lea eax, [esp + 0x564]
push eax
push 0xc
lea eax, [esp + 0x60]
push eax
push 0x2d1400
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4992d8
push 0x100
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.004dcc10
add esp, 0xc
lea eax, [esp + 0x158]
push 0x100
push 0
push eax
call fcn.004dcc10
add esp, 0xc
lea eax, [esp + 0x258]
push 0x100
push 0
push eax
call fcn.004dcc10
add esp, 0xc
lea eax, [esp + 0x158]
push eax
push 0
push dword [esp + 0x570]
lea eax, [esp + 0x564]
push eax
call fcn.00499320
lea eax, [esp + 0x258]
push eax
push 0
push dword [esp + 0x574]
lea eax, [esp + 0x564]
push eax
call fcn.00499320
lea eax, [esp + 0x58]
push eax
push 1
push dword [esp + 0x578]
lea eax, [esp + 0x564]
push eax
call fcn.00499320
movsx eax, byte [esp + 0x58]
push eax
call fcn.004f1448
add esp, 4
test eax, eax
jne 0x499085
movsx eax, byte [esp + 0x6b]
push eax
call fcn.004f1448
add esp, 4
test eax, eax
je 0x4992de
lea ecx, [esp + 0x58]
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], 0
lea edx, [ecx + 1]
mov dword [esp + 0x34], 0xf
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4990a4
sub ecx, edx
lea eax, [esp + 0x58]
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.0044c030
lea eax, [esp + 0x20]
cmp esi, eax
je 0x49910c
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x4990f7
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x4990ed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x499314
mov eax, edx
push ecx
push eax
call fcn.004dafca
add esp, 8
movups xmm0, xmmword [esp + 0x20]
movups xmmword [esi], xmm0
movq xmm0, qword [esp + 0x30]
movq qword [esi + 0x10], xmm0
jmp 0x499142
mov edx, dword [esp + 0x34]
cmp edx, 0x10
jb 0x499142
mov ecx, dword [esp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x499138
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x499314
push edx
push ecx
call fcn.004dafca
add esp, 8
lea ecx, [esp + 0x158]
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], 0
lea edx, [ecx + 1]
mov dword [esp + 0x34], 0xf
mov al, byte [ecx]
inc ecx
test al, al
jne 0x499164
sub ecx, edx
lea eax, [esp + 0x158]
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.0044c030
lea eax, [esp + 0x20]
cmp edi, eax
je 0x4991cf
mov ecx, dword [edi + 0x14]
cmp ecx, 0x10
jb 0x4991ba
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x4991b0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x499314
mov eax, edx
push ecx
push eax
call fcn.004dafca
add esp, 8
movups xmm0, xmmword [esp + 0x20]
movups xmmword [edi], xmm0
movq xmm0, qword [esp + 0x30]
movq qword [edi + 0x10], xmm0
jmp 0x499205
mov edx, dword [esp + 0x34]
cmp edx, 0x10
jb 0x499205
mov ecx, dword [esp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4991fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x499314
push edx
push ecx
call fcn.004dafca
add esp, 8
lea eax, [esp + 0x258]
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], 0
lea edx, [eax + 1]
mov dword [esp + 0x34], 0xf
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x499227
sub eax, edx
lea ecx, [esp + 0x20]
push eax
lea eax, [esp + 0x25c]
push eax
call fcn.0044c030
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x49929f
mov ecx, dword [eax + 0x14]
cmp ecx, 0x10
jb 0x499285
mov eax, dword [eax]
inc ecx
cmp ecx, 0x1000
jb 0x499277
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x499314
mov eax, edx
push ecx
push eax
call fcn.004dafca
mov eax, dword [esp + 0x1c]
add esp, 8
movups xmm0, xmmword [esp + 0x20]
mov byte [esp + 0xf], 1
movups xmmword [eax], xmm0
movq xmm0, qword [esp + 0x30]
movq qword [eax + 0x10], xmm0
jmp 0x4992de
mov edx, dword [esp + 0x34]
cmp edx, 0x10
jb 0x4992d1
mov ecx, dword [esp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4992c7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x499314
push edx
push ecx
call fcn.004dafca
add esp, 8
mov byte [esp + 0xf], 1
jmp 0x4992de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
mov al, byte [esp + 0xf]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, 1
jl 0x498ef7
mov ecx, dword [esp + 0xd5c]
pop edi
pop esi
xor ecx, esp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret 0xc
call fcn.004e002c
int3