Function at 0x5391f9
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e71e
mov eax, dword fs:[0]
push eax
mov eax, 0x226c
call fcn.00560590
mov eax, dword [0x5ca1c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2254], eax
lea eax, [ebp - 0x210]
push str..PhysicalDrive_d
push eax
call fcn.00539744
add esp, 0xc
lea eax, [ebp - 0x210]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x2268], fcn.005391e1
mov dword [ebp - 0x226c], esi
mov dword [ebp - 4], ebx
cmp esi, 0xffffffff
je 0x539485
xor eax, eax
mov dword [ebp - 0x2270], ebx
lea edi, [ebp - 0x2234]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x2210]
mov edi, 0x2000
mov dword [ebp - 0x2234], ebx
push edi
push ebx
push eax
mov dword [ebp - 0x2230], ebx
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2270]
push ebx
push eax
push edi
lea eax, [ebp - 0x2210]
push eax
push 0xc
lea eax, [ebp - 0x2234]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x539485
mov eax, dword [ebp - 0x21f8]
lea ecx, [ebp - 0x2210]
add eax, ecx
lea ecx, [ebp - 0x2228]
push eax
call fcn.00401bca
mov dword [ebp - 0x2264], ebx
mov dword [ebp - 0x2260], ebx
mov dword [ebp - 0x225c], ebx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2228]
mov esi, dword [ebp - 0x2214]
cmp esi, 0x10
mov edi, dword [ebp - 0x2228]
cmovae ecx, edi
cmp esi, 0x10
lea eax, [ebp - 0x2228]
cmovae eax, edi
add eax, dword [ebp - 0x2218]
cmp ecx, eax
je 0x53942e
cmp esi, 0x10
lea edx, [ebp - 0x2228]
mov eax, ecx
cmovae edx, edi
sub eax, edx
add eax, 4
cmp eax, dword [ebp - 0x2218]
jge 0x53940d
push dword [ebp - 0x2254]
lea esi, [ecx + 4]
mov dword [ebp - 0x2250], ebx
push esi
push ecx
lea ecx, [ebp - 0x224c]
mov dword [ebp - 0x2238], 0xf
mov dword [ebp - 0x223c], ebx
mov byte [ebp - 0x224c], bl
call fcn.004318d8
lea eax, [ebp - 0x224c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x2278]
call fcn.0042bd55
lea eax, [ebp - 0x2250]
push eax
lea eax, [ebp - 0x2278]
push eax
call fcn.005422b0
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x224c]
mov byte [ebp - 4], 2
mov bl, al
call fcn.00401cbf
test bl, bl
je 0x53940b
movzx eax, word [ebp - 0x2250]
lea ecx, [ebp - 0x2264]
mov dword [ebp - 0x2258], eax
lea eax, [ebp - 0x2258]
push eax
call fcn.0053890c
mov edi, dword [ebp - 0x2228]
mov ecx, esi
mov esi, dword [ebp - 0x2214]
xor ebx, ebx
jmp 0x539328
xor ebx, ebx
lea ecx, [ebp - 0x2264]
call fcn.00408df6
push ebx
push 1
lea ecx, [ebp - 0x2228]
call fcn.00401cbf
mov esi, dword [ebp - 0x226c]
jmp 0x539487
push ebx
sub esp, 0xc
lea eax, [ebp - 0x2264]
mov ecx, esp
push eax
call fcn.00539687
lea eax, [ebp - 0x224c]
push eax
call fcn.00538db6
mov ecx, dword [ebp - 0x2254]
push eax
call fcn.00407694
push ebx
push 1
lea ecx, [ebp - 0x224c]
call fcn.00401d04
lea ecx, [ebp - 0x2264]
call fcn.00408df6
push ebx
push 1
lea ecx, [ebp - 0x2228]
call fcn.00401cbf
mov esi, dword [ebp - 0x226c]
mov bl, 1
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x539496
push esi
call fcn.005391e1
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055fedc
mov esp, ebp
pop ebp
ret 8