Function at 0x484d40
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5d50
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4fc00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, edx
mov edi, ecx
xor al, al
mov ecx, esi
mov byte [ebp - 0x45], al
mov byte [ebp - 0x46], al
call fcn.0047eac0
mov ecx, esi
call fcn.0047eac0
lea eax, [esi + 4]
mov ecx, eax
mov dword [ebp - 0x4c], eax
call fcn.0047eac0
lea eax, [esi + 8]
mov ecx, eax
mov dword [ebp - 0x50], eax
call fcn.0047eac0
lea eax, [esi + 0xc]
mov ecx, eax
mov dword [ebp - 0x54], eax
call fcn.0047eac0
lea eax, [esi + 0x10]
mov ecx, eax
mov dword [ebp - 0x58], eax
call fcn.0047eac0
mov dword [esi + 0x14], 0
test edi, edi
jne 0x484dcb
xor ecx, ecx
jmp 0x484ddf
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x484dd0
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.0047eba0
push 0
push 0
push 3
push 0
push 3
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x5c], edi
cmp edi, 0xffffffff
jne 0x484e0d
xor al, al
jmp 0x485003
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x40], 0
push eax
push 0x18
lea eax, [ebp - 0x40]
mov dword [ebp - 0x2c], 0
push eax
push 0
push 0
push 0x70000
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push edi
movups xmmword [ebp - 0x3c], xmm0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x484ff9
mov eax, dword [ebp - 0x38]
xorps xmm0, xmm0
movq qword [ebp - 0x28], xmm0
push 0xa000
mov dword [esi + 0x14], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0
call fcn.004be464
add esp, 4
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 0xffffffff
push 0xa000
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push 0
push eax
push 0x9fff
push dword [ebp - 0x44]
lea eax, [ebp - 0x28]
push 0xc
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
mov eax, dword [ebp - 0x44]
je 0x484f5b
mov byte [eax + 0x9fff], 0
mov eax, dword [ebp - 0x44]
mov esi, eax
mov edx, dword [eax + 0x10]
test edx, edx
je 0x484f00
cmp edx, 0xa000
jae 0x484f00
mov ecx, dword [ebp - 0x50]
add eax, edx
push eax
call fcn.00485760
mov eax, dword [ebp - 0x44]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x484f1d
cmp ecx, 0xa000
jae 0x484f1d
add eax, ecx
mov ecx, dword [ebp - 0x4c]
push eax
call fcn.00485760
mov eax, dword [ebp - 0x44]
mov edx, dword [esi + 0xc]
test edx, edx
je 0x484f3a
cmp edx, 0xa000
jae 0x484f3a
mov ecx, dword [ebp - 0x54]
add eax, edx
push eax
call fcn.00485760
mov eax, dword [ebp - 0x44]
mov edx, dword [esi + 0x14]
test edx, edx
je 0x484f57
cmp edx, 0xa000
jae 0x484f57
mov ecx, dword [ebp - 0x58]
add eax, edx
push eax
call fcn.00485760
mov eax, dword [ebp - 0x44]
mov byte [ebp - 0x45], 1
push 0xa000
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push 0
push eax
push 0x9fff
push dword [ebp - 0x44]
push 0
push 0
push 0x2d0c10
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x484fae
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x4c]
mov byte [eax + 0x9fff], 0
lea eax, [ebp - 0x34]
push eax
call fcn.00485760
mov byte [ebp - 0x45], 1
mov esi, dword [ebp - 0x44]
push esi
call fcn.004be72b
add esp, 4
test esi, esi
je 0x484ff9
mov dword [ebp - 0x44], 0x8123
jmp 0x484ff9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x45]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004bde8e
mov esp, ebp
pop ebp
ret