Function at 0x4be010
Capabilities:
Get storage device properties

Disassembly:
push 0xffffffffffffffff
push 0x649386
mov eax, dword fs:[0]
push eax
mov eax, 0x32e4
call fcn.006197b0
mov eax, dword [0x74f8a0]
xor eax, esp
mov dword [esp + 0x32e0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, esp
push eax
lea eax, [esp + 0x32f8]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x18]
xor ebx, ebx
xor esi, esi
call fcn.00402500
mov dword [esp + 0x3300], ebx
mov eax, dword [esp + 0x3308]
push eax
lea ecx, [esp + 0x1c]
push str..PhysicalDrive_d
push ecx
call fcn.00402f70
mov edx, dword [esp + 0x24]
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4be0b0
mov dword [esp + 0x3300], eax
lea ecx, [esp + 0x18]
call fcn.00402570
xor eax, eax
jmp 0x4be296
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push 0x2710
mov dword [esp + 0x2c], eax
lea eax, [esp + 0xbe8]
push ebx
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.00618760
add esp, 0xc
push ebx
lea ecx, [esp + 0x20]
push ecx
push 0x2710
lea edx, [esp + 0xbf0]
push edx
push 0xc
lea eax, [esp + 0x34]
push eax
push 0x2d1400
push ebp
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4be279
mov edx, dword [esp + 0xbf4]
lea ecx, [esp + 0x414]
push ecx
push ebx
push edx
lea eax, [esp + 0xbf0]
push eax
mov ecx, edi
call fcn.004bdde0
mov edx, dword [esp + 0xbf8]
lea ecx, [esp + 0x7fc]
push ecx
push ebx
push edx
lea eax, [esp + 0xbf0]
push eax
mov ecx, edi
call fcn.004bdde0
mov edx, dword [esp + 0xbfc]
lea ecx, [esp + 0x2c]
push ecx
push 1
push edx
lea eax, [esp + 0xbf0]
push eax
mov ecx, edi
call fcn.004bdde0
movzx ecx, byte [esp + 0x2c]
push ecx
call fcn.0061a1e5
add esp, 4
test eax, eax
jne 0x4be194
movzx edx, byte [esp + 0x3f]
push edx
call fcn.0061a1e5
add esp, 4
test eax, eax
je 0x4be279
lea ecx, [esp + 0x14]
call fcn.00402500
mov byte [esp + 0x3300], 1
lea eax, [esp + 0x414]
push eax
lea ecx, [esp + 0x18]
push 0x66fea8
push ecx
call fcn.00402f70
add esp, 0xc
push 0x670984
push 0x66fe14
lea ecx, [esp + 0x1c]
call fcn.00402c10
mov ecx, dword [esp + 0x14]
mov eax, ecx
lea esi, [eax + 1]
jmp 0x4be1e0
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4be1e0
sub eax, esi
cmp eax, 0x30
jbe 0x4be234
mov esi, dword [ecx - 0xc]
cmp esi, 0x30
jg 0x4be200
push 0x80070057
call fcn.00401090
cmp dword [ecx - 4], 1
jle 0x4be216
mov edx, esi
push edx
lea ecx, [esp + 0x18]
call fcn.00401720
mov ecx, dword [esp + 0x14]
cmp esi, ebx
mov byte [ecx + 0x30], bl
jl 0x4be1f6
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x4be1f6
mov dword [eax - 0xc], esi
mov eax, dword [esp + 0x14]
mov byte [esi + eax], bl
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x800]
push eax
push ecx
lea esi, [edi + 4]
push str._s__s__s
push esi
call fcn.00402f70
add esp, 0x14
push 0x670984
push 0x66fe14
mov ecx, esi
call fcn.00402c10
mov esi, 1
mov byte [esp + 0x3300], bl
lea ecx, [esp + 0x14]
call fcn.00402570
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x3300], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00402570
mov eax, esi
mov ecx, dword [esp + 0x32f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x32e0]
xor ecx, esp
call fcn.0061807e
add esp, 0x32f0
ret 4