Function at 0x488110
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3808
call fcn.004f5c90
mov eax, dword [0x583d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x37e4], 0
mov dword [ebp - 0x37c8], 0
mov dword [ebp - 0x37c8], 0
jmp 0x488156
mov eax, dword [ebp - 0x37c8]
add eax, 1
mov dword [ebp - 0x37c8], eax
cmp dword [ebp - 0x37c8], 0x10
jge 0x4884ab
mov dword [ebp - 0x37cc], 0
mov ecx, dword [ebp - 0x37c8]
push ecx
push str..PhysicalDrive_d
lea edx, [ebp - 0x104]
push edx
call fcn.004f6acb
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x37cc], eax
cmp dword [ebp - 0x37cc], 0xffffffff
jne 0x4881b5
jmp 0x4884a6
mov dword [ebp - 0x37e8], 0
xor ecx, ecx
mov dword [ebp - 0x37c0], ecx
mov dword [ebp - 0x37bc], ecx
mov dword [ebp - 0x37b8], ecx
mov dword [ebp - 0x37c0], 0
mov dword [ebp - 0x37bc], 0
push 0x2710
push 0
lea edx, [ebp - 0x2fe4]
push edx
call fcn.004f2e30
add esp, 0xc
push 0
lea eax, [ebp - 0x37e8]
push eax
push 0x2710
lea ecx, [ebp - 0x2fe4]
push ecx
push 0xc
lea edx, [ebp - 0x37c0]
push edx
push 0x2d1400
mov eax, dword [ebp - 0x37cc]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x48848d
lea ecx, [ebp - 0x2fe4]
mov dword [ebp - 0x37d4], ecx
lea edx, [ebp - 0x37b4]
push edx
push 0
mov eax, dword [ebp - 0x37d4]
mov ecx, dword [eax + 0xc]
push ecx
lea edx, [ebp - 0x2fe4]
push edx
call fcn.00487e00
add esp, 0x10
lea eax, [ebp - 0x8d4]
push eax
push 0
mov ecx, dword [ebp - 0x37d4]
mov edx, dword [ecx + 0x10]
push edx
lea eax, [ebp - 0x2fe4]
push eax
call fcn.00487e00
add esp, 0x10
lea ecx, [ebp - 0x33cc]
push ecx
push 0
mov edx, dword [ebp - 0x37d4]
mov eax, dword [edx + 0x14]
push eax
lea ecx, [ebp - 0x2fe4]
push ecx
call fcn.00487e00
add esp, 0x10
lea edx, [ebp - 0x4ec]
push edx
push 1
mov eax, dword [ebp - 0x37d4]
mov ecx, dword [eax + 0x18]
push ecx
lea edx, [ebp - 0x2fe4]
push edx
call fcn.00487e00
add esp, 0x10
mov eax, 1
imul ecx, eax, 0
movsx edx, byte [ecx + 0x5b1490]
test edx, edx
jne 0x4883f2
mov eax, 1
imul ecx, eax, 0
movsx edx, byte [ebp + ecx - 0x4ec]
push edx
call fcn.004f8324
add esp, 4
test eax, eax
jne 0x48831e
mov eax, 1
imul ecx, eax, 0x13
movsx edx, byte [ebp + ecx - 0x4ec]
push edx
call fcn.004f8324
add esp, 4
test eax, eax
je 0x4883f2
lea eax, [ebp - 0x4ec]
mov dword [ebp - 0x37dc], eax
mov dword [ebp - 0x37d8], 0x5b1490
mov ecx, dword [ebp - 0x37d8]
mov dword [ebp - 0x37f4], ecx
mov edx, dword [ebp - 0x37dc]
mov al, byte [edx]
mov byte [ebp - 0x37c2], al
mov ecx, dword [ebp - 0x37d8]
mov dl, byte [ebp - 0x37c2]
mov byte [ecx], dl
mov eax, dword [ebp - 0x37dc]
add eax, 1
mov dword [ebp - 0x37dc], eax
mov ecx, dword [ebp - 0x37d8]
add ecx, 1
mov dword [ebp - 0x37d8], ecx
cmp byte [ebp - 0x37c2], 0
jne 0x488340
lea edx, [ebp - 0x8d4]
mov dword [ebp - 0x37e0], edx
mov dword [ebp - 0x37d0], 0x5b1090
mov eax, dword [ebp - 0x37d0]
mov dword [ebp - 0x37f8], eax
mov ecx, dword [ebp - 0x37e0]
mov dl, byte [ecx]
mov byte [ebp - 0x37c1], dl
mov eax, dword [ebp - 0x37d0]
mov cl, byte [ebp - 0x37c1]
mov byte [eax], cl
mov edx, dword [ebp - 0x37e0]
add edx, 1
mov dword [ebp - 0x37e0], edx
mov eax, dword [ebp - 0x37d0]
add eax, 1
mov dword [ebp - 0x37d0], eax
cmp byte [ebp - 0x37c1], 0
jne 0x4883a5
mov dword [ebp - 0x37e4], 1
push 0x2710
push 0
lea ecx, [ebp - 0x2fe4]
push ecx
call fcn.004f2e30
add esp, 0xc
push 0
lea edx, [ebp - 0x37e8]
push edx
push 0x2710
lea eax, [ebp - 0x2fe4]
push eax
push 0
push 0
push 0x700a0
mov ecx, dword [ebp - 0x37cc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x488439
jmp 0x48848b
lea edx, [ebp - 0x2fe4]
mov dword [ebp - 0x37f0], edx
mov eax, dword [ebp - 0x37f0]
cmp dword [eax + 8], 0xc
jne 0x48845d
mov dword [ebp - 0x37ec], 1
jmp 0x488467
mov dword [ebp - 0x37ec], 0
mov ecx, dword [ebp - 0x37ec]
mov dword [ebp - 0x37fc], ecx
mov edx, dword [ebp - 0x37f0]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x3804], eax
mov ecx, dword [edx + 0x1c]
mov dword [ebp - 0x3800], ecx
jmp 0x488499
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3808], eax
mov edx, dword [ebp - 0x37cc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x488147
mov eax, dword [ebp - 0x37e4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f225b
mov esp, ebp
pop ebp
ret