Function at 0x53a7b0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2cdc
call fcn.005468f0
push ebx
push esi
push edi
xor edi, edi
lea eax, [esp + 0x3d8]
push edi
push str..PhysicalDrive_d
push eax
mov ebx, edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3d8]
push edi
push edi
push 3
push edi
push 3
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, 0xffffffff
je 0x53aac2
push 0x2710
xorps xmm0, xmm0
mov dword [esp + 0x14], edi
lea eax, [esp + 0x5dc]
movq qword [esp + 0x20], xmm0
push edi
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.005e0dd0
add esp, 0xc
lea eax, [esp + 0x10]
push edi
push eax
push 0x2710
lea eax, [esp + 0x5e4]
push eax
push 0xc
lea eax, [esp + 0x30]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x53aabb
push 0x80
lea eax, [esp + 0x35c]
push edi
push eax
call fcn.005e0dd0
push 0x80
lea eax, [esp + 0x268]
push edi
push eax
call fcn.005e0dd0
push 0x80
lea eax, [esp + 0x1f4]
push edi
push eax
call fcn.005e0dd0
push 0x80
lea eax, [esp + 0x300]
push edi
push eax
call fcn.005e0dd0
mov edx, dword [esp + 0x614]
lea eax, [esp + 0x208]
add esp, 0x30
push eax
push ecx
lea ecx, [esp + 0x5e0]
call fcn.0053a570
mov edx, dword [esp + 0x5f0]
lea eax, [esp + 0x260]
add esp, 8
push eax
push ecx
lea ecx, [esp + 0x5e0]
call fcn.0053a570
mov edx, dword [esp + 0x5f4]
lea eax, [esp + 0x2e0]
add esp, 8
push eax
push ecx
lea ecx, [esp + 0x5e0]
call fcn.0053a570
mov edx, dword [esp + 0x5f8]
lea eax, [esp + 0x360]
add esp, 8
push eax
push ecx
lea ecx, [esp + 0x5e0]
call fcn.0053a570
push 0x1a0
lea eax, [esp + 0x3c]
mov dword [esp + 0x1dc], edi
xorps xmm0, xmm0
push edi
push eax
movlpd qword [esp + 0x3c], xmm0
call fcn.005e0dd0
lea ecx, [esp + 0x1ec]
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x53a955
sub ecx, edx
je 0x53a974
xor ecx, ecx
mov al, byte [esp + ecx + 0x1d8]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x4f], al
test al, al
jne 0x53a962
lea ecx, [esp + 0x258]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x53a980
sub ecx, edx
je 0x53a9be
lea edx, [esp + 0x258]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x53a994
lea edi, [esp + 0x50]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x53a9a2
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 [esp + 0x14]
xor edi, edi
xor ecx, ecx
mov al, byte [esp + ecx + 0x2d8]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x14f], al
test al, al
jne 0x53a9c0
xor ecx, ecx
nop word [eax + eax]
mov al, byte [esp + ecx + 0x358]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0xcf], al
test al, al
jne 0x53a9e0
lea ecx, [esp + 0xd0]
call fcn.0053a6e0
lea ecx, [esp + 0x50]
call fcn.0053a6e0
lea ecx, [esp + 0x150]
call fcn.0053a6e0
push 0x2710
lea eax, [esp + 0x5dc]
push 0
push eax
call fcn.005e0dd0
add esp, 0xc
lea eax, [esp + 0x10]
push 0
push eax
push 0x2710
lea eax, [esp + 0x5e4]
push eax
push 0
push 0
push 0x700a0
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x53aabb
cmp dword [esp + 0x5e0], 0xc
mov eax, dword [esp + 0x5f0]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x5f4]
mov dword [esp + 0x2c], eax
jne 0x53aabb
lea edx, [esp + 0xd0]
mov dword [esp + 0x1d0], 2
lea ecx, [edx + 1]
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x53aa90
sub edx, ecx
xor ecx, ecx
test edx, edx
jle 0x53aab2
nop
movsx ax, byte [esp + ecx + 0xd0]
mov word [ebx + ecx*2], ax
inc ecx
cmp ecx, edx
jl 0x53aaa0
xor eax, eax
mov word [ebx + edx*2], ax
lea edi, [eax + 1]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret