Function at 0x4a6988
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x4a6990
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4a72f8
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp - 0xc]
cmp byte [ebx + 0x30], 0
jne 0x4a69f2
mov dl, 8
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x4a69e9
lea ecx, [ebp - 0x14]
mov edx, 8
mov eax, ebx
call fcn.0040c568
lea eax, [ebp - 0x14]
mov edx, 0x4a7314
call fcn.00405fe0
mov ecx, dword [ebp - 0x14]
mov dl, 8
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x34]
call fcn.004a1798
mov byte [ebx + 0x30], 1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc8]
add eax, 4
push eax
call sub.kernel32.dll_EnterCriticalSection
xor ecx, ecx
push ebp
push 0x4a72a4
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x4a6a5c
push 0
mov eax, dword [0x4ebfb4]
mov eax, dword [eax]
call eax
pop ecx
lea edx, [ebp - 0x18]
call fcn.0040d924
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 8]
call fcn.00405de8
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov edx, 0x4a7334
call fcn.004060a0
mov ecx, dword [ebp - 0x1c]
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x34]
cmp byte [0x4ea7e8], 0
jne 0x4a6a81
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0xc0], 0
je 0x4a6a81
mov eax, dword [0x4ebbc4]
mov eax, dword [eax]
call eax
mov byte [0x4ea7e8], 1
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x3c], 0
jne 0x4a6ab4
mov eax, dword [ebp - 0xc]
call fcn.004a2e10
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x3c], ebx
test ebx, ebx
jne 0x4a6ab4
mov ecx, 0x4a7388
mov dl, 1
mov eax, dword [0x48ff94]
call fcn.0041388c
call fcn.004046ec
xor ecx, ecx
push ebp
push 0x4a7258
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 0xc]
cmp word [eax + 0xba], 0
je 0x4a6ae1
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0xbc]
call dword [ebx + 0xb8]
mov eax, dword [0x4eb958]
cmp dword [eax], 0x1010000f
jb 0x4a6b4e
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x94]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x4ebbd0]
mov eax, dword [eax]
call eax
add esp, 8
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x4a6b4e
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x94]
mov eax, dword [0x48f7ec]
call fcn.0041eb88
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov edx, 0x4a73d0
call fcn.004060a0
mov ecx, dword [ebp - 0x20]
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x34]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc4]
test eax, eax
je 0x4a6b6d
test byte [eax + 0x45], 1
je 0x4a6b6d
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004a6728
jmp 0x4a6bec
push 0x4a30f4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x4ebd94]
mov eax, dword [eax]
call eax
add esp, 8
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x4ec03c]
mov eax, dword [eax]
call eax
add esp, 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4c]
call fcn.004a9038
test al, al
jne 0x4a6bec
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x58]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4a6bde
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x54], 0
jne 0x4a6bde
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x58]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.004a5c60
jmp 0x4a6bec
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x54]
mov eax, dword [ebp - 0xc]
call fcn.004a5a48
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4c]
call fcn.004a9030
test al, al
jne 0x4a6c0a
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4c]
call fcn.004a9040
test al, al
je 0x4a6c14
mov eax, dword [ebp - 0xc]
call fcn.004a539c
jmp 0x4a6c55
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x48]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4a6c47
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x44], 0
jne 0x4a6c47
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x48]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
call fcn.004a55e4
jmp 0x4a6c55
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 0xc]
call fcn.004a5188
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4c]
call fcn.004a9040
test al, al
jne 0x4a6cb4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x60]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4a6ca0
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x5c], 0
jne 0x4a6ca0
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x64], 0
jne 0x4a6ca0
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x60]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0xc]
call fcn.004a5044
jmp 0x4a6cb4
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x64]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x5c]
mov eax, dword [ebp - 0xc]
call fcn.004a4878
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x68]
mov eax, dword [ebp - 0xc]
call fcn.004a42d8
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x6c]
mov eax, dword [ebp - 0xc]
call fcn.004a4640
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4a6d03
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x70], 0
jne 0x4a6d03
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0xc]
call fcn.004a6350
jmp 0x4a6d11
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x70]
mov eax, dword [ebp - 0xc]
call fcn.004a606c
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x8c]
cmp al, 1
jne 0x4a6d4e
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
mov edx, 1
call fcn.00483ecc
test eax, eax
jne 0x4a6dbe
push 0x4a7408
mov cl, 1
mov edx, dword [0x48ff94]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
jmp 0x4a6dbe
test al, al
jbe 0x4a6dbe
and eax, 0x7f
mov eax, dword [eax*4 + 0x4ea7b0]
push eax
mov eax, dword [0x4ebea0]
mov eax, dword [eax]
call eax
pop ecx
mov ebx, eax
test ebx, ebx
jne 0x4a6d82
push 0x4a7458
mov cl, 1
mov edx, dword [0x48ff94]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x3c]
push ebx
push 0
push 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x4ebdf8]
mov eax, dword [eax]
call eax
add esp, 0x10
test eax, eax
jne 0x4a6db3
push 0x4a74a8
mov cl, 1
mov edx, dword [0x48ff94]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x3c]
push ebx
mov eax, dword [0x4ebd14]
mov eax, dword [eax]
call eax
pop ecx
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 0x84]
or ebx, 0x4000
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x41], 5
jne 0x4a6ddd
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x41], 0
mov eax, dword [0x4eb958]
cmp dword [eax], 0x1010000f
jb 0x4a6e62
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x41]
mov edx, dword [ebp - 0xc]
cmp al, byte [edx + 0x42]
ja 0x4a6f03
and eax, 0x7f
mov eax, dword [eax*4 + 0x4ea7c4]
push 0
push eax
push 0x7b
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x4ebdf8]
mov eax, dword [eax]
call eax
add esp, 0x10
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x42]
mov eax, dword [eax*4 + 0x4ea7c4]
push 0
push eax
push 0x7c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x4ebdf8]
mov eax, dword [eax]
call eax
add esp, 0x10
and ebx, 0xfdffffff
and ebx, 0xfbffffff
and ebx, 0xf7ffffff
and ebx, 0xefffffff
jmp 0x4a6f03
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x41]
mov edx, dword [ebp - 0xc]
movzx edx, byte [edx + 0x42]
cmp al, dl
ja 0x4a6f03
and ebx, 0xfdffffff
and ebx, 0xfbffffff
and ebx, 0xf7ffffff
and ebx, 0xefffffff
test al, al
jbe 0x4a6ec8
cmp al, 1
jne 0x4a6ea0
or ebx, 0x2000000
jmp 0x4a6ec8
cmp al, 2
jne 0x4a6eb2
or ebx, 0x2000000
or ebx, 0x4000000
jmp 0x4a6ec8
cmp al, 3
jne 0x4a6ec8
or ebx, 0x2000000
or ebx, 0x4000000
or ebx, 0x10000000
cmp dl, 5
jae 0x4a6f03
test dl, dl
jne 0x4a6ee5
or ebx, 0x4000000
or ebx, 0x10000000
or ebx, 0x8000000
jmp 0x4a6f03
cmp dl, 1
jne 0x4a6ef8
or ebx, 0x10000000
or ebx, 0x8000000
jmp 0x4a6f03
cmp dl, 2
jne 0x4a6f03
or ebx, 0x8000000
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x4a6f63
push 0x4a74f8
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x41]
mov eax, dword [0x48f27c]
call fcn.0041eb88
push dword [ebp - 0x3c]
push 0x4a7524
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x42]
mov eax, dword [0x48f27c]
call fcn.0041eb88
push dword [ebp - 0x40]
lea eax, [ebp - 0x38]
mov edx, 4
call fcn.00406184
mov ecx, dword [ebp - 0x38]
mov dl, 8
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x34]
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0xb0]
mov eax, dword [ebp - 0xc]
call fcn.004a8810
mov eax, dword [0x4eb958]
cmp dword [eax], 0x1010000f
ja 0x4a6f8f
mov eax, ebx
and eax, 0x20
cmp eax, 0x20
jne 0x4a6f8f
and ebx, 0xffffffdf
push 0
push ebx
push 0x20
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x4ebdf8]
mov eax, dword [eax]
call eax
add esp, 0x10
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x88], 0
je 0x4a7000
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x88]
mov ecx, 0
call fcn.00405e10
mov eax, dword [ebp - 0x44]
call fcn.00405754
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x4ebdb4]
mov eax, dword [eax]
call eax
add esp, 8
test eax, eax
jne 0x4a7016
push 0x4a7554
mov cl, 1
mov edx, dword [0x48ff94]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x3c]
jmp 0x4a7016
mov ecx, 0x4a7594
mov dl, 1
mov eax, dword [0x48ff94]
call fcn.0041388c
call fcn.004046ec
mov eax, dword [ebp - 0xc]
call fcn.004a8478
mov byte [ebp - 0xd], al
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x98]
push eax
push 0x2c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x4ebdf8]
mov eax, dword [eax]
call eax
add esp, 0x10
test byte [ebp - 0xd], 0x10
jne 0x4a70ba
mov eax, dword [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x4ebe54]
mov eax, dword [eax]
call eax
add esp, 0xc
test eax, eax
jne 0x4a707a
push 0x4a75c4
mov cl, 1
mov edx, dword [0x48ff94]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x3c]
push 0x4a35e8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x4ec000]
mov eax, dword [eax]
call eax
add esp, 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x9c]
cmp eax, 0x5000
je 0x4a70ba
push 0
push eax
push 0x2a
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x4ebdf8]
mov eax, dword [eax]
call eax
add esp, 0x10
test byte [ebp - 0xd], 2
je 0x4a7197
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xa0]
test eax, eax
jbe 0x4a70e5
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x4ec138]
mov eax, dword [eax]
call eax
add esp, 8
push 0x4a3858
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x4ec058]
mov eax, dword [eax]
call eax
add esp, 8
push 0x4a3a48
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x4ec02c]
mov eax, dword [eax]
call eax
add esp, 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xa4]
test eax, eax
je 0x4a7127
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x4a717a
mov eax, dword [ebp - 0xc]
add eax, 0xa4
call fcn.00406644
mov edi, eax
mov eax, dword [ebp - 0xc]
mov esi, dword [eax + 0xa4]
test esi, esi
je 0x4a714c
sub esi, 4
mov esi, dword [esi]
push esi
push edi
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x4eba98]
mov eax, dword [eax]
call eax
add esp, 0xc
test eax, eax
jne 0x4a717a
push 0x4a7608
mov cl, 1
mov edx, dword [0x48ff94]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x3c]
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x4a7197
mov ecx, 0x4a7660
mov dl, 8
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x34]
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x4a724e
mov esi, 1
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405c38
xor edi, edi
test esi, ebx
je 0x4a71e5
push dword [ebp - 4]
lea ecx, [ebp - 0x48]
mov edx, 8
mov eax, esi
call fcn.0040c568
push dword [ebp - 0x48]
push 0x4a76a0
lea eax, [ebp - 4]
mov edx, 3
call fcn.00406184
add esi, esi
inc edi
cmp edi, 0x1f
jne 0x4a71ba
push 0x4a76b4
lea ecx, [ebp - 0x50]
mov edx, 8
mov eax, ebx
call fcn.0040c568
push dword [ebp - 0x50]
push 0x4a76dc
push dword [ebp - 4]
lea eax, [ebp - 0x4c]
mov edx, 4
call fcn.00406184
mov ecx, dword [ebp - 0x4c]
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x34]
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0xc]
call fcn.004a8b10
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x54]
mov edx, 0x4a76f0
call fcn.004060a0
mov ecx, dword [ebp - 0x54]
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a7284
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a72ab
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc8]
add eax, 4
push eax
call sub.kernel32.dll_LeaveCriticalSection
ret