Function at 0x4c6b60
Capabilities:
Check os version

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a01d8
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x88]
push edi
cmp eax, 2
jne 0x4c6b96
cmp dword [ebx + 0xa8], 5
jne 0x4c6d0a
cmp dword [ebx + 0x78], 0xffffffff
jne 0x4c6d0a
mov ecx, ebx
mov dword [esp + 0x18], 0
call fcn.004cbb50
mov ebp, eax
mov ecx, ebp
mov dword [esp + 0x1c], ebp
call fcn.004753e0
mov ecx, dword [eax + 4]
test ecx, ecx
jg 0x4c6d0a
push ebx
mov ecx, eax
call fcn.004d8860
test eax, eax
jne 0x4c6d0a
test ebp, ebp
je 0x4c6bf0
mov eax, dword [ebp + 0x70]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x4c6d0a
mov eax, dword [eax + 0x28]
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push edi
push ecx
mov ecx, dword [ebx + 0xa4]
call fcn.004ce7f0
mov esi, eax
test esi, esi
je 0x4c6d0a
cmp dword [ebx + 0xa0], 2
jne 0x4c6c39
test ebp, ebp
je 0x4c6d0a
mov ebp, dword [ebp + 0x70]
mov eax, dword [ebp + 0x4c]
test eax, eax
jne 0x4c6c39
mov ecx, esi
call fcn.004d3190
test al, 0x40
je 0x4c6d0a
mov ebp, dword [esp + 0x48]
mov eax, dword [esp + 0x40]
mov edx, dword [esi]
push ebp
push edi
push eax
mov ecx, esi
call dword [edx + 0x12c]
cmp eax, 0xffffffff
je 0x4c6c86
mov ecx, dword [ebp + 8]
mov edx, dword [ebx + 0x1c]
cmp ecx, edx
jne 0x4c6d0a
test ebp, ebp
je 0x4c6d0d
cmp dword [ebp], 0x2c
jne 0x4c6d0d
mov ebp, dword [ebp + 0x28]
test ebp, ebp
je 0x4c6d0d
mov dword [ebp + 0x1c], esi
jmp 0x4c6d0d
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x4c6cb7
mov eax, dword [esi + 0x44]
test eax, eax
jg 0x4c6cb7
mov eax, dword [esi + 0x118]
test eax, eax
je 0x4c6cb4
mov ecx, dword [eax + 0x28]
test ecx, ecx
jg 0x4c6cae
mov edx, dword [eax + 0x24]
mov dword [esp + 0x48], edx
jmp 0x4c6cbb
mov dword [esp + 0x48], ecx
jmp 0x4c6cbb
mov eax, dword [esi + 0x40]
mov dword [esp + 0x48], eax
lea ecx, [esi + 0x7c]
mov edx, dword [esi + 0x7c]
mov dword [esp + 0x20], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x24], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x28], edx
mov edx, dword [esi]
mov eax, dword [ecx + 0xc]
mov ecx, esi
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x14]
push eax
call dword [edx + 0x58]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x38], 0
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4c6d22
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call fcn.0057b019
or eax, 0xffffffff
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret 0xc
lea edx, [esi + 0x9c]
lea ecx, [esp + 0x10]
push edx
call fcn.0057ad8e
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x38], 1
test eax, eax
je 0x4c6df8
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4c6df8
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4c6d90
lea ecx, [esi + 0xa0]
push ecx
lea ecx, [esp + 0x14]
call fcn.0057b152
mov ecx, dword [esp + 0x1c]
mov edi, dword [esi + 0x40]
call fcn.00473f20
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push edi
mov ecx, eax
call dword [edx + 0x50]
test eax, eax
jne 0x4c6d90
lea ecx, [esp + 0x10]
call fcn.0057afa4
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
jle 0x4c6df8
mov eax, dword [esp + 0x14]
cmp byte [eax], 0x3c
je 0x4c6df8
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push 0x4082fc
push edx
call fcn.0057b322
push 0x4082f8
push eax
lea eax, [esp + 0x48]
mov byte [esp + 0x40], 2
push eax
call fcn.0057b2ae
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 3
call fcn.0057b431
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 2
call fcn.0057b019
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 1
call fcn.0057b019
mov edx, dword [esi]
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call dword [edx + 0x54]
mov edi, eax
mov ecx, ebx
mov byte [esp + 0x38], 4
call fcn.004cc570
push eax
lea ecx, [esp + 0x18]
push edi
mov edi, dword [esp + 0x50]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push edi
mov edx, dword [esp + 0x38]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x50]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebx + 0x1c]
push eax
push ebp
call fcn.00491a10
add esp, 0x2c
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 1
call fcn.0057b019
test ebp, ebp
je 0x4c6e72
cmp dword [ebp], 0x2c
jne 0x4c6e72
mov ebp, dword [ebp + 0x28]
test ebp, ebp
je 0x4c6e72
mov dword [ebp + 0x1c], esi
test edi, edi
jne 0x4c6e79
or edi, 0xffffffff
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 0
call fcn.0057b019
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call fcn.0057b019
mov eax, edi
jmp 0x4c6d0d