Function at 0x42b7e0
Capabilities:
Get disk information via ioctl
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e6c18
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x7cf070]
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 ebx, ecx
push ecx
push 0
call fcn.00421910
call fcn.004b08d6
mov ecx, eax
test ecx, ecx
jne 0x42b82a
push 0x80004005
call fcn.00402890
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0
call fcn.0041d970
mov byte [ebp - 4], 1
call fcn.004b08d6
mov ecx, eax
test ecx, ecx
jne 0x42b85d
push 0x80004005
call fcn.00402890
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 2
call fcn.004b08d6
mov ecx, eax
test ecx, ecx
jne 0x42b881
push 0x80004005
call fcn.00402890
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x34], edi
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.0042bc50
cmp dword [ebx + 0x28], 0
mov dword [ebp - 0x44], 0
jle 0x42bb51
mov ecx, dword [ebp - 0x74]
lea eax, [ebx + 0x2c]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], ecx
nop word [eax + eax]
push 0
push 0
push 3
push 0
push 7
push closesocket
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42bb32
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x30]
call fcn.00405050
mov ecx, dword [ebx + 0x12c]
lea eax, [ebp - 0x7c]
push 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push dword [ecx + 4]
mov dword [ebp - 0x18], 0
push ecx
push 0xc
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x42bb32
mov esi, dword [ebx + 0x12c]
cmp dword [esi + 0x1c], 7
jne 0x42bb32
movzx eax, byte [esi + 0xa]
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x42b947
add eax, esi
jmp 0x42b951
mov ecx, str.CLQ_____diipq__57EFMMWZijux_1_KLQZZemny
call fcn.0045fa30
push eax
lea ecx, [ebp - 0x20]
call fcn.00407360
mov eax, dword [ebx + 0x12c]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x42b96b
add esi, eax
jmp 0x42b977
mov ecx, str.HRUVVVVVelz5_DR_anoq_59_HVWWit___:IOT
call fcn.0045fa30
mov esi, eax
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x42b98a
mov edx, dword [ecx]
call dword [edx + 0x10]
test eax, eax
jne 0x42b996
call fcn.004b08d6
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push esi
lea ecx, [ebp - 0x3c]
call fcn.00407120
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x3c]
push dword [eax - 0xc]
push eax
call fcn.004071f0
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42b9d2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x34]
call fcn.00405050
mov eax, dword [ebx + 0x130]
push 0x208
push 0x40
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0
mov esi, eax
lea eax, [ebp - 0x80]
push eax
push 0x208
push esi
push 0
push 0
push 0x2d0c04
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x42ba2d
movups xmm0, xmmword [esi + 8]
mov eax, dword [ebp - 0x48]
movups xmmword [eax], xmm0
movq xmm0, qword [esi + 0x18]
movq qword [eax + 0x10], xmm0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x4c], 0
je 0x42ba68
mov esi, dword [ebx + 0x130]
push 0
mov eax, dword [esi + 0xc]
mul dword [esi + 0x10]
push dword [esi + 0x14]
push edx
push eax
call fcn.005e9e30
push dword [esi + 4]
push dword [esi]
push edx
push eax
call fcn.005e9e30
mov esi, edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], esi
jmp 0x42ba6b
mov esi, dword [ebp - 0x28]
push 0
lea eax, [ebp - 0x74]
push eax
push 0xc
push dword [ebx + 0x134]
push 0
push 0
push 0x2d1080
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x42ba99
mov eax, dword [ebx + 0x134]
mov eax, dword [eax + 4]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x64], 7
push eax
lea ecx, [ebp - 0x68]
call fcn.00405050
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x30]
push eax
call fcn.00405050
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x54], esi
mov esi, dword [ebx + 8]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x58], eax
test esi, esi
js 0x42bc3d
push ecx
lea eax, [esi + 1]
mov ecx, ebx
push eax
call fcn.00421910
mov eax, dword [ebp - 0x70]
shl esi, 5
add esi, dword [ebx + 4]
mov dword [esi], eax
lea ecx, [esi + 4]
lea eax, [ebp - 0x6c]
push eax
call fcn.00405050
lea eax, [ebp - 0x68]
lea ecx, [esi + 8]
push eax
call fcn.00405050
mov eax, dword [ebp - 0x64]
lea ecx, [esi + 0x14]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x40]
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00405050
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
push edi
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x2c]
inc ecx
add eax, 4
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x2c], eax
cmp ecx, dword [ebx + 0x28]
jl 0x42b8c0
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x34]
mov edx, dword [ebx + 8]
lea eax, [ebp - 0x38]
mov ecx, dword [ebx + 4]
shl edx, 5
push eax
add edx, ecx
mov dword [ebp - 0x38], 0x420310
mov eax, edx
sub eax, ecx
sar eax, 5
push eax
call fcn.00422650
or ebx, 0xffffffff
mov byte [ebp - 4], 2
add esp, 8
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x42bb95
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42bbb0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x5c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42bbce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x68]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42bbe8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x6c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42bc02
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x42bc21
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.005e9199
mov esp, ebp
pop ebp
ret
call fcn.004b03fc
int3