Function at 0x42e830
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x449866
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x4590c0]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push esi
push edi
mov eax, dword [0x4590c0]
xor eax, esp
push eax
lea eax, [esp + 0x150]
mov dword fs:[0], eax
mov esi, ecx
lea ebx, [esi + 0x60]
xor edi, edi
push ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x114
lea eax, [esp + 0x30]
push edi
push eax
mov dword [esp + 0x164], edi
call fcn.004338d0
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x30], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x30], 6
jb 0x42e8d7
fldz
push ecx
fstp dword [esp]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov edi, eax
call fcn.00413a70
add esp, 4
xor eax, eax
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call fcn.004325af
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
add esp, 4
push 0
push 0x3e8
push eax
push ecx
call fcn.0043cea0
mov ecx, eax
movzx eax, word [esp + 0x24]
mov edi, edx
cdq
add ecx, eax
mov eax, dword [0x45cbb0]
adc edi, edx
imul eax, eax, 0x36ee80
sub ecx, dword [esi + 0x90]
cdq
sbb edi, dword [esi + 0x94]
cmp edi, edx
jl 0x42e99a
jg 0x42e93c
cmp ecx, eax
jbe 0x42e99a
xor eax, eax
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call fcn.004325af
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
add esp, 4
push 0
push 0x3e8
push eax
push ecx
call fcn.0043cea0
mov ecx, eax
movzx eax, word [esp + 0x24]
mov edi, edx
cdq
add ecx, eax
adc edi, edx
mov dword [esi + 0x90], ecx
mov dword [esi + 0x94], edi
call fcn.004039b0
test eax, eax
je 0x42e99a
push esi
call fcn.0042eb00
xor eax, eax
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call fcn.004325af
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
add esp, 4
push 0
push 0x3e8
push eax
push ecx
call fcn.0043cea0
mov ecx, eax
movzx eax, word [esp + 0x24]
mov edi, edx
cdq
add ecx, eax
adc edi, edx
sub ecx, dword [esi + 0xb8]
sbb edi, dword [esi + 0xbc]
mov dword [esp + 0x20], edi
js 0x42eacf
jg 0x42ea01
cmp ecx, 0x6ddd00
jbe 0x42eacf
xor eax, eax
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call fcn.004325af
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
add esp, 4
push 0
push 0x3e8
push eax
push ecx
call fcn.0043cea0
mov ecx, eax
movzx eax, word [esp + 0x24]
mov edi, edx
cdq
add ecx, eax
adc edi, edx
mov dword [esi + 0xb8], ecx
mov dword [esi + 0xbc], edi
lea esi, [esp + 0x18]
call fcn.00430830
mov byte [esp + 0x158], 1
mov edi, dword [esp + 0x18]
cmp dword [edi - 0xc], 0
jle 0x42eaab
push ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x20], esp
mov ebx, esp
call fcn.00401a60
add eax, 0x10
mov dword [ebx], eax
call fcn.0042e650
add esp, 4
test eax, eax
jne 0x42eaa7
push ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x20], esp
mov ebx, esp
call fcn.00401a60
add eax, 0x10
mov dword [ebx], eax
call fcn.0042e4b0
add esp, 4
mov ebx, dword [esp + 0x14]
add edi, 0xfffffff0
mov byte [esp + 0x158], 0
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x42eacf
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
test ebx, ebx
je 0x42eada
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x150]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.00430efe
mov esp, ebp
pop ebp
ret