Function at 0x442870
Capabilities:
Check os version
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4833a5
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4bf100]
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 dword [ebp - 0x2c], edx
mov esi, ecx
mov dword [ebp - 0x18], 0
call fcn.0040a9d6
mov ecx, eax
test ecx, ecx
je 0x442ada
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 1
xorps xmm0, xmm0
xor ebx, ebx
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push str..PhysicalDrive_u
push eax
call fcn.0040bead
mov edi, dword [ebp - 0x18]
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x30], esi
cmp esi, 0xffffffff
jne 0x442920
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x442a94
push 0x1001
call fcn.004640c6
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x44293b
lea esi, [eax + 8]
jmp 0x442a8b
push 0x1001
push 0
push ebx
call fcn.00457e10
add esp, 0xc
lea eax, [ebp - 0x28]
push 0
push eax
push 0x1000
push ebx
push 0xc
lea eax, [ebp - 0x24]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x44297a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x442a8b
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x442a86
cmp ecx, dword [ebp - 0x28]
jae 0x442a86
mov eax, dword [ebp - 0x14]
cmp al, 6
ja 0x442a57
jne 0x4429a6
shr eax, 8
cmp al, 2
jae 0x442a57
mov dword [ebp - 0x14], 0
call fcn.0040a9d6
test eax, eax
je 0x442ada
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x28]
sub edx, dword [ebx + 0x18]
js 0x442ae4
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x4429f4
push edx
lea ecx, [ebp - 0x14]
call fcn.00416d40
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x18]
add ecx, ebx
push esi
call fcn.00442390
push dword [esi - 8]
push esi
call fcn.00461112
add esp, 0xc
test eax, eax
js 0x442ae4
cmp eax, dword [esi - 8]
jg 0x442ae4
mov ecx, dword [ebp - 0x2c]
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
lea eax, [ebp - 0x14]
push eax
call fcn.00444470
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x442a7a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x2c]
call fcn.00444240
xor esi, esi
jmp 0x442a8b
lea edx, [ecx + ebx]
test edx, edx
jne 0x442a62
xor ecx, ecx
jmp 0x442a70
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x442a67
sub ecx, esi
push ecx
mov ecx, dword [ebp - 0x2c]
push edx
call fcn.00423430
mov ecx, dword [ebp - 0x2c]
call fcn.00444240
xor esi, esi
jmp 0x442a8b
mov esi, 0xd
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.0045f917
add esp, 4
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x442abc
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
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.00455c9e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040a70e
push 0x80070057
call fcn.0040a70e
int3