Function at 0x435e40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x453746
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x4650c0]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push esi
push edi
mov eax, dword [0x4650c0]
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.0043c440
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 0x435ee7
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.004171d0
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.0043aefb
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
add esp, 4
push 0
push 0x3e8
push eax
push ecx
call fcn.00446060
mov ecx, eax
movzx eax, word [esp + 0x24]
mov edi, edx
cdq
add ecx, eax
mov eax, dword [0x468cb8]
adc edi, edx
imul eax, eax, 0x36ee80
sub ecx, dword [esi + 0x90]
cdq
sbb edi, dword [esi + 0x94]
cmp edi, edx
jl 0x435faa
jg 0x435f4c
cmp ecx, eax
jbe 0x435faa
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.0043aefb
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
add esp, 4
push 0
push 0x3e8
push eax
push ecx
call fcn.00446060
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.00403a20
test eax, eax
je 0x435faa
push esi
call fcn.00436110
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.0043aefb
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
add esp, 4
push 0
push 0x3e8
push eax
push ecx
call fcn.00446060
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 0x4360df
jg 0x436011
cmp ecx, 0x6ddd00
jbe 0x4360df
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.0043aefb
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
add esp, 4
push 0
push 0x3e8
push eax
push ecx
call fcn.00446060
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.00439120
mov byte [esp + 0x158], 1
mov edi, dword [esp + 0x18]
cmp dword [edi - 0xc], 0
jle 0x4360bb
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.00435c60
add esp, 4
test eax, eax
jne 0x4360b7
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.00435ac0
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 0x4360df
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
test ebx, ebx
je 0x4360ea
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.004397ee
mov esp, ebp
pop ebp
ret