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

Disassembly:
push 0xffffffffffffffff
push 0x471c11
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x489320]
xor eax, esp
mov dword [esp + 0x41c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x489320]
xor eax, esp
push eax
lea eax, [esp + 0x434]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
call fcn.00405380
xor ebx, ebx
push 0x4799b8
lea eax, [esp + 0x18]
mov dword [esp + 0x440], ebx
call fcn.0040e9a0
push 0x47abf0
lea eax, [esp + 0x18]
call fcn.0040e9a0
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.004108b0
add esp, 4
mov byte [esp + 0x43c], 1
mov edx, dword [0x48c7fc]
mov eax, dword [edx + 0xc]
mov ecx, 0x48c7fc
mov dword [esp + 0x20], ebx
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov byte [esp + 0x43c], 2
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
mov ebp, 0x400
sub eax, ebp
or eax, ecx
jge 0x41060b
mov ecx, ebp
lea eax, [esp + 0x1c]
call fcn.00406b60
mov esi, dword [esp + 0x1c]
cmp dword [esi - 8], ebp
jge 0x41061a
push 0x80070057
call fcn.00406db0
mov dword [esi - 0xc], ebp
xor ecx, ecx
push ebp
mov word [esi + 0x800], cx
mov edx, dword [esp + 0x18]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov edi, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00454737
add esp, 8
cmp eax, ebx
jl 0x410610
cmp eax, dword [esi - 8]
jg 0x410610
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp edi, ebx
jbe 0x4106f4
push 0x10
push str.DeviceHarddisk
push esi
call fcn.00453cee
add esp, 0xc
test eax, eax
je 0x4106f4
lea eax, [esi - 0x10]
mov byte [esp + 0x43c], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410698
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x43c], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4106bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x43c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4106ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x410879
mov ecx, dword [esp + 0x18]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x20000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x410792
lea eax, [esi - 0x10]
mov byte [esp + 0x43c], 1
lea edx, [eax + 0xc]
or ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410739
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x43c], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410760
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x43c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41078b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x410879
push ebx
lea ecx, [esp + 0x24]
push ecx
push ebp
lea edx, [esp + 0x3c]
push edx
push 0xc
lea eax, [esp + 0x38]
push eax
push 0x2d1400
push edi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x54], ebp
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4107e5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
mov byte [esp + 0x43c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x41072d
mov eax, dword [esp + 0x4c]
xor ebp, ebp
cmp eax, 4
je 0x4107f5
cmp eax, 7
jne 0x4107fa
mov ebp, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
mov byte [esp + 0x43c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410825
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x43c], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41084c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x43c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410877
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x434]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.0045300b
add esp, 0x42c
ret