Function at 0x4f922c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x4f9234
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4f9b9c
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp - 0xc]
cmp byte [ebx + 0x30], 0
jne 0x4f9296
mov dl, 8
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x4f928d
lea ecx, [ebp - 0x14]
mov edx, 8
mov eax, ebx
call fcn.0040c920
lea eax, [ebp - 0x14]
mov edx, 0x4f9bb8
call fcn.004062f0
mov ecx, dword [ebp - 0x14]
mov dl, 8
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x34]
call fcn.004f4030
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 0x4f9b48
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 0x4f9300
push 0
mov eax, dword [0x528e1c]
mov eax, dword [eax]
call eax
pop ecx
lea edx, [ebp - 0x18]
call fcn.0040daac
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 8]
call fcn.004061b8
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov edx, 0x4f9bd8
call fcn.00406370
mov ecx, dword [ebp - 0x1c]
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x34]
cmp byte [0x528750], 0
jne 0x4f9325
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0xc0], 0
je 0x4f9325
mov eax, dword [0x528a44]
mov eax, dword [eax]
call eax
mov byte [0x528750], 1
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x3c], 0
jne 0x4f9358
mov eax, dword [ebp - 0xc]
call fcn.004f56b4
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x3c], ebx
test ebx, ebx
jne 0x4f9358
mov ecx, 0x4f9c2c
mov dl, 1
mov eax, dword [0x4e2968]
call fcn.00412118
call fcn.00404b54
xor ecx, ecx
push ebp
push 0x4f9afc
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 0xc]
cmp word [eax + 0xba], 0
je 0x4f9385
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0xbc]
call dword [ebx + 0xb8]
mov eax, dword [0x5287fc]
cmp dword [eax], 0x1010000f
jb 0x4f93f2
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 [0x528a50]
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 0x4f93f2
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x94]
mov eax, dword [0x4e21c0]
call fcn.0041e194
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov edx, 0x4f9c74
call fcn.00406370
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 0x4f9411
test byte [eax + 0x45], 1
je 0x4f9411
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004f8fcc
jmp 0x4f9490
push 0x4f5998
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x528be8]
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 [0x528e9c]
mov eax, dword [eax]
call eax
add esp, 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4c]
call fcn.004fb8dc
test al, al
jne 0x4f9490
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x58]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4f9482
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x54], 0
jne 0x4f9482
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.004f8504
jmp 0x4f9490
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x54]
mov eax, dword [ebp - 0xc]
call fcn.004f82ec
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4c]
call fcn.004fb8d4
test al, al
jne 0x4f94ae
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4c]
call fcn.004fb8e4
test al, al
je 0x4f94b8
mov eax, dword [ebp - 0xc]
call fcn.004f7c40
jmp 0x4f94f9
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x48]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4f94eb
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x44], 0
jne 0x4f94eb
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.004f7e88
jmp 0x4f94f9
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 0xc]
call fcn.004f7a2c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4c]
call fcn.004fb8e4
test al, al
jne 0x4f9558
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x60]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4f9544
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x5c], 0
jne 0x4f9544
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x64], 0
jne 0x4f9544
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.004f78e8
jmp 0x4f9558
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.004f711c
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x68]
mov eax, dword [ebp - 0xc]
call fcn.004f6b7c
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x6c]
mov eax, dword [ebp - 0xc]
call fcn.004f6ee4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4f95a7
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x70], 0
jne 0x4f95a7
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.004f8bf4
jmp 0x4f95b5
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x70]
mov eax, dword [ebp - 0xc]
call fcn.004f8910
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x8c]
cmp al, 1
jne 0x4f95f2
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
mov edx, 1
call fcn.004d3170
test eax, eax
jne 0x4f9662
push 0x4f9cac
mov cl, 1
mov edx, dword [0x4e2968]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
jmp 0x4f9662
test al, al
jbe 0x4f9662
and eax, 0x7f
mov eax, dword [eax*4 + 0x528718]
push eax
mov eax, dword [0x528d04]
mov eax, dword [eax]
call eax
pop ecx
mov ebx, eax
test ebx, ebx
jne 0x4f9626
push 0x4f9cfc
mov cl, 1
mov edx, dword [0x4e2968]
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 [0x528c48]
mov eax, dword [eax]
call eax
add esp, 0x10
test eax, eax
jne 0x4f9657
push 0x4f9d4c
mov cl, 1
mov edx, dword [0x4e2968]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x3c]
push ebx
mov eax, dword [0x528b74]
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 0x4f9681
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x41], 0
mov eax, dword [0x5287fc]
cmp dword [eax], 0x1010000f