Function at 0x46ef50
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b089
mov eax, dword fs:[0]
push eax
sub esp, 0xd90
mov eax, dword [0x54b144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0xd98], esi
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xd94], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xd88], eax
xor al, al
mov byte [ebp - 0xd7d], al
mov dword [ebp - 0xd84], 0
nop dword [eax + eax]
push 0x200
lea eax, [ebp - 0x510]
push 0
push eax
call fcn.004dcc10
push dword [ebp - 0xd84]
lea eax, [ebp - 0x510]
push str..PhysicalDrive_d
push 0xffffffffffffffff
push 0xff
push eax
call fcn.0044ab20
add esp, 0x20
lea eax, [ebp - 0x510]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xd8c], eax
cmp eax, 0xffffffff
je 0x46f5fb
push 0x800
lea eax, [ebp - 0xd10]
mov dword [ebp - 0xd90], 0
push 0
push eax
mov dword [ebp - 0xd2c], 0
mov dword [ebp - 0xd34], 0
mov dword [ebp - 0xd30], 0
call fcn.004dcc10
add esp, 0xc
lea eax, [ebp - 0xd90]
push 0
push eax
push 0x800
lea eax, [ebp - 0xd10]
push eax
push 0xc
lea eax, [ebp - 0xd34]
push eax
push 0x2d1400
push dword [ebp - 0xd8c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x46f5e9
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.004dcc10
push 0x100
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004dcc10
push 0x100
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.004dcc10
mov edx, dword [ebp - 0xd00]
lea eax, [ebp - 0x210]
push eax
push 0
lea ecx, [ebp - 0xd10]
call fcn.004649d0
mov edx, dword [ebp - 0xcfc]
lea eax, [ebp - 0x310]
push eax
push 0
lea ecx, [ebp - 0xd10]
call fcn.004649d0
mov edx, dword [ebp - 0xcf8]
lea eax, [ebp - 0x110]
push eax
push 1
lea ecx, [ebp - 0xd10]
call fcn.004649d0
movsx eax, byte [ebp - 0x110]
push eax
call fcn.004f1448
add esp, 0x40
test eax, eax
jne 0x46f134
movsx eax, byte [ebp - 0xfd]
push eax
call fcn.004f1448
add esp, 4
test eax, eax
je 0x46f5ef
cmp byte [ebp - 0xd7d], 0
jne 0x46f3cc
lea ecx, [ebp - 0x110]
mov dword [ebp - 0xd28], 0
mov dword [ebp - 0xd18], 0
lea edx, [ecx + 1]
mov dword [ebp - 0xd14], 0xf
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46f168
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0xd28]
call fcn.0044c030
lea eax, [ebp - 0xd28]
cmp edi, eax
je 0x46f1da
mov ecx, dword [edi + 0x14]
cmp ecx, 0x10
jb 0x46f1c1
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x46f1b7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f632
mov eax, edx
push ecx
push eax
call fcn.004dafca
add esp, 8
movups xmm0, xmmword [ebp - 0xd28]
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0xd18]
movq qword [edi + 0x10], xmm0
jmp 0x46f214
mov edx, dword [ebp - 0xd14]
cmp edx, 0x10
jb 0x46f214
mov ecx, dword [ebp - 0xd28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46f20a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f632
push edx
push ecx
call fcn.004dafca
add esp, 8
lea ecx, [ebp - 0x210]
mov dword [ebp - 0xd28], 0
mov dword [ebp - 0xd18], 0
lea edx, [ecx + 1]
mov dword [ebp - 0xd14], 0xf
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46f240
sub ecx, edx
lea eax, [ebp - 0x210]
push ecx
push eax
lea ecx, [ebp - 0xd28]
call fcn.0044c030
lea eax, [ebp - 0xd28]
cmp esi, eax
je 0x46f2b2
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x46f299
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x46f28f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f632
mov eax, edx
push ecx
push eax
call fcn.004dafca
add esp, 8
movups xmm0, xmmword [ebp - 0xd28]
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0xd18]
movq qword [esi + 0x10], xmm0
jmp 0x46f2ec
mov edx, dword [ebp - 0xd14]
cmp edx, 0x10
jb 0x46f2ec
mov ecx, dword [ebp - 0xd28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46f2e2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f632
push edx
push ecx
call fcn.004dafca
add esp, 8
lea ecx, [ebp - 0x310]
mov dword [ebp - 0xd28], 0
mov dword [ebp - 0xd18], 0
lea edx, [ecx + 1]
mov dword [ebp - 0xd14], 0xf
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46f313
sub ecx, edx
lea eax, [ebp - 0x310]
push ecx
push eax
lea ecx, [ebp - 0xd28]
call fcn.0044c030
mov esi, dword [ebp - 0xd94]
lea eax, [ebp - 0xd28]
cmp esi, eax
je 0x46f38b
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x46f372
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x46f368
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f632
mov eax, edx
push ecx
push eax
call fcn.004dafca
add esp, 8
movups xmm0, xmmword [ebp - 0xd28]
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0xd18]
movq qword [esi + 0x10], xmm0
jmp 0x46f3c5
mov edx, dword [ebp - 0xd14]
cmp edx, 0x10
jb 0x46f3c5
mov ecx, dword [ebp - 0xd28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46f3bb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f632
push edx
push ecx
call fcn.004dafca
add esp, 8
mov byte [ebp - 0xd7d], 1
mov dword [ebp - 0xd7c], 0
mov dword [ebp - 0xd64], 0
mov dword [ebp - 0xd4c], 0
mov dword [ebp - 0xd6c], 0
mov dword [ebp - 0xd68], 0xf
mov byte [ebp - 0xd7c], 0
mov dword [ebp - 0xd54], 0
mov dword [ebp - 0xd50], 0xf
mov byte [ebp - 0xd64], 0
mov dword [ebp - 0xd3c], 0
mov dword [ebp - 0xd38], 0xf
mov byte [ebp - 0xd4c], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x110]
mov dword [ebp - 0xd28], 0
lea edx, [ecx + 1]
mov dword [ebp - 0xd18], 0
mov dword [ebp - 0xd14], 0xf
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46f470
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0xd28]
call fcn.0044c030
movups xmm0, xmmword [ebp - 0xd28]
lea ecx, [ebp - 0x210]
mov dword [ebp - 0xd28], 0
lea edx, [ecx + 1]
movups xmmword [ebp - 0xd7c], xmm0
movq xmm0, qword [ebp - 0xd18]
movq qword [ebp - 0xd6c], xmm0
mov dword [ebp - 0xd18], 0
mov dword [ebp - 0xd14], 0xf
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46f4d1
sub ecx, edx
lea eax, [ebp - 0x210]
push ecx
push eax
lea ecx, [ebp - 0xd28]
call fcn.0044c030
movups xmm0, xmmword [ebp - 0xd28]
lea ecx, [ebp - 0x310]
mov dword [ebp - 0xd28], 0
lea edx, [ecx + 1]
movups xmmword [ebp - 0xd64], xmm0
movq xmm0, qword [ebp - 0xd18]
movq qword [ebp - 0xd54], xmm0
mov dword [ebp - 0xd18], 0
mov dword [ebp - 0xd14], 0xf
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46f532
sub ecx, edx
lea eax, [ebp - 0x310]
push ecx
push eax
lea ecx, [ebp - 0xd28]
call fcn.0044c030
movups xmm0, xmmword [ebp - 0xd28]
mov eax, dword [ebp - 0xd88]
movups xmmword [ebp - 0xd4c], xmm0
movq xmm0, qword [ebp - 0xd18]
mov esi, dword [eax + 4]
movq qword [ebp - 0xd3c], xmm0
cmp esi, dword [eax + 8]
je 0x46f5c0
lea eax, [ebp - 0xd7c]
mov dword [ebp - 0xd9c], esi
push eax
mov ecx, esi
call fcn.0044ef30
lea eax, [ebp - 0xd64]
mov byte [ebp - 4], 1
lea ecx, [esi + 0x18]
push eax
call fcn.0044ef30
lea eax, [ebp - 0xd4c]
mov byte [ebp - 4], 2
lea ecx, [esi + 0x30]
push eax
call fcn.0044ef30
mov eax, dword [ebp - 0xd88]
add dword [eax + 4], 0x48
jmp 0x46f5cf
lea ecx, [ebp - 0xd7c]
push ecx
push esi
mov ecx, eax
call fcn.00470880
lea ecx, [ebp - 0xd7c]
mov dword [ebp - 4], 0xffffffff
call fcn.00464080
mov esi, dword [ebp - 0xd98]
jmp 0x46f5ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0xd8c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xd84]
inc eax
mov dword [ebp - 0xd84], eax
cmp eax, 0x10
jl 0x46efb0
mov al, byte [ebp - 0xd7d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret
call fcn.004e002c
int3