Function at 0x42b7a7
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10123ddb
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x101a90bc]
xor eax, esp
mov dword [esp + 0x2a0], eax
push ebx
push esi
push edi
mov eax, dword [0x101a90bc]
xor eax, esp
push eax
lea eax, [esp + 0x2b8]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x90]
mov ebx, edx
call dword [0x1013948c]
xor ecx, ecx
mov dword [esp + 0x2c0], ecx
xor eax, eax
mov dword [esp + 0x34], ecx
lea edi, [esp + 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
push ecx
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], ecx
call fcn.0050ddb4
xor eax, eax
inc eax
mov dword [esp + 0x7c], eax
mov word [esp + 0x80], ax
xor eax, eax
add esp, 0xc
cmp word [esi], 0x22
mov dword [esp + 0x44], 0x44
setne al
mov edi, eax
test edi, edi
je 0x42b86e
push 0x1014ac38
lea ecx, [esp + 0x94]
call dword [0x10139468]
push esi
lea ecx, [esp + 0x94]
call dword [0x10139448]
test edi, edi
je 0x42b892
push 0x1014ac38
lea ecx, [esp + 0x94]
call dword [0x10139448]
test ebx, ebx
je 0x42b8b6
push 0x1014a344
lea ecx, [esp + 0x94]
call dword [0x10139448]
push ebx
lea ecx, [esp + 0x94]
call dword [0x10139448]
lea eax, [esp + 0x20]
push eax
mov edi, 0xf01ff
push edi
call dword [0x10139360]
push eax
call dword [0x10139060]
test eax, eax
mov esi, dword [0x10139340]
jne 0x42b8e5
mov dword [esp + 0x10], 0xfffffff9
jmp 0x42bbc6
lea eax, [esp + 0x2c]
push eax
push 1
push dword [esp + 0x28]
lea ebx, [esp + 0x30]
call fcn.004251b4
add esp, 0xc
test eax, eax
jne 0x42b90d
mov dword [esp + 0x10], 0xfffffff8
jmp 0x42bbc6
mov eax, dword [esp + 0x24]
push dword [eax]
call fcn.00425123
test eax, eax
pop ecx
je 0x42b9c4
lea eax, [esp + 0x14]
push eax
call fcn.004270f6
test eax, eax
pop ecx
jne 0x42b93d
mov dword [esp + 0x10], 0xfffffffe
jmp 0x42bbc6
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
call fcn.00427199
test eax, eax
pop ecx
pop ecx
jne 0x42b95e
mov dword [esp + 0x10], 0xfffffffd
jmp 0x42bbc6
push dword [esp + 0x18]
push 0
push 0x400
call dword [0x101392a4]
mov ebx, eax
test ebx, ebx
je 0x42bbc6
lea eax, [esp + 0x1c]
push eax
push edi
push ebx
call dword [0x10139060]
push ebx
call esi
cmp dword [esp + 0xa8], 8
mov eax, dword [esp + 0x94]
jae 0x42b9a1
lea eax, [esp + 0x94]
xor edi, edi
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x48]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push eax
push edi
push dword [esp + 0x44]
call dword [0x10139034]
jmp 0x42bba8
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
lea ebx, [esp + 0x18]
lea edi, [esp + 0x1c]
call fcn.0042508f
test eax, eax
pop ecx
je 0x42bbbe
cmp dword [esp + 0x18], 2
jne 0x42bb76
cmp dword [esp + 0x14], 6
jb 0x42bb76
push dword [esp + 0x20]
call fcn.00425144
pop ecx
call dword [0x101398e0]
xor edi, edi
cmp eax, edi
jne 0x42ba26
mov dword [esp + 0x10], 0xfffffff6
jmp 0x42bbc6
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x20], edi
call dword [0x10139870]
test eax, eax
jne 0x42ba47
mov dword [esp + 0x10], 0xfffffff5
jmp 0x42bbc6
push dword [esp + 0x18]
push edi
push 0x400
call dword [0x101392a4]
cmp eax, edi
mov dword [esp + 0x2c], eax
jne 0x42ba6c
mov dword [esp + 0x10], 0xfffffff3
jmp 0x42bbc6
lea ecx, [esp + 0x14]
push ecx
push 2
push eax
mov dword [esp + 0x20], edi
call dword [0x10139060]
test eax, eax
je 0x42bb6e
lea eax, [esp + 0x1c]
push eax
push 1
push 2
push edi
push 0x18b
push dword [esp + 0x28]
call dword [0x10139048]
test eax, eax
je 0x42bb68
push 0x1014ac9c
call dword [0x101392f0]
cmp eax, edi
mov dword [esp + 0x28], eax
je 0x42bb68
push 0x1014acb8
push eax
call dword [0x1013930c]
mov ebx, eax
cmp ebx, edi
je 0x42bb5e
cmp dword [esp + 0xa8], 8
mov eax, dword [esp + 0x94]
jae 0x42baec
lea eax, [esp + 0x94]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x48]
push ecx
push edi
push edi
push edi
push eax
push edi
push edi
push dword [esp + 0x3c]
call ebx
cmp eax, edi
jne 0x42bb4e
call dword [0x1013931c]
cmp eax, 0x422
jne 0x42bb5e
call fcn.0042bce3
test eax, eax
je 0x42bb5e
cmp dword [esp + 0xa8], 8
mov eax, dword [esp + 0x94]
jae 0x42bb34
lea eax, [esp + 0x94]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x48]
push ecx
push edi
push edi
push edi
push eax
push edi
push edi
push dword [esp + 0x3c]
call ebx
cmp eax, edi
je 0x42bb5e
push dword [esp + 0x38]
call esi
push dword [esp + 0x34]
call esi
mov dword [esp + 0x10], edi
push dword [esp + 0x28]
call dword [0x1013932c]
push dword [esp + 0x14]
call esi
push dword [esp + 0x2c]
call esi
jmp 0x42bbc6
cmp dword [esp + 0xa8], 8
mov eax, dword [esp + 0x94]
jae 0x42bb8e
lea eax, [esp + 0x94]
xor edi, edi
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x48]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push eax
push edi
call dword [0x10139310]
cmp eax, edi
je 0x42bbc6
push dword [esp + 0x38]
call esi
push dword [esp + 0x34]
call esi
and dword [esp + 0x10], edi
jmp 0x42bbc6
mov dword [esp + 0x10], 0xfffffff4
xor edi, edi
cmp dword [esp + 0x20], edi
je 0x42bbd4
push dword [esp + 0x20]
call esi
cmp dword [esp + 0x1c], edi
je 0x42bbe0
push dword [esp + 0x1c]
call esi
cmp dword [esp + 0x24], edi
je 0x42bbf1
push dword [esp + 0x24]
call dword [0x10139518]
pop ecx
push 0x1fe
lea eax, [esp + 0xb2]
push edi
push eax
mov word [esp + 0xb8], di
call fcn.0050ddb4
add esp, 0xc
push dword [esp + 0x10]
lea eax, [esp + 0xb0]
push 0x1014ace4
push eax
call dword [0x10139864]
add esp, 0xc
lea esi, [esp + 0x2c]
call fcn.00401e2a
mov byte [esp + 0x2c0], 1
mov ecx, dword [esp + 0x30]
cmp ecx, edi
je 0x42bc4c
mov eax, dword [ecx]
push 0x1014ad18
call dword [eax + 0xc]
lea eax, [esp + 0xac]
push eax
lea esi, [esp + 0x30]
call fcn.0042b21b
cmp dword [esp + 0xac], 8
mov eax, dword [esp + 0x98]
pop ecx
jae 0x42bc76
lea eax, [esp + 0x94]
mov esi, dword [esp + 0x30]
cmp esi, edi
je 0x42bc93
mov edx, dword [esi]
push eax
push 0x1014ad4c
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x20]
cmp esi, edi
mov byte [esp + 0x2c0], 0
je 0x42bca6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
or dword [esp + 0x2c0], 0xffffffff
lea ecx, [esp + 0x90]
call dword [0x10139488]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2a0]
xor ecx, esp
call fcn.0050dcbe
mov esp, ebp
pop ebp
ret