Function at 0x51df40
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ec768
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x82f084]
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
mov dword [ebp - 0x44], ecx
push 0
push 0
push 3
push 0
push 3
push 0
push str..PhysicalDrive0
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x51e01b
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push eax
push 8
lea eax, [ebp - 0x40]
mov dword [ebp - 0x38], 0
push eax
push 0xc
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], 0
push eax
push 0x2d1400
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
push ebx
movlpd qword [ebp - 0x40], xmm0
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x51e014
mov esi, dword [ebp - 0x3c]
push esi
call fcn.0067db09
push esi
mov edi, eax
push 0
push edi
call fcn.00690450
add esp, 0x10
lea eax, [ebp - 0x2c]
push 0
push eax
push esi
push edi
push 0xc
lea eax, [ebp - 0x38]
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
jne 0x51e022
push edi
call fcn.0067d914
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor al, al
jmp 0x51e1d2
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
test eax, eax
je 0x51e18e
cmp eax, dword [edi + 4]
jae 0x51e18e
lea edx, [eax + edi]
mov dword [ebp - 0x4c], 0
mov ecx, edx
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51e070
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x5c]
call fcn.00430160
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00444e20
mov edx, dword [ebp - 0x48]
cmp edx, 0x10
jb 0x51e0c3
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x51e0b9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51e1f3
push edx
push ecx
call fcn.0067d8e3
add esp, 8
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
test esi, esi
je 0x51e0ea
lea ecx, [esi + eax]
mov edx, eax
cmp eax, ecx
jae 0x51e0ea
nop
cmp byte [edx], 0x20
jne 0x51e145
inc edx
cmp edx, ecx
jb 0x51e0e0
or edx, 0xffffffff
cmp esi, edx
lea ecx, [ebp - 0x28]
cmovb edx, esi
cmp dword [ebp - 0x14], 0x10
cmovae ecx, dword [ebp - 0x28]
sub esi, edx
mov dword [ebp - 0x18], esi
lea eax, [esi + 1]
push eax
lea eax, [ecx + edx]
push eax
push ecx
call fcn.0068fed0
mov esi, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
add esp, 0xc
cmp dword [ebp - 0x14], 0x10
cmovae edx, dword [ebp - 0x28]
test esi, esi
je 0x51e149
or ecx, 0xffffffff
lea eax, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
add ecx, edx
cmp byte [ecx], 0x20
jne 0x51e141
cmp ecx, edx
je 0x51e149
dec ecx
cmp byte [ecx], 0x20
je 0x51e137
sub ecx, edx
jmp 0x51e14c
sub edx, eax
jmp 0x51e0ed
or ecx, 0xffffffff
inc ecx
cmp esi, ecx
jb 0x51e1ee
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x44]
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], ecx
mov byte [eax + ecx], 0
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae ecx, dword [ebp - 0x28]
call fcn.0050d0e0
push edi
call fcn.0067d914
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov bl, 1
jmp 0x51e1a0
push edi
call fcn.0067d914
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor bl, bl
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x51e1d0
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x51e1c6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51e1f3
push edx
push ecx
call fcn.0067d8e3
add esp, 8
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.0067d651
mov esp, ebp
pop ebp
ret
call fcn.00438080
call fcn.00692c65
int3