Function at 0x46f0e0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e349
mov eax, dword fs:[0]
push eax
sub esp, 0xd90
mov eax, dword [0x550144]
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.004dfec0
push dword [ebp - 0xd84]
lea eax, [ebp - 0x510]
push str..PhysicalDrive_d
push 0xffffffffffffffff
push 0xff
push eax
call fcn.0044aba0
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 0x46f78b
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.004dfec0
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 0x46f779
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.004dfec0
push 0x100
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004dfec0
push 0x100
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.004dfec0
mov edx, dword [ebp - 0xd00]
lea eax, [ebp - 0x210]
push eax
push 0
lea ecx, [ebp - 0xd10]
call fcn.00464b60
mov edx, dword [ebp - 0xcfc]
lea eax, [ebp - 0x310]
push eax
push 0
lea ecx, [ebp - 0xd10]
call fcn.00464b60
mov edx, dword [ebp - 0xcf8]
lea eax, [ebp - 0x110]
push eax
push 1
lea ecx, [ebp - 0xd10]
call fcn.00464b60
movsx eax, byte [ebp - 0x110]
push eax
call fcn.004f47e8
add esp, 0x40
test eax, eax
jne 0x46f2c4
movsx eax, byte [ebp - 0xfd]
push eax
call fcn.004f47e8
add esp, 4
test eax, eax
je 0x46f77f
cmp byte [ebp - 0xd7d], 0
jne 0x46f55c
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 0x46f2f8
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0xd28]
call fcn.0044c0b0
lea eax, [ebp - 0xd28]
cmp edi, eax
je 0x46f36a
mov ecx, dword [edi + 0x14]
cmp ecx, 0x10
jb 0x46f351
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x46f347
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f7c2
mov eax, edx
push ecx
push eax
call fcn.004de0ea
add esp, 8
movups xmm0, xmmword [ebp - 0xd28]
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0xd18]
movq qword [edi + 0x10], xmm0
jmp 0x46f3a4
mov edx, dword [ebp - 0xd14]
cmp edx, 0x10
jb 0x46f3a4
mov ecx, dword [ebp - 0xd28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46f39a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f7c2
push edx
push ecx
call fcn.004de0ea
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 0x46f3d0
sub ecx, edx
lea eax, [ebp - 0x210]
push ecx
push eax
lea ecx, [ebp - 0xd28]
call fcn.0044c0b0
lea eax, [ebp - 0xd28]
cmp esi, eax
je 0x46f442
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x46f429
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x46f41f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f7c2
mov eax, edx
push ecx
push eax
call fcn.004de0ea
add esp, 8
movups xmm0, xmmword [ebp - 0xd28]
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0xd18]
movq qword [esi + 0x10], xmm0
jmp 0x46f47c
mov edx, dword [ebp - 0xd14]
cmp edx, 0x10
jb 0x46f47c
mov ecx, dword [ebp - 0xd28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46f472
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f7c2
push edx
push ecx
call fcn.004de0ea
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 0x46f4a3
sub ecx, edx
lea eax, [ebp - 0x310]
push ecx
push eax
lea ecx, [ebp - 0xd28]
call fcn.0044c0b0
mov esi, dword [ebp - 0xd94]
lea eax, [ebp - 0xd28]
cmp esi, eax
je 0x46f51b
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x46f502
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x46f4f8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f7c2
mov eax, edx
push ecx
push eax
call fcn.004de0ea
add esp, 8
movups xmm0, xmmword [ebp - 0xd28]
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0xd18]
movq qword [esi + 0x10], xmm0
jmp 0x46f555
mov edx, dword [ebp - 0xd14]
cmp edx, 0x10
jb 0x46f555
mov ecx, dword [ebp - 0xd28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46f54b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f7c2
push edx
push ecx
call fcn.004de0ea
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 0x46f600
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0xd28]
call fcn.0044c0b0
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 0x46f661
sub ecx, edx
lea eax, [ebp - 0x210]
push ecx
push eax
lea ecx, [ebp - 0xd28]
call fcn.0044c0b0
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 0x46f6c2
sub ecx, edx
lea eax, [ebp - 0x310]
push ecx
push eax
lea ecx, [ebp - 0xd28]
call fcn.0044c0b0
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 0x46f750
lea eax, [ebp - 0xd7c]
mov dword [ebp - 0xd9c], esi
push eax
mov ecx, esi
call fcn.0044f070
lea eax, [ebp - 0xd64]
mov byte [ebp - 4], 1
lea ecx, [esi + 0x18]
push eax
call fcn.0044f070
lea eax, [ebp - 0xd4c]
mov byte [ebp - 4], 2
lea ecx, [esi + 0x30]
push eax
call fcn.0044f070
mov eax, dword [ebp - 0xd88]
add dword [eax + 4], 0x48
jmp 0x46f75f
lea ecx, [ebp - 0xd7c]
push ecx
push esi
mov ecx, eax
call fcn.00470a10
lea ecx, [ebp - 0xd7c]
mov dword [ebp - 4], 0xffffffff
call fcn.00464200
mov esi, dword [ebp - 0xd98]
jmp 0x46f77f
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 0x46f140
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.004de0fd
mov esp, ebp
pop ebp
ret
call fcn.004e32da
int3