Function at 0x50b190
Capabilities:
Get disk information
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62c7c3
mov eax, dword fs:[0]
push eax
sub esp, 0xd64
mov eax, dword [0x6ec7c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.Devicer::listDevInfo
lea ecx, [ebp - 0xcf4]
mov dword [ebp - 0xd44], 0
call fcn.00562ae0
push 0x12
push 0
push 0
push 0x693be0
mov dword [ebp - 4], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov dword [ebp - 0xd40], eax
cmp eax, 0xffffffff
je 0x50bb35
lea ecx, [ebp - 0xcbc]
mov dword [ebp - 0xca0], 0x1c
push ecx
push 0
push 0x693be0
push 0
lea esi, [ebp - 0xc28]
mov dword [ebp - 0xcbc], 0x1c
push eax
mov dword [ebp - 0xd5c], esi
mov dword [ebp - 0xc28], 6
mov dword [ebp - 0xd58], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x50bb35
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
nop word [eax + eax]
lea eax, [ebp - 0xca0]
mov dword [ebp - 0xd3c], 6
push eax
lea eax, [ebp - 0xd3c]
push eax
push 6
push esi
lea eax, [ebp - 0xcbc]
push eax
push dword [ebp - 0xd40]
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
jne 0x50b2f9
call edi
cmp eax, 0x7a
jne 0x50b2c1
mov eax, dword [ebp - 0xd3c]
mov ecx, 2
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.00603b83
mov esi, eax
add esp, 4
mov dword [esi], 6
jmp 0x50b2c7
call edi
test eax, eax
jne 0x50b2f3
lea eax, [ebp - 0xca0]
push eax
lea eax, [ebp - 0xd3c]
push eax
push dword [ebp - 0xd3c]
lea eax, [ebp - 0xcbc]
push esi
push eax
push dword [ebp - 0xd40]
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
je 0x50b292
mov dword [ebp - 0xd5c], esi
lea ecx, [esi + 4]
mov edi, ecx
lea edx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x50b301
sub edi, edx
sar edi, 1
push 0x32
mov dword [esi + edi*2 + 4], 0x5c
lea esi, [ebp - 0xc20]
lea esi, [esi + edi*2]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x50b9d7
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50b340
xor eax, eax
sub ecx, edx
push eax
push eax
push 3
push eax
sar ecx, 1
lea esi, [esi + ecx*2]
mov word [esi - 2], ax
push 3
push eax
lea eax, [ebp - 0xc20]
mov dword [ebp - 0xd38], esi
lea eax, [eax + edi*2]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xd34], eax
cmp eax, 0xffffffff
je 0x50b41d
push 0x400
lea eax, [ebp - 0x428]
mov dword [ebp - 0xd48], 0
push 0
push eax
mov dword [ebp - 0xc84], 0
mov dword [ebp - 0xc80], 0
call fcn.0060ddfb
add esp, 0xc
mov dword [ebp - 0x424], 0x400
lea eax, [ebp - 0xd48]
push 0
push eax
push 0x400
lea eax, [ebp - 0x428]
push eax
push 0xc
lea eax, [ebp - 0xc84]
push eax
push 0x2d1400
push dword [ebp - 0xd34]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push dword [ebp - 0xd34]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xd54]
test esi, esi
mov esi, dword [ebp - 0xd38]
cmovne eax, dword [ebp - 0x40c]
mov dword [ebp - 0xd54], eax
jmp 0x50b423
mov eax, dword [ebp - 0xd54]
mov dword [esi - 2], 0x5c
cmp eax, 7
jne 0x50b836
lea ecx, [ebp - 0xc20]
lea ecx, [ecx + edi*2]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50b440
mov eax, dword [ebp - 0xd3c]
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 5]
add esi, edi
add eax, esi
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0xd60]
mov dword [ebp - 0xd4c], eax
push ecx
mov ecx, dword [ebp - 0xd3c]
sub ecx, esi
mov dword [ebp - 0xd60], 0
push ecx
push eax
lea eax, [ebp - 0xc20]
lea eax, [eax + edi*2]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x50b877
xor esi, esi
lea eax, [ebp - 0xd34]
push eax
push esi
push esi
lea eax, [ebp - 0xca0]
mov dword [ebp - 0xd48], esi
push eax
push dword [ebp - 0xd40]
mov dword [ebp - 0xd34], esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdW]
test eax, eax
jne 0x50b526
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x7a
jne 0x50bb35
test esi, esi
je 0x50b4e8
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0xd34]
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea eax, [ebp - 0xd34]
push eax
push dword [ebp - 0xd34]
lea eax, [ebp - 0xca0]
mov dword [ebp - 0xd48], esi
push esi
push eax
push dword [ebp - 0xd40]
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdW]
test eax, eax
je 0x50b4d2
mov ecx, esi
mov dword [ebp - 0xc30], 0
xorps xmm0, xmm0
mov dword [ebp - 0xc2c], 0
movups xmmword [ebp - 0xc40], xmm0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50b550
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0xc40]
call fcn.00414450
xorps xmm0, xmm0
mov dword [ebp - 0xc4c], 0
xor eax, eax
mov dword [ebp - 0xc48], 7
movups xmmword [ebp - 0xc5c], xmm0
mov word [ebp - 0xc5c], ax
cmp dword [ebp - 0xc2c], 7
lea eax, [ebp - 0xc40]
mov ecx, dword [ebp - 0xc40]
mov esi, dword [ebp - 0xc30]
cmova eax, ecx
mov byte [ebp - 4], 2
mov dword [ebp - 0xd68], ecx
mov dword [ebp - 0xd64], eax
cmp esi, 7
ja 0x50b5e9
mov dword [ebp - 0xc4c], esi
add esi, esi
push esi
push eax
lea eax, [ebp - 0xc5c]
push eax
call fcn.0060ddf5
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0xc5c], ax
jmp 0x50b65e
cmp esi, 0x7ffffffe
ja 0x50bb65
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x50b608
mov eax, accept
jmp 0x50b613
cmp eax, 0xa
mov ecx, 0xa
cmovb eax, ecx
mov dword [ebp - 0xd38], eax
lea eax, [ebp - 0xd38]
push eax
lea eax, [ebp - 0xc5c]
push eax
call fcn.00414360
mov ecx, dword [ebp - 0xd38]
mov edi, eax
mov dword [ebp - 0xc4c], esi
add esi, esi
push esi
push dword [ebp - 0xd64]
mov dword [ebp - 0xc48], ecx
push edi
call fcn.0060ddef
add esp, 0x14
mov dword [ebp - 0xc5c], edi
xor eax, eax
mov word [edi + esi], ax
mov eax, dword [ebp - 0xd4c]
mov byte [ebp - 0xd50], 0
mov al, byte [eax]
mov byte [ebp - 0xd2d], al
mov byte [ebp - 0xc44], al
mov eax, dword [0x6ffc58]
mov dword [ebp - 0xd38], eax
mov esi, dword [eax]
cmp esi, eax
je 0x50b6d9
nop word [eax + eax]
lea eax, [ebp - 0xc5c]
push eax
lea edi, [esi + 8]
push edi
call fcn.00421be0
add esp, 8
test al, al
mov eax, dword [ebp - 0xd50]
je 0x50b6c7
mov cl, byte [ebp - 0xd2d]
cmp byte [edi + 0x18], cl
mov ecx, 1
movzx eax, al
cmove eax, ecx
mov dword [ebp - 0xd50], eax
mov esi, dword [esi]
cmp esi, dword [ebp - 0xd38]
jne 0x50b690
test al, al
jne 0x50b7d6
cmp dword [0x6ffc5c], 0x71c71c7
je 0x50bb5b
mov dword [ebp - 0xd70], 0x6ffc58
push 0x24
mov byte [ebp - 4], 3
mov dword [ebp - 0xd6c], 0
call fcn.0060388f
mov edi, eax
add esp, 4
lea eax, [ebp - 0xc5c]
mov dword [ebp - 0xd6c], edi
push eax
lea ecx, [edi + 8]
call fcn.004146c0
mov cl, byte [ebp - 0xc44]
mov byte [edi + 0x20], cl
mov ecx, dword [ebp - 0xd38]
inc dword [0x6ffc5c]
mov byte [ebp - 4], 2
mov dword [ebp - 0xd6c], 0
mov eax, dword [ecx + 4]
mov dword [edi], ecx
mov dword [edi + 4], eax
mov dword [ecx + 4], edi
lea ecx, [ebp - 0xc78]
mov dword [eax], edi
lea eax, [ebp - 0xc5c]
push eax
call fcn.004146c0
mov al, byte [ebp - 0xc44]
mov byte [ebp - 0xc60], al
push str.Devicer::addDeviceToListAndProceed
lea ecx, [ebp - 0xd2c]
mov byte [ebp - 4], 4
call fcn.00562ae0
mov ecx, 0x6ff280
mov byte [ebp - 4], 5
call fcn.004cb870
test eax, eax
je 0x50b7c0
sub esp, 0x1c
lea eax, [ebp - 0xc78]
mov esi, esp
mov ecx, esi
mov dword [ebp - 0xd4c], esi
push eax
call fcn.004146c0
mov al, byte [ebp - 0xc60]
mov byte [esi + 0x18], al
call fcn.0050ae70
add esp, 0x1c
lea ecx, [ebp - 0xd2c]
call fcn.005630c0
lea ecx, [ebp - 0xc78]
call fcn.00417eb0
mov eax, dword [ebp - 0xd48]
test eax, eax
je 0x50b7e7
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0xc5c]
call fcn.00417eb0
mov eax, dword [ebp - 0xc2c]
mov byte [ebp - 4], 0
cmp eax, 7
jbe 0x50b836
mov edx, dword [ebp - 0xd68]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x50b82c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50bb2f
push ecx
push edx
call fcn.00604b8c
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0xd58]
lea ecx, [ebp - 0xcbc]
push ecx
inc eax
push eax
push 0x693be0
push 0
push dword [ebp - 0xd40]
mov dword [ebp - 0xd58], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x50bb35
mov esi, dword [ebp - 0xd5c]
jmp 0x50b260
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.0050a580
add esp, 8
lea ecx, [ebp - 0xd2d]
push ecx
lea ecx, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0xc74]
call fcn.0050a490
mov esi, dword [ebp - 0xd44]
or esi, 0x30
push 0x32
push str.GetVolumePathNamesForVolumeName_failed_with_error
push 0
lea ecx, [ebp - 0xc74]
mov byte [ebp - 4], 6
call fcn.00418790
mov dword [ebp - 0xc30], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xc40], xmm0
mov dword [ebp - 0xc2c], 0
or esi, 8
movups xmm0, xmmword [eax]
mov dword [ebp - 0xd44], esi
movups xmmword [ebp - 0xc40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xc30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
cmp dword [ebp - 0xc2c], 0xf
lea eax, [ebp - 0xc40]
lea ecx, [ebp - 0xcf4]
mov byte [ebp - 4], 7
cmova eax, dword [ebp - 0xc40]
push eax
call fcn.00563760
mov ecx, dword [ebp - 0xc2c]
mov byte [ebp - 4], 6
cmp ecx, 0xf
jbe 0x50b975
mov edx, dword [ebp - 0xc40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x50b96b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50bb2f
push ecx
push edx
call fcn.00604b8c
add esp, 8
mov ecx, dword [ebp - 0xc60]
mov dword [ebp - 0xc30], 0
mov dword [ebp - 0xc2c], 0xf
mov byte [ebp - 0xc40], 0
mov byte [ebp - 4], 0
cmp ecx, 0xf
jbe 0x50b83c
mov edx, dword [ebp - 0xc74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x50b9c8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50bb2f
push ecx
push edx
call fcn.00604b8c
add esp, 8
jmp 0x50b83c
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.0050a580
add esp, 8
lea ecx, [ebp - 0xd2d]
push ecx
lea ecx, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0xc74]
call fcn.0050a490
mov esi, dword [ebp - 0xd44]
or esi, 6
push 0x33
push str.GetVolumeNameForVolumeMountPoint_failed_with_error
push 0
lea ecx, [ebp - 0xc74]
mov byte [ebp - 4], 8
call fcn.00418790
mov dword [ebp - 0xc30], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xc40], xmm0
mov dword [ebp - 0xc2c], 0
or esi, 1
movups xmm0, xmmword [eax]
mov dword [ebp - 0xd44], esi
movups xmmword [ebp - 0xc40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xc30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
cmp dword [ebp - 0xc2c], 0xf
lea eax, [ebp - 0xc40]
lea ecx, [ebp - 0xcf4]
mov byte [ebp - 4], 9
cmova eax, dword [ebp - 0xc40]
push eax
call fcn.00563760
mov ecx, dword [ebp - 0xc2c]
mov byte [ebp - 4], 8
cmp ecx, 0xf
jbe 0x50bad1
mov edx, dword [ebp - 0xc40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x50bac7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50bb2f
push ecx
push edx
call fcn.00604b8c
add esp, 8
mov ecx, dword [ebp - 0xc60]
mov dword [ebp - 0xc30], 0
mov dword [ebp - 0xc2c], 0xf
mov byte [ebp - 0xc40], 0
mov byte [ebp - 4], 0
cmp ecx, 0xf
jbe 0x50b83c
mov edx, dword [ebp - 0xc74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x50bb20
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50bb2f
push ecx
push edx
call fcn.00604b8c
add esp, 8
jmp 0x50b83c
call dword [0x63e2e0]
lea ecx, [ebp - 0xcf4]
call fcn.005630c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00604ed9
mov esp, ebp
pop ebp
ret
push str.list_too_long
call fcn.00605e1f
call fcn.00417f10
int3