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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e5ef8
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 0x41d55a
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 0x41d58d
push 0x80004005
call fcn.00402890
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 2
call fcn.004b08d6
mov ecx, eax
test ecx, ecx
jne 0x41d5b1
push 0x80004005
call fcn.00402890
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x30], edi
mov byte [ebp - 4], 3
cmp dword [ebx + 0x50], 0
mov dword [ebp - 0x40], 0
jle 0x41d87c
mov eax, dword [ebp - 0x74]
lea esi, [ebx + 0x54]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x24], eax
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x4c], edi
cmp edi, 0xffffffff
je 0x41d860
push esi
lea ecx, [ebp - 0x2c]
call fcn.00405050
mov ecx, dword [ebx + 0x154]
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 0x41d70a
mov esi, dword [ebx + 0x154]
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x50], eax
movzx eax, byte [esi + 0xa]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x41d667
add eax, esi
jmp 0x41d671
mov ecx, str.DPQYYYYYdpwz3_FSV_ju5BIVYbbgkx___6
call fcn.0045fa30
push eax
lea ecx, [ebp - 0x20]
call fcn.00407360
mov eax, dword [ebx + 0x154]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x41d68b
add esi, eax
jmp 0x41d697
mov ecx, str.CMQks_04_ELQXYgv39ESbnz__08_FMV
call fcn.0045fa30
mov esi, eax
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x41d6aa
mov edx, dword [ecx]
call dword [edx + 0x10]
test eax, eax
jne 0x41d6b6
call fcn.004b08d6
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push esi
lea ecx, [ebp - 0x38]
call fcn.00407120
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x38]
push dword [eax - 0xc]
push eax
call fcn.004071f0
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41d6f2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x20]
call fcn.0040ce20
mov ecx, eax
call fcn.0040cd70
push eax
lea ecx, [ebp - 0x30]
call fcn.00405050
mov eax, dword [ebx + 0x158]
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 edi, eax
test edi, edi
je 0x41d758
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]
test edi, edi
je 0x41d791
mov esi, dword [ebx + 0x158]
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 0x41d794
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x4c]
lea eax, [ebp - 0x74]
push 0
push eax
push 0xc
push dword [ebx + 0x15c]
push 0
push 0
push 0x2d1080
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x41d7c5
mov eax, dword [ebx + 0x15c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x30]
push eax
call fcn.00405050
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00405050
mov eax, dword [ebp - 0x3c]
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 0x41d968
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 - 0x3c]
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00405050
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x28]
push edi
mov dword [esi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
add esi, 4
inc eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], eax
cmp eax, dword [ebx + 0x50]
jl 0x41d5e3
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
mov edx, dword [ebx + 8]
lea eax, [ebp - 0x34]
mov ecx, dword [ebx + 4]
shl edx, 5
push eax
add edx, ecx
mov dword [ebp - 0x34], 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 0x41d8c0
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 0x41d8db
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 0x41d8f9
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 0x41d913
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 0x41d92d
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 0x41d94c
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