Function at 0x40f5a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x128
mov eax, dword [0x4ca1d0]
xor eax, esp
mov dword [esp + 0x124], eax
mov eax, dword [esp + 0x12c]
push ebx
push esi
push eax
mov esi, ecx
call fcn.00407e70
mov ebx, eax
test esi, esi
je 0x40f5d3
lea eax, [esi + 0x274]
jmp 0x40f5d5
xor eax, eax
push eax
lea ecx, [esi + 0x368]
call fcn.0040fbb0
cmp ebx, 1
jne 0x40f5ea
xor ebx, ebx
jmp 0x40f5f2
test ebx, ebx
jl 0x40f7fc
push edi
push 1
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.0040b650
lea edi, [esi + 0x33c]
push eax
mov ecx, edi
call fcn.0040a460
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f62f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.Service.log
lea ecx, [esp + 0x18]
push edi
push ecx
call fcn.00409ee0
mov edx, dword [eax]
add esp, 0xc
push 1
push edx
lea ecx, [esi + 0x330]
call fcn.00416d80
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 0x40f672
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.StartupTime.dat
lea ecx, [esp + 0x10]
push edi
push ecx
call fcn.00409ee0
add esp, 0xc
push eax
lea ecx, [esi + 0x338]
call fcn.0040a460
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f6b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.SeTcbPrivilege
mov dword [esi + 0x360], 0
call fcn.004061a0
add esp, 4
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x20]
cmp eax, 6
ja 0x40f6f9
jne 0x40f6ed
cmp dword [esp + 0x24], 1
ja 0x40f6f9
mov dword [esi + 0x278], 1
jmp 0x40f703
mov dword [esi + 0x278], 0
mov dword [esi + 0x27c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x4cb588], eax
call edi
movzx ecx, al
cmp ecx, 6
ja 0x40f731
jne 0x40f755
shr eax, 8
cmp al, 2
jb 0x40f755
mov ecx, esi
call fcn.004096a0
test eax, eax
jne 0x40f74a
mov edx, dword [0x4cb588]
cmp edx, 0x1d4c0
jbe 0x40f755
imul eax, eax, 0x3e8
mov dword [0x4cb588], eax
mov eax, dword [0x4cb588]
fild dword [0x4cb588]
test eax, eax
jge 0x40f76a
fadd qword [0x4b3d70]
fdiv qword [0x4b3d68]
sub esp, 8
fstp qword [esp]
push str.Begin__.2f
push esi
call fcn.004089e0
mov ecx, dword [0x4cb588]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push edx
mov dword [0x4cb58c], ecx
mov ecx, dword [esp + 0x34]
push eax
push ecx
push str.System__d._d__d
push esi
mov dword [0x4cb59c], 1
call fcn.004089e0
add esp, 0x24
mov ecx, esi
call fcn.0040c070
call edi
and eax, 0xf
mov ecx, esi
cmp al, 6
jb 0x40f7cd
call fcn.0040e880
jmp 0x40f7d2
call fcn.0040e060
lea eax, [esi + 0x26c]
lea edi, [esi + 0x280]
push eax
mov ecx, edi
call fcn.00410060
lea eax, [esi + 0x268]
push eax
mov ecx, edi
call fcn.00410070
mov ecx, edi
call fcn.00412660
pop edi
mov ecx, dword [esp + 0x12c]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00493ffe
add esp, 0x128
ret 4