Function at 0x466b50
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x542d80
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ab720]
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 0x46705c
cmp dword [ebp + 0x84], esi
je 0x46705c
cmp dword [ebp + 0x1c0], esi
je 0x46705c
push 0x564f30
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call fcn.00404670
push 0x564f30
lea ecx, [esp + 0x50]
mov dword [esp + 0x48], esi
call fcn.00404670
push esi
push 0x5b1acc
mov byte [esp + 0x4c], 1
mov eax, dword [ebp + 0x84]
push 0x5ace98
push esi
xor ebx, ebx
mov dword [esp + 0x24], esi
mov dword [ebp + 0x368], esi
call fcn.0040ce40
push eax
call fcn.00521e47
add esp, 0x14
test eax, eax
je 0x466c0b
mov edi, eax
call fcn.004d2e70
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.00501983
xor esi, esi
xor ebx, ebx
cmp dword [0x5b6edc], ebx
mov dword [esp + 0x20], esi
jne 0x466c53
push 0x5b6ed8
mov dword [0x5b6ed8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x5b6edc], 6
jne 0x466c69
cmp dword [0x5b6ee0], ebx
mov eax, 0x18
je 0x466c6e
mov eax, 0x1b
cmp esi, eax
jge 0x466f5c
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.00464550
test eax, eax
je 0x466f50
mov edx, dword [ebp + 0x80]
add edx, 0x4ec
push edx
mov esi, 0xc20
lea eax, [esp + 0x50]
call fcn.00474a80
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 0x56f6d8
push eax
call fcn.00402c70
mov eax, dword [ebx + 0xc]
add esp, 0x14
cmp eax, 4
ja case.default.0x466cec
jmp dword [eax*4 + 0x467074]
mov ecx, dword [ebp + 0x80]
add ecx, 0x4ec
push ecx
mov esi, 0xc1e
jmp 0x466db8
mov edx, dword [ebp + 0x80]
add edx, 0x4ec
push edx
mov esi, 0xc1f
jmp 0x466db8
mov eax, dword [ebp + 0x80]
test dword [eax + 0xc], 0x10000000
je 0x466d4b
push 0xc1c
lea esi, [eax + 0x4ec]
push 0xfb9
lea eax, [esp + 0x54]
call fcn.00474ae0
jmp case.default.0x466cec
mov esi, 0xc1c
jmp 0x466db2
mov eax, dword [ebp + 0x80]
test dword [eax + 0xc], 0x10000000
je 0x466d7c
push 0xc1b
lea esi, [eax + 0x4ec]
push 0xfb8
lea eax, [esp + 0x54]
call fcn.00474ae0
jmp case.default.0x466cec
mov esi, 0xc1b
jmp 0x466db2
mov eax, dword [ebp + 0x80]
test dword [eax + 0xc], 0x10000000
je 0x466dad
push 0xc1d
lea esi, [eax + 0x4ec]
push 0xfba
lea eax, [esp + 0x54]
call fcn.00474ae0
jmp case.default.0x466cec
mov esi, 0xc1d
add eax, 0x4ec
push eax
lea eax, [esp + 0x50]
call fcn.00474a80
push 0x564f3c
lea ecx, [esp + 0x3c]
call fcn.00404670
mov esi, eax
push 0x564f34
lea ecx, [esp + 0x38]
mov byte [esp + 0x48], 2
call fcn.00404670
lea ecx, [esp + 0x4c]
push ecx
push eax
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x50], 3
call fcn.00410740
push esi
push eax
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x5c], 4
call fcn.00410740
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.00404550
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 0x466e47
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 0x466e6c
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 0x466e91
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 0x466eb6
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 0x466f0a
mov edx, dword [ebp + 0x238]
push 0
push esi
push 0x150
push edx
call edi
test eax, eax
je 0x466ef1
mov ax, word [eax + 8]
cmp ax, word [ebx + 8]
ja 0x466f0a
mov ecx, dword [ebp + 0x238]
push 0
push 0
push 0x146
push ecx
add esi, 1
call edi
cmp esi, eax
jl 0x466ed2
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 0x466f45
mov dword [esp + 0x24], ecx
cmp eax, 0xbb80
jne 0x466f50
mov dword [esp + 0x28], ecx
mov esi, dword [esp + 0x20]
add esi, 1
jmp 0x466c30
mov edx, dword [ebp + 0x1c0]
mov eax, dword [edx + 0x54]
cmp eax, ebx
jbe 0x466fdb
test eax, eax
mov edi, dword [esp + 0x14]
jbe 0x466fdb
xor esi, esi
mov dword [esp + 0x20], esi
mov eax, dword [ebp + 0x1c0]
cmp ebx, dword [eax + 0x54]
jae 0x466fc2
mov eax, dword [eax + 0x50]
test eax, eax
je 0x466fc2
add esi, eax
je 0x466fc2
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 0x466f77
cmp dword [esp + 0x14], 1
jg 0x466fef
push 0
lea ecx, [ebp + 0x218]
call fcn.00501983
mov eax, dword [esp + 0x24]
push eax
lea ecx, [ebp + 0x26c]
call fcn.00501983
mov ecx, dword [esp + 0x28]
push ecx
lea ecx, [ebp + 0x2c0]
call fcn.00501983
mov byte [esp + 0x44], 0
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x467034
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 0x46705c
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