Function at 0x40bf20
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bdb13
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x515e20]
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 eax, dword [ebp + 8]
mov ebx, dword [0x517280]
mov dword [ebp - 0x438], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x418], eax
mov eax, ebx
imul eax, ebx
imul eax, ebx
cdq
mov ecx, 7
idiv ecx
cmp edx, 5
jne 0x40bf8a
xor esi, esi
mov edi, ebx
nop
inc esi
dec edi
cmp esi, 0x100
jb 0x40bf80
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0
mov dword [ebp - 4], 0
call fcn.00423c30
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or esi, 0xffffffff
test al, al
je 0x40c13f
mov eax, dword [0x5159f8]
mov ecx, 0x5159f8
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x43c], ebx
push 0x4d395c
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x424]
push eax
mov byte [ebp - 4], 1
call fcn.00402ae0
push 0x4d3314
push eax
lea eax, [ebp - 0x420]
push eax
mov byte [ebp - 4], 2
call fcn.00402ae0
push dword [ebp - 0x438]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.00402a20
push 1
push eax
lea eax, [ebp - 0x41c]
push eax
mov byte [ebp - 4], 4
call fcn.00422ee0
add esp, 0x30
lea ecx, [ebp - 0x434]
push 0x2001f
push dword [eax]
push dword [0x51112c]
call fcn.0040ab40
mov edx, dword [ebp - 0x41c]
test eax, eax
sete byte [ebp - 0x411]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c07a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x428]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c09d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x420]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c0c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x424]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c0e3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebx - 0x10]
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c100
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x411], 0
mov ebx, dword [ebp - 0x418]
je 0x40c145
push dword [ebx]
lea ecx, [ebp - 0x434]
call fcn.0040ac70
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x40c133
push eax
call edi
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0
jmp 0x40c145
mov ebx, dword [ebp - 0x418]
mov eax, dword [0x5159f8]
mov ecx, 0x5159f8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x418], eax
push 0x4d395c
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x41c]
push eax
mov byte [ebp - 4], 5
call fcn.00402ae0
push 0x4d3314
push eax
lea eax, [ebp - 0x428]
push eax
mov byte [ebp - 4], 6
call fcn.00402ae0
push dword [ebp - 0x438]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00402a20
push 0
push eax
lea eax, [ebp - 0x424]
push eax
mov byte [ebp - 4], 8
call fcn.00422ee0
add esp, 0x30
lea ecx, [ebp - 0x434]
push 0x2001f
push dword [eax]
push dword [0x51112c]
call fcn.0040ab40
mov edx, dword [ebp - 0x424]
test eax, eax
setne byte [ebp - 0x411]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c1fa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x420]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c21d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x428]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c240
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x41c]
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c263
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x418]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x40c284
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x411], 0
je 0x40c2a6
call fcn.004102e0
test al, al
jne 0x40c29c
inc dword [0x517280]
mov eax, dword [ebp - 0x434]
xor bl, bl
jmp 0x40c2c4
push dword [ebx]
lea ecx, [ebp - 0x434]
call fcn.0040ac70
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x40c2c2
push eax
call edi
xor eax, eax
mov bl, 1
test eax, eax
je 0x40c2cb
push eax
call edi
mov al, bl
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.0049e294
mov esp, ebp
pop ebp
ret