Function at 0x517630
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd9c
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x517903
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
push edi
mov edi, ebx
mov esi, 0x517918
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
push edi
lea edi, [ebx + 0x14]
mov esi, 0x51792c
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
pop edi
mov eax, dword [0x517954]
mov dword [ebx + 0x3c], eax
mov eax, dword [0x517958]
mov dword [ebx + 0x40], eax
xor eax, eax
mov dword [ebx + 0x44], eax
xor eax, eax
mov dword [ebx + 0x48], eax
xor eax, eax
mov dword [ebx + 0x4c], eax
xor eax, eax
mov dword [ebx + 0x50], eax
lea edx, [ebp - 0x258]
movzx eax, byte [ebp + 8]
call fcn.0041208c
mov ecx, dword [ebp - 0x258]
lea eax, [ebp - 4]
mov edx, 0x517968
call fcn.00407b58
push 0
push 0
push 3
push 0
push 3
push 0
mov eax, dword [ebp - 4]
call fcn.00407700
push eax
call sub.kernel32.dll_CreateFileW_1
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x5178cb
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 0xc], 0xffffffff
jne 0x517711
call fcn.00405fec
jmp 0x5178d2
xor eax, eax
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x26], 0
lea esi, [ebp - 0x251]
mov eax, 0x22c
mov dword [esi + 4], eax
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x20], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi + 4]
push eax
push esi
push 0xc
lea eax, [ebp - 0x24]
push eax
push 0x2d1400
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x517833
lea esi, [ebp - 0x251]
mov eax, 0x22d
sub eax, dword [esi + 0x18]
call fcn.00404214
mov edi, eax
mov eax, dword [esi + 0x18]
lea edx, [ebp + eax - 0x251]
mov eax, edi
call fcn.004132e0
mov eax, 0x22d
sub eax, dword [esi + 0x10]
call fcn.00404214
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x10]
lea edx, [ebp + eax - 0x251]
mov eax, dword [ebp - 0x14]
call fcn.004132e0
mov eax, 0x22d
sub eax, dword [esi + 0x14]
call fcn.00404214
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x14]
lea edx, [ebp + eax - 0x251]
mov eax, dword [ebp - 0x18]
call fcn.004132e0
movzx eax, byte [edi]
call fcn.00517bcc
test al, al
jne 0x5177dc
movzx eax, byte [edi + 0x13]
call fcn.00517bcc
test al, al
je 0x517833
lea eax, [ebp - 0x260]
mov edx, edi
mov ecx, 0
call fcn.004069d4
mov eax, dword [ebp - 0x260]
lea edx, [ebp - 0x25c]
call fcn.0051798c
mov edx, dword [ebp - 0x25c]
mov eax, ebx
call fcn.004133c0
lea eax, [ebx + 0x14]
mov edx, dword [ebp - 0x14]
call fcn.004132e0
lea eax, [ebx + 0x3c]
mov edx, dword [ebp - 0x18]
call fcn.004132e0
mov dword [ebp - 8], 0xffffffff
call fcn.00405fec
jmp 0x5178d2
xor eax, eax
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x26], 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0x22d
lea eax, [ebp - 0x251]
push eax
push 0
push 0
push 0x2d0c10
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x5178b4
lea esi, [ebp - 0x251]
lea eax, [ebp - 0x264]
movzx edx, byte [esi + 0x10]
mov ecx, 0
call fcn.004069d4
mov edx, dword [ebp - 0x264]
mov eax, edi
call fcn.004133c0
movzx eax, byte [edi]
call fcn.00517bcc
test al, al
jne 0x5178a4
movzx eax, byte [edi + 0x13]
call fcn.00517bcc
test al, al
je 0x5178b4
mov eax, ebx
mov edx, edi
call fcn.004132e0
mov dword [ebp - 8], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5178d2
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51790a
lea eax, [ebp - 0x264]
mov edx, 3
call fcn.00406704
lea eax, [ebp - 0x258]
call fcn.00407664
lea eax, [ebp - 4]
call fcn.00407664
ret