Function at 0x4992c0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xd58
mov eax, dword [0x550144]
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 0x4996fe
push 0x200
lea eax, [esp + 0x35c]
push 0
push eax
call fcn.004e02e0
add esp, 0xc
lea eax, [esp + 0x358]
push dword [esp + 0x10]
push str..PhysicalDrive_d
push 0xff
push eax
call fcn.0049b2f0
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 0x4996e8
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.004e02e0
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 0x4996d8
push 0x100
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.004e02e0
add esp, 0xc
lea eax, [esp + 0x158]
push 0x100
push 0
push eax
call fcn.004e02e0
add esp, 0xc
lea eax, [esp + 0x258]
push 0x100
push 0
push eax
call fcn.004e02e0
add esp, 0xc
lea eax, [esp + 0x158]
push eax
push 0
push dword [esp + 0x570]
lea eax, [esp + 0x564]
push eax
call fcn.00499720
lea eax, [esp + 0x258]
push eax
push 0
push dword [esp + 0x574]
lea eax, [esp + 0x564]
push eax
call fcn.00499720
lea eax, [esp + 0x58]
push eax
push 1
push dword [esp + 0x578]
lea eax, [esp + 0x564]
push eax
call fcn.00499720
movsx eax, byte [esp + 0x58]
push eax
call fcn.004f4c08
add esp, 4
test eax, eax
jne 0x499485
movsx eax, byte [esp + 0x6b]
push eax
call fcn.004f4c08
add esp, 4
test eax, eax
je 0x4996de
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 0x4994a4
sub ecx, edx
lea eax, [esp + 0x58]
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.0044c0b0
lea eax, [esp + 0x20]
cmp esi, eax
je 0x49950c
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x4994f7
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x4994ed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x499714
mov eax, edx
push ecx
push eax
call fcn.004de50a
add esp, 8
movups xmm0, xmmword [esp + 0x20]
movups xmmword [esi], xmm0
movq xmm0, qword [esp + 0x30]
movq qword [esi + 0x10], xmm0
jmp 0x499542
mov edx, dword [esp + 0x34]
cmp edx, 0x10
jb 0x499542
mov ecx, dword [esp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x499538
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x499714
push edx
push ecx
call fcn.004de50a
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 0x499564
sub ecx, edx
lea eax, [esp + 0x158]
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.0044c0b0
lea eax, [esp + 0x20]
cmp edi, eax
je 0x4995cf
mov ecx, dword [edi + 0x14]
cmp ecx, 0x10
jb 0x4995ba
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x4995b0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x499714
mov eax, edx
push ecx
push eax
call fcn.004de50a
add esp, 8
movups xmm0, xmmword [esp + 0x20]
movups xmmword [edi], xmm0
movq xmm0, qword [esp + 0x30]
movq qword [edi + 0x10], xmm0
jmp 0x499605
mov edx, dword [esp + 0x34]
cmp edx, 0x10
jb 0x499605
mov ecx, dword [esp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4995fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x499714
push edx
push ecx
call fcn.004de50a
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 0x499627
sub eax, edx
lea ecx, [esp + 0x20]
push eax
lea eax, [esp + 0x25c]
push eax
call fcn.0044c0b0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x49969f
mov ecx, dword [eax + 0x14]
cmp ecx, 0x10
jb 0x499685
mov eax, dword [eax]
inc ecx
cmp ecx, 0x1000
jb 0x499677
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x499714
mov eax, edx
push ecx
push eax
call fcn.004de50a
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 0x4996de
mov edx, dword [esp + 0x34]
cmp edx, 0x10
jb 0x4996d1
mov ecx, dword [esp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4996c7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x499714
push edx
push ecx
call fcn.004de50a
add esp, 8
mov byte [esp + 0xf], 1
jmp 0x4996de
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 0x4992f7
mov ecx, dword [esp + 0xd5c]
pop edi
pop esi
xor ecx, esp
call fcn.004de51d
mov esp, ebp
pop ebp
ret 0xc
call fcn.004e36fa
int3