Function at 0x52afe0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd48
mov eax, dword [0x634254]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor bl, bl
mov dword [ebp - 0xd44], edx
push edi
mov dword [ebp - 0xd40], ecx
xor esi, esi
mov dword [ebp - 0xd48], eax
test bl, bl
jne 0x52b383
push 0x200
lea eax, [ebp - 0x50c]
push 0
push eax
call fcn.005713c0
add esp, 0xc
lea eax, [ebp - 0x50c]
push esi
push str..PhysicalDrive_d
push 0xff
push eax
call fcn.0052bb7d
add esp, 0x10
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push eax
lea eax, [ebp - 0x50c]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x52b379
xor eax, eax
push 0x800
push eax
mov dword [ebp - 0xd3c], eax
mov dword [ebp - 0xd28], eax
mov dword [ebp - 0xd30], eax
mov dword [ebp - 0xd2c], eax
lea eax, [ebp - 0xd0c]
push eax
call fcn.005713c0
add esp, 0xc
lea eax, [ebp - 0xd3c]
push 0
push eax
push 0x800
lea eax, [ebp - 0xd0c]
push eax
push 0xc
lea eax, [ebp - 0xd30]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x52b36c
push 0x100
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.005713c0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x100
push 0
push eax
call fcn.005713c0
add esp, 0xc
lea eax, [ebp - 0x30c]
push 0x100
push 0
push eax
call fcn.005713c0
mov edx, dword [ebp - 0xcfc]
lea eax, [ebp - 0x20c]
add esp, 0xc
lea ecx, [ebp - 0xd0c]
push eax
push 0
call fcn.0052a9db
mov edx, dword [ebp - 0xcf8]
lea eax, [ebp - 0x30c]
push eax
push 0
lea ecx, [ebp - 0xd0c]
call fcn.0052a9db
call fcn.00465f8d
mov edx, dword [ebp - 0xcf4]
mov ecx, eax
lea eax, [ebp - 0x10c]
push eax
xor eax, eax
cmp ecx, 0xb
lea ecx, [ebp - 0xd0c]
setl al
push eax
call fcn.0052a9db
movsx eax, byte [ebp - 0x10c]
push eax
call fcn.00591570
add esp, 0x1c
test eax, eax
jne 0x52b192
movsx eax, byte [ebp - 0xf9]
push eax
call fcn.00591570
pop ecx
test eax, eax
je 0x52b372
xor ebx, ebx
mov dword [ebp - 0xd10], 0xf
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0xd24], ebx
mov dword [ebp - 0xd14], ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x52b1b3
sub ecx, edx
lea eax, [ebp - 0x10c]
push ecx
push eax
lea ecx, [ebp - 0xd24]
call fcn.0043cf29
mov ecx, dword [ebp - 0xd40]
lea eax, [ebp - 0xd24]
push eax
call fcn.0043e45b
mov eax, dword [ebp - 0xd10]
cmp eax, 0x10
jb 0x52b230
mov ecx, dword [ebp - 0xd24]
inc eax
mov dword [ebp - 0xd34], eax
mov dword [ebp - 0xd38], ecx
cmp eax, 0x1000
jb 0x52b227
lea eax, [ebp - 0xd34]
push eax
lea eax, [ebp - 0xd38]
push eax
call fcn.0040379f
mov eax, dword [ebp - 0xd34]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xd38]
push eax
push ecx
call fcn.0056d0c8
pop ecx
pop ecx
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0xd24], ebx
mov dword [ebp - 0xd14], ebx
lea edx, [ecx + 1]
mov dword [ebp - 0xd10], 0xf
mov al, byte [ecx]
inc ecx
test al, al
jne 0x52b24f
sub ecx, edx
lea eax, [ebp - 0x20c]
push ecx
push eax
lea ecx, [ebp - 0xd24]
call fcn.0043cf29
mov ecx, dword [ebp - 0xd44]
lea eax, [ebp - 0xd24]
push eax
call fcn.0043e45b
mov eax, dword [ebp - 0xd10]
cmp eax, 0x10
jb 0x52b2cc
mov ecx, dword [ebp - 0xd24]
inc eax
mov dword [ebp - 0xd38], eax
mov dword [ebp - 0xd34], ecx
cmp eax, 0x1000
jb 0x52b2c3
lea eax, [ebp - 0xd38]
push eax
lea eax, [ebp - 0xd34]
push eax
call fcn.0040379f
mov eax, dword [ebp - 0xd38]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xd34]
push eax
push ecx
call fcn.0056d0c8
pop ecx
pop ecx
lea ecx, [ebp - 0x30c]
mov dword [ebp - 0xd24], ebx
mov dword [ebp - 0xd14], ebx
lea edx, [ecx + 1]
mov dword [ebp - 0xd10], 0xf
mov al, byte [ecx]
inc ecx
test al, al
jne 0x52b2eb
sub ecx, edx
lea eax, [ebp - 0x30c]
push ecx
push eax
lea ecx, [ebp - 0xd24]
call fcn.0043cf29
mov ecx, dword [ebp - 0xd48]
lea eax, [ebp - 0xd24]
push eax
call fcn.0043e45b
mov eax, dword [ebp - 0xd10]
cmp eax, 0x10
jb 0x52b368
mov ecx, dword [ebp - 0xd24]
inc eax
mov dword [ebp - 0xd38], eax
mov dword [ebp - 0xd34], ecx
cmp eax, 0x1000
jb 0x52b35f
lea eax, [ebp - 0xd38]
push eax
lea eax, [ebp - 0xd34]
push eax
call fcn.0040379f
mov eax, dword [ebp - 0xd38]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xd34]
push eax
push ecx
call fcn.0056d0c8
pop ecx
pop ecx
mov bl, 1
jmp 0x52b372
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
inc esi
cmp esi, 0x10
jl 0x52b00f
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056d855
leave
ret