Function at 0x47c324
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
mov eax, 0x586294
push ebx
push esi
push edi
lea edi, [ebp - 0x3c]
mov ebx, dword [ebp + 8]
call fcn.0054c16c
mov edx, dword [ebp + 0x14]
mov dword [ebx + 0x78], edx
push 0x12
mov ecx, dword [ebp + 0xc]
push ecx
lea eax, [ebx + 0x18]
push eax
call fcn.0054bcc8
add esp, 0xc
jmp 0x47c361
push 0xa
call sub.KERNEL32.DLL_Sleep
cmp dword [ebx + 0x70], 0
jg 0x47c35a
mov eax, dword [ebx + 0x54]
test eax, eax
je 0x47c37f
push eax
call fcn.0054b1a0
pop ecx
xor edx, edx
mov dword [ebx + 0x54], edx
xor ecx, ecx
mov dword [ebx + 0x5c], ecx
mov eax, dword [ebx + 0x58]
test eax, eax
je 0x47c397
push eax
call fcn.0054b1a0
pop ecx
xor edx, edx
mov dword [ebx + 0x58], edx
xor ecx, ecx
mov dword [ebx + 0x60], ecx
mov eax, dword [ebx + 0x38]
push eax
call sub.KERNEL32.DLL_ResetEvent
mov edx, dword [ebx + 0x34]
push edx
call sub.KERNEL32.DLL_SetEvent
push 0xffffffffffffffff
mov ecx, dword [ebx + 0x38]
push ecx
call sub.KERNEL32.DLL_WaitForSingleObject
mov eax, dword [ebx + 0x38]
push eax
call sub.KERNEL32.DLL_ResetEvent
mov edx, dword [ebx + 0x34]
push edx
call sub.KERNEL32.DLL_SetEvent
push 0xffffffffffffffff
mov ecx, dword [ebx + 0x38]
push ecx
call sub.KERNEL32.DLL_WaitForSingleObject
mov eax, dword [ebx + 0x54]
xor ecx, ecx
mov dword [ebx + 0x64], eax
mov edx, dword [ebx + 0x5c]
mov dword [ebx + 0x68], edx
mov dword [ebx + 0x6c], ecx
cmp dword [ebx + 0x54], 0
je fcn.0047c72c
mov eax, dword [ebx + 0x20]
push eax
call fcn.0054b378
pop ecx
mov dword [ebx + 4], eax
mov edx, dword [ebx + 0x20]
push edx
call fcn.0054b378
pop ecx
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 0x20]
push ecx
push 0
mov eax, dword [ebx + 4]
push eax
call fcn.0054bd38
add esp, 0xc
mov edx, dword [ebx + 0x20]
push edx
push 0
mov ecx, dword [ebx + 8]
push ecx
call fcn.0054bd38
add esp, 0xc
push 0x20
call fcn.0054b1d4
pop ecx
mov dword [ebx + 0x10], eax
push 0x20
call fcn.0054b1d4
pop ecx
mov dword [ebx + 0x14], eax
push 0x20
push 0
mov eax, dword [ebx + 0x10]
push eax
call fcn.0054bd38
add esp, 0xc
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 4]
mov dword [eax], edx
mov ecx, dword [ebx + 0x20]
mov dword [eax + 4], ecx
mov dword [eax + 0x14], 1
push 0x20
push 0
mov eax, dword [ebx + 0x14]
push eax
call fcn.0054bd38
add esp, 0xc
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 8]
mov dword [eax], edx
mov ecx, dword [ebx + 0x20]
mov dword [eax + 4], ecx
mov dword [eax + 0x14], 1
mov word [edi + 0x10], 0x14
xor eax, eax
mov dword [ebp - 4], eax
inc dword [edi + 0x1c]
push 0x94
push 0
lea edx, [ebp - 0xd0]
push edx
call fcn.0054bd38
add esp, 0xc
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xd0], 0x94
push ecx
call sub.KERNEL32.DLL_GetVersionExA
cmp dword [ebp - 0xc0], 2
jne 0x47c4da
cmp dword [ebp - 0xcc], 6
jb 0x47c4da
mov al, 1
jmp 0x47c4dc
xor eax, eax
test al, al
jne 0x47c4f9
xor edx, edx
lea eax, [ebp - 4]
push edx
mov edx, 2
dec dword [edi + 0x1c]
call fcn.0055a088
pop ecx
jmp 0x47c63c
push ebx
call fcn.004bc100
pop ecx
cmp al, 1
jne 0x47c51d
mov cl, 1
lea eax, [ebp - 4]
push ecx
mov edx, 2
dec dword [edi + 0x1c]
call fcn.0055a088
pop ecx
jmp 0x47c63c
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 8]
inc dword [edi + 0x1c]
inc edi
sbb al, 0xa1
xor al, 0xec
pop ecx
add byte [ebx - 0x5def1800], cl
or dword [eax], eax