Function at 0x577db0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x84
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x44], 0x605628
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x34], 0
lea esi, [eax + 0x18]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x1c], 0x42bbb0
mov dword [ebp - 0x38], 1
lea edi, [ebp - 0x44]
lea ebx, [ebp - 0x54]
push edi
push ebx
call fcn.0041acc0
add esp, 8
movsd xmm0, qword [ebp - 0x54]
mov edx, dword [ebp - 0x4c]
movsd qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], edx
mov ecx, dword [ebp - 0x2c]
call fcn.00581250
test al, al
je 0x577fac
mov edi, dword [ebp - 0x24]
mov eax, dword [esi]
mov ecx, dword [ebp - 0x2c]
mov esi, 1
mov ebx, 1
test edi, edi
mov dword [ebp - 0x10], eax
je 0x577e79
js 0x5782e7
mov eax, dword [0x607474]
mov ebx, dword [0x607460]
movzx eax, byte [eax]
mov eax, dword [ebx]
mov dword [ebp - 0x14], ecx
test eax, eax
jne 0x577e63
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x5782cd
mov dword [ebx], eax
push edi
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
mov ecx, dword [ebp - 0x14]
mov ebx, eax
test eax, eax
je 0x5782cd
push edi
push ecx
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], edi
mov edi, dword [eax + 8]
mov ebx, dword [eax]
test edi, edi
je 0x577ed5
js 0x5782ee
mov eax, dword [0x607474]
mov esi, dword [0x607460]
movzx eax, byte [eax]
mov eax, dword [esi]
test eax, eax
jne 0x577ec2
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x5782da
mov dword [esi], eax
push edi
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
mov esi, eax
test eax, eax
je 0x5782da
push edi
push ebx
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
mov edx, dword [eax + 0xc]
lea ecx, [ebp - 0x84]
push dword [eax + 0x14]
call fcn.00566500
add esp, 4
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x58], eax
call fcn.005810a0
lea edi, [ebp - 0x44]
mov ebx, eax
mov esi, edx
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call sub.KERNEL32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x5780ed
mov dword [ebp - 0x90], 7
mov dword [ebp - 0x8c], 0
mov byte [ebp - 0x88], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x5c], 0
lea edx, [ebp - 0x90]
lea ecx, [ebp - 0x5c]
push 0
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 0xc
push edx
push 0x2d1400
push eax
call sub.KERNEL32.dll_DeviceIoControl
test eax, eax
je 0x578149
cmp dword [ebp - 0x5c], 0xc
jne 0x578149
cmp byte [ebp - 0x18], 0
setne byte [ebp - 0x14]
jmp 0x57819a
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x44], 0x605670
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x1c], 0x567700
mov dword [ebp - 0x38], 1
push edi
push ebx
call fcn.0041acc0
add esp, 8
movsd xmm0, qword [ebp - 0x54]
mov eax, dword [ebp - 0x4c]
mov edi, dword [0x607474]
mov ebx, dword [0x607460]
movsd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x3c], eax
movsd qword [ebp - 0x44], xmm0
movzx eax, byte [edi]
mov eax, dword [ebx]
test eax, eax
jne 0x578021
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x5782b1
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x5782b1
mov esi, eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 8], eax
movsd xmm0, qword [ebp - 0x20]
movsd qword [esi], xmm0
movzx eax, byte [edi]
mov eax, dword [ebx]
test eax, eax
jne 0x57805c
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x5782bf
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x5782bf
mov dword [eax], esi
mov dword [eax + 4], 0x6044d0
mov byte [eax + 8], 0x27
mov ecx, dword [ebp + 8]
cmp dword [ebp - 0x28], 0
mov dword [ecx + 4], eax
mov dword [ecx], 3
mov byte [ecx + 0x35], 2
je 0x57809d
push dword [ebp - 0x2c]
push 0
push dword [ebx]
call sub.KERNEL32.dll_HeapFree
mov esi, dword [ebp + 0xc]
cmp dword [esi + 4], 0
je 0x5780b1
push dword [esi]
push 0
push dword [ebx]
call sub.KERNEL32.dll_HeapFree
mov edi, dword [esi + 0x14]
mov eax, dword [esi + 0xc]
test edi, edi
mov dword [ebp - 0x10], eax
je 0x578289
mov eax, dword [ebp - 0x10]
lea esi, [eax + 4]
jmp 0x5780da
add esi, 0xc
dec edi
je 0x578289
cmp dword [esi], 0
je 0x5780d0
push dword [esi - 4]
push 0
push dword [ebx]
call sub.KERNEL32.dll_HeapFree
jmp 0x5780d0
call sub.KERNEL32.dll_GetLastError
lea ecx, [ebp - 0x58]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x44], 0x6057a4
mov dword [ebp - 0x40], 2
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x54], ecx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x50], 0x561b60
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], 0x42bbb0
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], 2
push edi
call fcn.0044fbf0
add esp, 4
mov word [ebx], 0
mov byte [ebp - 0x14], 4
test esi, esi
jne 0x5781a3
jmp 0x5781b2
call sub.KERNEL32.dll_GetLastError
lea ecx, [ebp - 0x58]
lea edx, [ebp - 0x78]
mov dword [ebp - 0x44], 0x605750
mov dword [ebp - 0x40], 2
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x54], ecx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x50], 0x561b60
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], 0x42bbb0
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], 2
push edi
call fcn.0044fbf0
add esp, 4
mov byte [ebp - 0x14], 4
mov word [ebx], 0
test esi, esi
je 0x5781b2
mov eax, dword [0x607460]
push ebx
push 0
push dword [eax]
call sub.KERNEL32.dll_HeapFree
push edi
call fcn.0057d1e0
add esp, 4
mov eax, dword [ebp - 0x44]
mov ecx, 1
test eax, eax
je 0x5781d1
mov ecx, eax
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
jmp 0x5781d3
mov edx, eax
mov esi, dword [ebp - 0x60]
mov edi, dword [ebp + 8]
movsd xmm0, qword [ebp - 0x68]
mov ebx, dword [ebp - 0x10]
cmp dword [ebp - 0x28], 0
mov dword [edi + 0xc], esi
movsd qword [edi + 4], xmm0
mov esi, dword [ebp - 0x6c]
movsd xmm0, qword [ebp - 0x74]
mov dword [edi + 0x18], esi
movsd qword [edi + 0x10], xmm0
mov esi, dword [ebp - 0x7c]
movsd xmm0, qword [ebp - 0x84]
mov dword [edi + 0x24], esi
movsd qword [edi + 0x1c], xmm0
mov dword [edi], ebx
mov dword [edi + 0x28], ecx
movzx ecx, byte [ebp - 0x14]
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], edx
mov byte [edi + 0x34], cl
mov byte [edi + 0x35], 0
je 0x578239
mov eax, dword [0x607460]
push dword [ebp - 0x2c]
push 0
push dword [eax]
call sub.KERNEL32.dll_HeapFree
mov esi, dword [ebp + 0xc]
cmp dword [esi + 4], 0
je 0x578252
mov eax, dword [0x607460]
push dword [esi]
push 0
push dword [eax]
call sub.KERNEL32.dll_HeapFree
mov edi, dword [esi + 0x14]
mov eax, dword [esi + 0xc]
test edi, edi
mov dword [ebp - 0x10], eax
je 0x578289
mov eax, dword [ebp - 0x10]
mov esi, dword [0x607460]
lea ebx, [eax + 4]
jmp 0x578276
add ebx, 0xc
dec edi
je 0x578289
cmp dword [ebx], 0
je 0x578270
push dword [ebx - 4]
push 0
push dword [esi]
call sub.KERNEL32.dll_HeapFree
jmp 0x578270
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x10], 0
je 0x5782a3
mov eax, dword [0x607460]
push dword [ebp - 0x10]
push 0
push dword [eax]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [ebp + 8]
add esp, 0x84
pop esi
pop edi
pop ebx
pop ebp
ret
push 0xc
push 4
call fcn.0041a8c0
add esp, 8
jmp 0x5782f3
push 0xc
push 4
call fcn.0041a8c0
add esp, 8
jmp 0x5782f3
push edi
push 1
call fcn.0041a8c0
add esp, 8
jmp 0x5782f3
push edi
push 1
call fcn.0041a8c0
add esp, 8
jmp 0x5782f3
call fcn.0041a880
jmp 0x5782f3
call fcn.0041a880
ud2