Function at 0x546790
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73aaa8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x857060]
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 0x7ea22c
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x54686b
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 0x546864
mov esi, dword [ebp - 0x3c]
push esi
call fcn.006d0f4b
push esi
mov edi, eax
push 0
push edi
call fcn.006e9470
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 0x546872
push edi
call fcn.006d0c28
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x546a22
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 0x5469de
cmp eax, dword [edi + 4]
jae 0x5469de
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 0x5468c0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x5c]
call fcn.00426e90
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00426bf0
mov edx, dword [ebp - 0x48]
cmp edx, 0x10
jb 0x546913
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x546909
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x546a43
push edx
push ecx
call fcn.006d0bf7
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 0x54693a
lea ecx, [esi + eax]
mov edx, eax
cmp eax, ecx
jae 0x54693a
nop
cmp byte [edx], 0x20
jne 0x546995
inc edx
cmp edx, ecx
jb 0x546930
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.006e8910
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 0x546999
or ecx, 0xffffffff
lea eax, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
add ecx, edx
cmp byte [ecx], 0x20
jne 0x546991
cmp ecx, edx
je 0x546999
dec ecx
cmp byte [ecx], 0x20
je 0x546987
sub ecx, edx
jmp 0x54699c
sub edx, eax
jmp 0x54693d
or ecx, 0xffffffff
inc ecx
cmp esi, ecx
jb 0x546a3e
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.0053bbc0
push edi
call fcn.006d0c28
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x5469f0
push edi
call fcn.006d0c28
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x546a20
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x546a16
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x546a43
push edx
push ecx
call fcn.006d0bf7
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.006d0965
mov esp, ebp
pop ebp
ret
call fcn.0044b3c0
call fcn.006f1bea
int3