Function at 0x4521b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d86e1
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x56b06c]
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, ecx
mov dword [ebp - 0x13c], ebx
mov edx, dword [ebx + 0x34]
lea esi, [ebx + 0x30]
push ecx
mov ecx, dword [esi]
call fcn.00452b30
mov eax, dword [esi]
add esp, 4
mov dword [esi + 4], eax
mov ecx, ebx
lea eax, [ebp - 0x130]
mov dword [ebp - 0x138], 0x642
mov dword [ebp - 0x134], 0x641
push 0x4b0
push eax
call fcn.004524b0
mov dword [ebp - 4], 0
mov ecx, dword [esi + 4]
cmp dword [esi + 8], ecx
je 0x45227b
mov eax, dword [ebp - 0x138]
xor edi, edi
mov dword [ecx], eax
mov eax, dword [ebp - 0x134]
mov dword [ecx + 4], eax
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov eax, dword [ebp - 0x130]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x12c]
mov dword [ecx + 0xc], eax
add dword [esi + 4], 0x10
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], edi
jmp 0x452290
lea eax, [ebp - 0x138]
push eax
push ecx
mov ecx, esi
call fcn.004529a0
mov edi, dword [ebp - 0x12c]
or ebx, 0xffffffff
mov dword [ebp - 4], 1
test edi, edi
je 0x4522bd
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x4522bd
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x4522bd
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push 0x110
lea eax, [ebp - 0x124]
mov dword [ebp - 4], 0xffffffff
push 0
push eax
mov dword [ebp - 0x128], 0x114
call fcn.004a9e70
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4523cf
cmp dword [ebp - 0x124], 6
jb 0x4523cf
mov ecx, dword [ebp - 0x13c]
lea eax, [ebp - 0x130]
push 0x4b2
push eax
mov dword [ebp - 0x138], 0x644
mov dword [ebp - 0x134], 0x643
call fcn.004524b0
mov dword [ebp - 4], 2
mov ecx, dword [esi + 4]
cmp dword [esi + 8], ecx
je 0x452389
mov eax, dword [ebp - 0x138]
xor edi, edi
mov dword [ecx], eax
mov eax, dword [ebp - 0x134]
mov dword [ecx + 4], eax
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov eax, dword [ebp - 0x130]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x12c]
mov dword [ecx + 0xc], eax
add dword [esi + 4], 0x10
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], edi
jmp 0x45239e
lea eax, [ebp - 0x138]
push eax
push ecx
mov ecx, esi
call fcn.004529a0
mov edi, dword [ebp - 0x12c]
mov dword [ebp - 4], 3
test edi, edi
je 0x4523c8
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x4523c8
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x4523c8
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x13c]
lea eax, [ebp - 0x144]
push 0x4b1
push eax
mov dword [ebp - 0x14c], 0x646
mov dword [ebp - 0x148], 0x645
call fcn.004524b0
mov dword [ebp - 4], 4
mov ecx, dword [esi + 4]
cmp dword [esi + 8], ecx
je 0x452452
mov eax, dword [ebp - 0x14c]
xor edi, edi
mov dword [ecx], eax
mov eax, dword [ebp - 0x148]
mov dword [ecx + 4], eax
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov eax, dword [ebp - 0x144]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x140]
mov dword [ecx + 0xc], eax
add dword [esi + 4], 0x10
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], edi
jmp 0x452467
lea eax, [ebp - 0x14c]
push eax
push ecx
mov ecx, esi
call fcn.004529a0
mov edi, dword [ebp - 0x140]
mov dword [ebp - 4], 5
test edi, edi
je 0x452490
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x452490
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x452490
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
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.0048358b
mov esp, ebp
pop ebp
ret