Function at 0x4a35c0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2ce0
call fcn.0054c3e0
mov eax, dword [0x661204]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x2cdc], edi
mov dword [ebp - 0x2cd8], esi
nop word [eax + eax]
push esi
lea eax, [ebp - 0x404]
push str..PhysicalDrive_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x404]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a3918
push 0x2710
xorps xmm0, xmm0
mov dword [ebp - 0x2cd4], 0
lea eax, [ebp - 0x2b14]
movq qword [ebp - 0x2b20], xmm0
push 0
push eax
mov dword [ebp - 0x2b18], 0
mov dword [ebp - 0x2b20], 0
mov dword [ebp - 0x2b1c], 0
call fcn.005b9c20
add esp, 0xc
lea eax, [ebp - 0x2cd4]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2b14]
push eax
push 0xc
lea eax, [ebp - 0x2b20]
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4a38fd
push 0x80
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.005b9c20
push 0x80
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.005b9c20
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.005b9c20
push 0x80
lea eax, [ebp - 0x184]
push 0
push eax
call fcn.005b9c20
add esp, 0x30
lea eax, [ebp - 0x84]
mov ecx, edi
push eax
push 0
push dword [ebp - 0x2b08]
lea eax, [ebp - 0x2b14]
push eax
call fcn.004a3b90
lea eax, [ebp - 0x104]
mov ecx, edi
push eax
push 0
push dword [ebp - 0x2b04]
lea eax, [ebp - 0x2b14]
push eax
call fcn.004a3b90
lea eax, [ebp - 0x184]
mov ecx, edi
push eax
push 0
push dword [ebp - 0x2b00]
lea eax, [ebp - 0x2b14]
push eax
call fcn.004a3b90
lea eax, [ebp - 0x204]
mov ecx, edi
push eax
push 1
push dword [ebp - 0x2afc]
lea eax, [ebp - 0x2b14]
push eax
call fcn.004a3b90
push 0x1a0
lea eax, [ebp - 0x2cc8]
mov dword [ebp - 0x2b28], 0
xorps xmm0, xmm0
push 0
push eax
movlpd qword [ebp - 0x2cd0], xmm0
call fcn.005b9c20
lea ecx, [ebp - 0x84]
add esp, 0xc
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a37a0
sub ecx, edx
je 0x4a37c5
xor ecx, ecx
nop dword [eax]
mov al, byte [ebp + ecx - 0x84]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x2ca9], al
test al, al
jne 0x4a37b0
lea ecx, [ebp - 0x104]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a37d0
sub ecx, edx
je 0x4a3815
lea edx, [ebp - 0x104]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4a37e3
lea edi, [ebp - 0x2ca8]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4a37f3
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x2cd8]
mov edi, dword [ebp - 0x2cdc]
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x184]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x2ba9], al
test al, al
jne 0x4a3820
xor eax, eax
nop word [eax + eax]
mov cl, byte [ebp + eax - 0x204]
lea eax, [eax + 1]
mov byte [ebp + eax - 0x2c29], cl
test cl, cl
jne 0x4a3840
lea eax, [ebp - 0x2c28]
mov ecx, edi
push eax
call fcn.004a3e40
lea eax, [ebp - 0x2ca8]
mov ecx, edi
push eax
call fcn.004a3e40
lea eax, [ebp - 0x2ba8]
mov ecx, edi
push eax
call fcn.004a3e40
push 0x2710
lea eax, [ebp - 0x2b14]
push 0
push eax
call fcn.005b9c20
add esp, 0xc
lea eax, [ebp - 0x2cd4]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2b14]
push eax
push 0
push 0
push 0x700a0
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4a3918
mov eax, dword [ebp - 0x2afc]
mov ecx, 2
mov dword [ebp - 0x2cd0], eax
mov eax, dword [ebp - 0x2af8]
mov dword [ebp - 0x2ccc], eax
xor eax, eax
cmp dword [ebp - 0x2b0c], 0xc
cmove eax, ecx
mov ecx, edi
mov dword [ebp - 0x2b28], eax
lea eax, [ebp - 0x2cd0]
push eax
call fcn.004a3140
jmp 0x4a3911
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nDeviceIOControl_IOCTL_STORAGE_QUERY_PROPERTY_error___d_n
call fcn.004a3f20
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
mov dword [ebp - 0x2cd8], esi
cmp esi, 0x10
jl 0x4a35f0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054c3c9
mov esp, ebp
pop ebp
ret