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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421c40
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x42c00c]
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, edx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], 0
call fcn.00407ce0
mov edi, eax
test edi, edi
je case.0x409872.0
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x422280]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
xorps xmm0, xmm0
xor esi, esi
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
push dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x14]
push str..PhysicalDrive_u
push eax
call fcn.0040c120
mov edi, dword [ebp - 0x14]
add esp, 0xc
push esi
push esi
push 3
push esi
push 3
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x40], eax
cmp eax, 0xffffffff
jne 0x4094af
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x4098a3
push 0x1001
call fcn.0041630b
mov esi, eax
add esp, 4
mov dword [ebp - 0x34], esi
test esi, esi
jne 0x4094cd
lea ebx, [eax + 8]
jmp 0x40989a
push 0x1001
push 0
push esi
call fcn.00411430
add esp, 0xc
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x20], 0
push 0
push eax
push 0x1000
push esi
push 0xc
lea eax, [ebp - 0x24]
push eax
push 0x2d1400
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40951c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x40989a
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4098f5
cmp ecx, dword [ebp - 0x28]
jae 0x4098f5
mov eax, dword [ebp - 0x3c]
cmp al, 6
ja 0x4096fe
jne 0x409548
shr eax, 8
cmp al, 2
jae 0x4096fe
mov byte [ebp - 4], 2
call fcn.00407ce0
mov ebx, eax
test ebx, ebx
je 0x409906
mov eax, dword [ebx]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x422280]
mov ecx, ebx
call esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov ebx, dword [ebp - 0x34]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x28]
mov ebx, dword [ebx + 0x18]
sub edx, ebx
js case.0x409872.21
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x4095ac
push edx
lea ecx, [ebp - 0x18]
call fcn.0040bd10
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0x18]
mov ebx, dword [eax + 0x18]
jmp 0x4095af
mov eax, dword [ebp - 0x34]
lea ecx, [ebx + eax]
push esi
call fcn.00408e90
add esp, 4
lea ebx, [esi - 0x10]
mov dword [ebp - 0x3c], ebx
test esi, esi
jne 0x4095c9
xor eax, eax
jmp 0x4095dd
push dword [ebx + 8]
push esi
call fcn.0041422d
add esp, 8
test eax, eax
js case.0x409872.21
cmp eax, dword [ebx + 8]
jg case.0x409872.21
mov ecx, dword [ebp - 0x2c]
mov dword [ebx + 4], eax
mov byte [eax + esi], 0
mov edx, dword [ecx]
sub edx, 0x10
mov dword [ebp - 0x38], edx
cmp ebx, edx
je 0x4096ce
lea eax, [edx + 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [eax]
shr eax, 0x1f
test al, al
jne 0x4096c5
mov eax, dword [ebx]
mov dword [ebp - 0x30], eax
cmp eax, dword [edx]
jne 0x4096c5
mov eax, dword [eax]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x422280]
mov ecx, dword [ebp - 0x30]
call esi
mov ecx, dword [ebx + 0xc]
lea edx, [ebx + 0xc]
shr ecx, 0x1f
mov dword [ebp - 0x30], eax
test cl, cl
jne 0x40964e
cmp eax, dword [ebx]
jne 0x40964e
mov dword [ebp - 0x30], ebx
lock inc dword [edx]
jmp 0x40968b
mov eax, dword [eax]
push 1
push dword [ebx + 4]
mov esi, dword [eax]
mov ecx, esi
call dword [0x422280]
mov ecx, dword [ebp - 0x30]
call esi
mov esi, eax
mov dword [ebp - 0x30], esi
test esi, esi
je 0x40991a
mov eax, dword [ebx + 4]
lea ecx, [esi + 0x10]
mov dword [esi + 4], eax
lea eax, [ebx + 0x10]
mov edx, dword [ebx + 4]
inc edx
push edx
push eax
call fcn.00407a60
add esp, 8
mov ecx, dword [ebp - 0x44]
or eax, 0xffffffff
mov byte [ebp - 4], 4
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4096b8
mov ecx, dword [ebp - 0x38]
push ecx
mov ebx, dword [ecx]
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x422280]
mov ecx, ebx
call esi
mov ebx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
add eax, 0x10
mov dword [ecx], eax
jmp 0x4096ce
push dword [ebx + 4]
push esi
call fcn.0040bd70
mov byte [ebp - 4], 5
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x4096f5
mov ebx, dword [ebx]
push dword [ebp - 0x3c]
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x422280]
mov ecx, ebx
call esi
mov ebx, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
jmp 0x409722
lea edx, [ecx + esi]
test edx, edx
jne 0x409709
xor ecx, ecx
jmp 0x409719
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409710
sub ecx, esi
push ecx
push edx
mov ecx, ebx
call fcn.0040bd70
mov ebx, dword [ebx]
xor esi, esi
mov al, byte [ebx]
test al, al
je 0x40979e
nop dword [eax]
movsx eax, al
push eax
call fcn.00415e65
add esp, 4
test eax, eax
je 0x40974b
test esi, esi
mov eax, ebx
cmovne eax, esi
mov esi, eax
jmp 0x40974d
xor esi, esi
push ebx
call fcn.004144ff
mov ebx, eax
add esp, 4
mov al, byte [ebx]
test al, al
jne 0x409730
mov ebx, dword [ebp - 0x2c]
test esi, esi
je 0x4097a1
mov edx, dword [ebx]
sub esi, edx
js 0x40991f
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x40978a
push esi
mov ecx, ebx
call fcn.0040bd10
mov edx, dword [ebx]
cmp esi, dword [edx - 8]
jg case.0x409872.21
mov dword [edx - 0xc], esi
mov eax, dword [ebx]
mov byte [esi + eax], 0
jmp 0x4097a1
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebx]
movsx eax, byte [esi]
push eax
call fcn.00415e65
add esp, 4
test eax, eax
je 0x4097ce
push esi
call fcn.004144ff
mov esi, eax
add esp, 4
movsx ecx, byte [esi]
push ecx
call fcn.00415e65
add esp, 4
test eax, eax
jne 0x4097b3
mov ecx, dword [ebx]
cmp esi, ecx
je 0x409895
mov edx, dword [ecx - 0xc]
sub esi, ecx
test edx, edx
js 0x409929
mov eax, 1
sub eax, dword [ecx - 4]
mov dword [ebp - 0x38], eax
mov eax, dword [ecx - 8]
sub eax, edx
or eax, dword [ebp - 0x38]
jge 0x409804
push edx
mov ecx, ebx
call fcn.0040bd10
mov ecx, dword [ebx]
mov edx, dword [ecx - 0xc]
lea eax, [esi + ecx]
sub edx, esi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], edx
lea esi, [edx + 1]
test esi, esi
je 0x409869
test eax, eax
jne 0x409837
call fcn.004162dd
mov dword [eax], 0x16
call fcn.004138a0
mov edx, dword [ebp - 0x2c]
mov eax, 0x16
jmp 0x40986b
mov eax, dword [ecx - 0xc]
inc eax
cmp eax, esi
jae 0x409859
call fcn.004162dd
mov dword [eax], 0x22
call fcn.004138a0
mov edx, dword [ebp - 0x2c]
mov eax, 0x22
jmp 0x40986b
push esi
push dword [ebp - 0x38]
push ecx
call fcn.00411680
mov edx, dword [ebp - 0x2c]
add esp, 0xc
xor eax, eax
movzx eax, byte [eax + 0x409950]
jmp dword [eax*4 + 0x409940]
test edx, edx
js case.0x409872.21
mov eax, dword [ebx]
cmp edx, dword [eax - 8]
jg case.0x409872.21
mov dword [eax - 0xc], edx
mov eax, dword [ebx]
mov byte [edx + eax], 0
mov esi, dword [ebp - 0x34]
xor ebx, ebx
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004162f0
add esp, 4
lea ecx, [edi - 0x10]
mov dword [ebp - 4], 6
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4098d7
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x422280]
mov ecx, edi
call esi
mov eax, ebx
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.0040fb5d
mov esp, ebp
pop ebp
ret
dec ebp
hlt
mov ebx, 0xd
jmp 0x40989a
push 0x80004005
call fcn.00407b20
push 0x80004005
call fcn.00407b20
push 0x80070057
call fcn.00407b20
call fcn.0040bfe0
push 0x80070057
call fcn.00407b20
push 0x80070057
call fcn.00407b20
push 0x8007000e
call fcn.00407b20
nop dword [eax]
jns 0x4098da
inc eax
add byte [ebx], dh
cdq
inc eax
add byte [eax], dl
cdq
inc eax
add ah, bh
cwde
inc eax
add byte [eax], al
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ecx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [eax]
int3