Function at 0x46f070
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e769
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.004e02e0
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 0x46f71b
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.004e02e0
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 0x46f709
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.004e02e0
push 0x100
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004e02e0
push 0x100
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.004e02e0
mov edx, dword [ebp - 0xd00]
lea eax, [ebp - 0x210]
push eax
push 0
lea ecx, [ebp - 0xd10]
call fcn.00464af0
mov edx, dword [ebp - 0xcfc]
lea eax, [ebp - 0x310]
push eax
push 0
lea ecx, [ebp - 0xd10]
call fcn.00464af0
mov edx, dword [ebp - 0xcf8]
lea eax, [ebp - 0x110]
push eax
push 1
lea ecx, [ebp - 0xd10]
call fcn.00464af0
movsx eax, byte [ebp - 0x110]
push eax
call fcn.004f4c08
add esp, 0x40
test eax, eax
jne 0x46f254
movsx eax, byte [ebp - 0xfd]
push eax
call fcn.004f4c08
add esp, 4
test eax, eax
je 0x46f70f
cmp byte [ebp - 0xd7d], 0
jne 0x46f4ec
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 0x46f288
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 0x46f2fa
mov ecx, dword [edi + 0x14]
cmp ecx, 0x10
jb 0x46f2e1
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x46f2d7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f752
mov eax, edx
push ecx
push eax
call fcn.004de50a
add esp, 8
movups xmm0, xmmword [ebp - 0xd28]
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0xd18]
movq qword [edi + 0x10], xmm0
jmp 0x46f334
mov edx, dword [ebp - 0xd14]
cmp edx, 0x10
jb 0x46f334
mov ecx, dword [ebp - 0xd28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46f32a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f752
push edx
push ecx
call fcn.004de50a
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 0x46f360
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 0x46f3d2
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x46f3b9
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x46f3af
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f752
mov eax, edx
push ecx
push eax
call fcn.004de50a
add esp, 8
movups xmm0, xmmword [ebp - 0xd28]
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0xd18]
movq qword [esi + 0x10], xmm0
jmp 0x46f40c
mov edx, dword [ebp - 0xd14]
cmp edx, 0x10
jb 0x46f40c
mov ecx, dword [ebp - 0xd28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46f402
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f752
push edx
push ecx
call fcn.004de50a
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 0x46f433
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 0x46f4ab
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x46f492
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x46f488
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f752
mov eax, edx
push ecx
push eax
call fcn.004de50a
add esp, 8
movups xmm0, xmmword [ebp - 0xd28]
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0xd18]
movq qword [esi + 0x10], xmm0
jmp 0x46f4e5
mov edx, dword [ebp - 0xd14]
cmp edx, 0x10
jb 0x46f4e5
mov ecx, dword [ebp - 0xd28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46f4db
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f752
push edx
push ecx
call fcn.004de50a
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 0x46f590
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 0x46f5f1
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 0x46f652
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 0x46f6e0
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 0x46f6ef
lea ecx, [ebp - 0xd7c]
push ecx
push esi
mov ecx, eax
call fcn.004709a0
lea ecx, [ebp - 0xd7c]
mov dword [ebp - 4], 0xffffffff
call fcn.00464190
mov esi, dword [ebp - 0xd98]
jmp 0x46f70f
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 0x46f0d0
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.004de51d
mov esp, ebp
pop ebp
ret
call fcn.004e36fa
int3