Function at 0x45be60
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x546320
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b3720]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4c]
xor esi, esi
cmp dword [ebp + 0x80], esi
je 0x45c3bb
cmp dword [ebp + 0x84], esi
je 0x45c3bb
cmp dword [ebp + 0x1c0], esi
je 0x45c3bb
push 0x566c94
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call fcn.00405ee0
push 0x566c94
lea ecx, [esp + 0x50]
mov dword [esp + 0x48], esi
call fcn.00405ee0
push esi
push 0x5b9b58
mov byte [esp + 0x4c], 1
mov eax, dword [ebp + 0x84]
push 0x5b4e34
push esi
xor ebx, ebx
mov dword [esp + 0x24], esi
mov dword [ebp + 0x368], esi
call fcn.0040eb20
push eax
call fcn.00524fbb
add esp, 0x14
test eax, eax
je 0x45bf1b
mov edi, eax
call fcn.004d7080
mov dword [ebp + 0x368], eax
mov eax, dword [ebp + 0x238]
push 0
push 0
push 0x14b
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp + 0x218]
push 1
call fcn.00505450
xor esi, esi
xor ebx, ebx
cmp dword [0x5bef2c], ebx
mov dword [esp + 0x20], esi
jne 0x45bf63
push 0x5bef28
mov dword [0x5bef28], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x5bef2c], 6
jne 0x45bf79
cmp dword [0x5bef30], ebx
mov eax, 0x18
je 0x45bf7e
mov eax, 0x1b
cmp esi, eax
jge 0x45c26c
mov edx, dword [ebp + 0x368]
mov eax, dword [ebp + 0x1c0]
mov ecx, esi
mov edi, 1
shl edi, cl
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], ebx
call fcn.00459960
test eax, eax
je 0x45c260
mov edx, dword [ebp + 0x80]
add edx, 0x504
push edx
mov esi, 0xc20
lea eax, [esp + 0x50]
call fcn.0046add0
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x4c]
movzx edx, word [ebx + 8]
push eax
push ecx
push edx
lea eax, [esp + 0x24]
push 0x574db0
push eax
call fcn.00402620
mov eax, dword [ebx + 0xc]
add esp, 0x14
cmp eax, 4
ja case.default.0x45bffc
jmp dword [eax*4 + 0x45c3d4]
mov ecx, dword [ebp + 0x80]
add ecx, 0x504
push ecx
mov esi, 0xc1e
jmp 0x45c0c8
mov edx, dword [ebp + 0x80]
add edx, 0x504
push edx
mov esi, 0xc1f
jmp 0x45c0c8
mov eax, dword [ebp + 0x80]
test dword [eax + 0xc], 0x10000000
je 0x45c05b
push 0xc1c
lea esi, [eax + 0x504]
push 0xfb9
lea eax, [esp + 0x54]
call fcn.0046ae30
jmp case.default.0x45bffc
mov esi, 0xc1c
jmp 0x45c0c2
mov eax, dword [ebp + 0x80]
test dword [eax + 0xc], 0x10000000
je 0x45c08c
push 0xc1b
lea esi, [eax + 0x504]
push 0xfb8
lea eax, [esp + 0x54]
call fcn.0046ae30
jmp case.default.0x45bffc
mov esi, 0xc1b
jmp 0x45c0c2
mov eax, dword [ebp + 0x80]
test dword [eax + 0xc], 0x10000000
je 0x45c0bd
push 0xc1d
lea esi, [eax + 0x504]
push 0xfba
lea eax, [esp + 0x54]
call fcn.0046ae30
jmp case.default.0x45bffc
mov esi, 0xc1d
add eax, 0x504
push eax
lea eax, [esp + 0x50]
call fcn.0046add0
push 0x56a8b4
lea ecx, [esp + 0x3c]
call fcn.00405ee0
mov esi, eax
push 0x56a8ac
lea ecx, [esp + 0x38]
mov byte [esp + 0x48], 2
call fcn.00405ee0
lea ecx, [esp + 0x4c]
push ecx
push eax
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x50], 3
call fcn.00411120
push esi
push eax
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x5c], 4
call fcn.00411120
add esp, 0x18
mov byte [esp + 0x44], 5
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00405e50
mov byte [esp + 0x44], 4
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45c157
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x44], 3
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45c17c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x44], 2
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45c1a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x44], 1
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45c1c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0x238]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
xor esi, esi
push esi
push esi
push 0x146
push ecx
call edi
test eax, eax
jle 0x45c21a
mov edx, dword [ebp + 0x238]
push 0
push esi
push 0x150
push edx
call edi
test eax, eax
je 0x45c201
mov ax, word [eax + 8]
cmp ax, word [ebx + 8]
ja 0x45c21a
mov ecx, dword [ebp + 0x238]
push 0
push 0
push 0x146
push ecx
add esi, 1
call edi
cmp esi, eax
jl 0x45c1e2
mov edx, dword [esp + 0x18]
mov eax, dword [ebp + 0x238]
push edx
push esi
push 0x14a
push eax
call edi
mov ecx, dword [ebp + 0x238]
push ebx
push esi
push 0x151
push ecx
call edi
mov eax, dword [ebx + 4]
mov ecx, 1
add dword [esp + 0x14], ecx
cmp eax, 0xac44
jne 0x45c255
mov dword [esp + 0x24], ecx
cmp eax, 0xbb80
jne 0x45c260
mov dword [esp + 0x28], ecx
mov esi, dword [esp + 0x20]
add esi, 1
jmp 0x45bf40
mov edx, dword [ebp + 0x1c0]
mov eax, dword [edx + 0x54]
cmp eax, ebx
jbe 0x45c2eb
test eax, eax
mov edi, dword [esp + 0x14]
jbe 0x45c2eb
xor esi, esi
mov dword [esp + 0x20], esi
mov eax, dword [ebp + 0x1c0]
cmp ebx, dword [eax + 0x54]
jae 0x45c2d2
mov eax, dword [eax + 0x50]
test eax, eax
je 0x45c2d2
add esi, eax
je 0x45c2d2
mov eax, dword [esi]
push eax
mov eax, dword [ebp + 0x238]
push edi
push 0x14a
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp + 0x238]
add esi, 0x2c
push esi
push edi
push 0x151
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
add edi, 1
add dword [esp + 0x14], 1
mov esi, dword [esp + 0x20]
mov edx, dword [ebp + 0x1c0]
add ebx, 1
add esi, 0x40
cmp ebx, dword [edx + 0x54]
mov dword [esp + 0x20], esi
jb 0x45c287
cmp dword [esp + 0x14], 1
jg 0x45c2ff
push 0
lea ecx, [ebp + 0x218]
call fcn.00505450
mov eax, dword [esp + 0x24]
lea esi, [ebp + 0x26c]
push eax
mov ecx, esi
call fcn.00505450
mov ecx, dword [esp + 0x28]
lea edi, [ebp + 0x2c0]
push ecx
mov ecx, edi
call fcn.00505450
mov edx, dword [ebp + 0x80]
test dword [edx + 0x190], 0x800000
je 0x45c34a
mov eax, dword [ebp + 0x84]
cmp dword [eax + 0x28], 0
je 0x45c34a
push 0
mov ecx, esi
call fcn.00505414
mov ecx, dword [ebp + 0x80]
test byte [ecx + 0x193], 1
je 0x45c36e
mov edx, dword [ebp + 0x84]
cmp dword [edx + 0x28], 0
je 0x45c36e
push 0
mov ecx, edi
call fcn.00505414
mov byte [esp + 0x44], 0
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45c393
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45c3bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 4