Function at 0x536e54
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579f12
mov eax, dword fs:[0]
push eax
mov eax, 0x226c
call fcn.0055e160
mov eax, dword [0x5c31c8]
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.0053739f
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.00536e3c
mov dword [ebp - 0x226c], esi
mov dword [ebp - 4], ebx
cmp esi, 0xffffffff
je 0x5370e0
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 0x5370e0
mov eax, dword [ebp - 0x21f8]
lea ecx, [ebp - 0x2210]
add eax, ecx
lea ecx, [ebp - 0x2228]
push eax
call fcn.00401c4a
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 0x537089
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 0x537068
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.00432653
lea eax, [ebp - 0x224c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x2278]
call fcn.0042cb5c
lea eax, [ebp - 0x2250]
push eax
lea eax, [ebp - 0x2278]
push eax
call fcn.0053fd80
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x224c]
mov byte [ebp - 4], 2
mov bl, al
call fcn.00401d3f
test bl, bl
je 0x537066
movzx eax, word [ebp - 0x2250]
lea ecx, [ebp - 0x2264]
mov dword [ebp - 0x2258], eax
lea eax, [ebp - 0x2258]
push eax
call fcn.00536567
mov edi, dword [ebp - 0x2228]
mov ecx, esi
mov esi, dword [ebp - 0x2214]
xor ebx, ebx
jmp 0x536f83
xor ebx, ebx
lea ecx, [ebp - 0x2264]
call fcn.00408f76
push ebx
push 1
lea ecx, [ebp - 0x2228]
call fcn.00401d3f
mov esi, dword [ebp - 0x226c]
jmp 0x5370e2
push ebx
sub esp, 0xc
lea eax, [ebp - 0x2264]
mov ecx, esp
push eax
call fcn.005372e2
lea eax, [ebp - 0x224c]
push eax
call fcn.00536a11
mov ecx, dword [ebp - 0x2254]
push eax
call fcn.00407814
push ebx
push 1
lea ecx, [ebp - 0x224c]
call fcn.00401d84
lea ecx, [ebp - 0x2264]
call fcn.00408f76
push ebx
push 1
lea ecx, [ebp - 0x2228]
call fcn.00401d3f
mov esi, dword [ebp - 0x226c]
mov bl, 1
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x5370f1
push esi
call fcn.00536e3c
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.0055daac
mov esp, ebp
pop ebp
ret 8