Function at 0x499380
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 0x4997be
push 0x200
lea eax, [esp + 0x35c]
push 0
push eax
call fcn.004dfec0
add esp, 0xc
lea eax, [esp + 0x358]
push dword [esp + 0x10]
push str..PhysicalDrive_d
push 0xff
push eax
call fcn.0049b3b0
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 0x4997a8
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.004dfec0
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 0x499798
push 0x100
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.004dfec0
add esp, 0xc
lea eax, [esp + 0x158]
push 0x100
push 0
push eax
call fcn.004dfec0
add esp, 0xc
lea eax, [esp + 0x258]
push 0x100
push 0
push eax
call fcn.004dfec0
add esp, 0xc
lea eax, [esp + 0x158]
push eax
push 0
push dword [esp + 0x570]
lea eax, [esp + 0x564]
push eax
call fcn.004997e0
lea eax, [esp + 0x258]
push eax
push 0
push dword [esp + 0x574]
lea eax, [esp + 0x564]
push eax
call fcn.004997e0
lea eax, [esp + 0x58]
push eax
push 1
push dword [esp + 0x578]
lea eax, [esp + 0x564]
push eax
call fcn.004997e0
movsx eax, byte [esp + 0x58]
push eax
call fcn.004f47e8
add esp, 4
test eax, eax
jne 0x499545
movsx eax, byte [esp + 0x6b]
push eax
call fcn.004f47e8
add esp, 4
test eax, eax
je 0x49979e
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 0x499564
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 0x4995cc
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x4995b7
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x4995ad
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4997d4
mov eax, edx
push ecx
push eax
call fcn.004de0ea
add esp, 8
movups xmm0, xmmword [esp + 0x20]
movups xmmword [esi], xmm0
movq xmm0, qword [esp + 0x30]
movq qword [esi + 0x10], xmm0
jmp 0x499602
mov edx, dword [esp + 0x34]
cmp edx, 0x10
jb 0x499602
mov ecx, dword [esp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4995f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4997d4
push edx
push ecx
call fcn.004de0ea
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 0x499624
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 0x49968f
mov ecx, dword [edi + 0x14]
cmp ecx, 0x10
jb 0x49967a
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x499670
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4997d4
mov eax, edx
push ecx
push eax
call fcn.004de0ea
add esp, 8
movups xmm0, xmmword [esp + 0x20]
movups xmmword [edi], xmm0
movq xmm0, qword [esp + 0x30]
movq qword [edi + 0x10], xmm0
jmp 0x4996c5
mov edx, dword [esp + 0x34]
cmp edx, 0x10
jb 0x4996c5
mov ecx, dword [esp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4996bb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4997d4
push edx
push ecx
call fcn.004de0ea
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 0x4996e7
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 0x49975f
mov ecx, dword [eax + 0x14]
cmp ecx, 0x10
jb 0x499745
mov eax, dword [eax]
inc ecx
cmp ecx, 0x1000
jb 0x499737
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4997d4
mov eax, edx
push ecx
push eax
call fcn.004de0ea
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 0x49979e
mov edx, dword [esp + 0x34]
cmp edx, 0x10
jb 0x499791
mov ecx, dword [esp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x499787
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4997d4
push edx
push ecx
call fcn.004de0ea
add esp, 8
mov byte [esp + 0xf], 1
jmp 0x49979e
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 0x4993b7
mov ecx, dword [esp + 0xd5c]
pop edi
pop esi
xor ecx, esp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret 0xc
call fcn.004e32da
int3