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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db980
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x520078]
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 - 0x34], edx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], 0
call fcn.00447cf0
mov edi, eax
test edi, edi
jne 0x4494fd
push 0x80004005
call fcn.004479e0
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4e3310]
mov ecx, edi
call esi
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 dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push str..PhysicalDrive_u
push eax
call fcn.0044b8a0
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]
or esi, 0xffffffff
mov dword [ebp - 0x30], eax
cmp eax, esi
jne 0x449576
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
jmp 0x44974b
push 0x1001
call fcn.004b58d0
mov ebx, eax
add esp, 4
mov dword [ebp - 0x38], ebx
test ebx, ebx
jne 0x449598
mov dword [ebp - 0x2c], 8
jmp 0x449742
push 0x1001
push 0
push ebx
call fcn.004ad5f0
add esp, 0xc
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x20], 0
push 0
push eax
push 0x1000
push ebx
push 0xc
lea eax, [ebp - 0x24]
push eax
push 0x2d1400
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4495e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
jmp 0x449742
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x44973b
cmp ecx, dword [ebp - 0x28]
jae 0x44973b
mov eax, dword [ebp - 0x14]
cmp al, 6
ja 0x4496ea
jne 0x449614
shr eax, 8
cmp al, 2
jae 0x4496ea
call fcn.00447cf0
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x44962a
push 0x80004005
call fcn.004479e0
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4e3310]
mov ecx, dword [ebp - 0x14]
call esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x28]
sub edx, dword [ebx + 0x18]
jns 0x449658
push 0x80070057
call fcn.004479e0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x449675
push edx
lea ecx, [ebp - 0x14]
call fcn.0044b3a0
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x18]
push esi
add ecx, ebx
call fcn.00448fe0
add esp, 4
push dword [esi - 8]
push esi
call fcn.004bfeb9
add esp, 8
test eax, eax
js 0x44964e
cmp eax, dword [esi - 8]
jg 0x44964e
mov ecx, dword [ebp - 0x34]
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
lea eax, [ebp - 0x14]
push eax
call fcn.0044b170
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4496d6
mov ebx, dword [esi]
push esi
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e3310]
mov ecx, ebx
call esi
mov ebx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
or esi, 0xffffffff
call fcn.0044b040
mov ecx, eax
call fcn.0044afa0
jmp 0x449742
lea edx, [ecx + ebx]
test edx, edx
jne 0x44970e
xor ecx, ecx
push ecx
mov ecx, dword [ebp - 0x34]
push edx
call fcn.0044b400
mov ecx, dword [ebp - 0x34]
call fcn.0044b040
mov ecx, eax
call fcn.0044afa0
jmp 0x449742
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x38], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x449716
sub ecx, dword [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x34]
push edx
call fcn.0044b400
mov ecx, dword [ebp - 0x34]
call fcn.0044b040
mov ecx, eax
call fcn.0044afa0
jmp 0x449742
mov dword [ebp - 0x2c], 0xd
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.004b58e0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi - 0x10]
lock xadd dword [ecx + 0xc], esi
dec esi
test esi, esi
jg 0x44977c
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e3310]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x2c]
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.00493bec
mov esp, ebp
pop ebp
ret