Function at 0x47b544
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
mov eax, 0x587e18
push ebx
push esi
push edi
lea edi, [ebp - 0x3c]
mov ebx, dword [ebp + 8]
call fcn.0054e578
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.0054e0d4
add esp, 0xc
jmp 0x47b581
push 0xa
call sub.KERNEL32.DLL_Sleep
cmp dword [ebx + 0x70], 0
jg 0x47b57a
mov eax, dword [ebx + 0x54]
test eax, eax
je 0x47b59f
push eax
call fcn.0054d5ac
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 0x47b5b7
push eax
call fcn.0054d5ac
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 0x47b94c
mov eax, dword [ebx + 0x20]
push eax
call fcn.0054d784
pop ecx
mov dword [ebx + 4], eax
mov edx, dword [ebx + 0x20]
push edx
call fcn.0054d784
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.0054e144
add esp, 0xc
mov edx, dword [ebx + 0x20]
push edx
push 0
mov ecx, dword [ebx + 8]
push ecx
call fcn.0054e144
add esp, 0xc
push 0x20
call fcn.0054d5e0
pop ecx
mov dword [ebx + 0x10], eax
push 0x20
call fcn.0054d5e0
pop ecx
mov dword [ebx + 0x14], eax
push 0x20
push 0
mov eax, dword [ebx + 0x10]
push eax
call fcn.0054e144
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.0054e144
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.0054e144
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 0x47b6fa
cmp dword [ebp - 0xcc], 6
jb 0x47b6fa
mov al, 1
jmp 0x47b6fc
xor eax, eax
test al, al
jne 0x47b719
xor edx, edx
lea eax, [ebp - 4]
push edx
mov edx, 2
dec dword [edi + 0x1c]
call fcn.0055c51c
pop ecx
jmp 0x47b85c
push ebx
call fcn.004ba8f8
pop ecx
cmp al, 1
jne 0x47b73d
mov cl, 1
lea eax, [ebp - 4]
push ecx
mov edx, 2
dec dword [edi + 0x1c]
call fcn.0055c51c
pop ecx
jmp 0x47b85c
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 8]
inc dword [edi + 0x1c]
mov eax, dword [0x5a11fc]
mov eax, dword [eax]
call fcn.0051780c
lea eax, [ebp - 8]
mov eax, dword [eax]
xor edx, edx
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0xc]
inc dword [edi + 0x1c]
call fcn.005438a0
lea eax, [ebp - 0xc]
push eax
mov edx, str.nw7sy.set
lea eax, [ebp - 0x10]
call fcn.0055c210
mov edx, eax
inc dword [edi + 0x1c]
xor eax, eax
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
inc dword [edi + 0x1c]
pop eax
call fcn.0055c574
or eax, 0x558d000e
in al, dx
lea eax, [ebp - 4]
call fcn.0055c54c
mov eax, dword [ebp - 4]
call fcn.005437f8
test al, al
je 0x47b808
push 1
push ebx
call fcn.004baae4
add esp, 8
mov cl, 1
lea eax, [ebp - 0x14]
mov edx, 2
push ecx
dec dword [edi + 0x1c]
call fcn.0055c51c
dec dword [edi + 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0055c51c
dec dword [edi + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0055c51c
dec dword [edi + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0055c51c
dec dword [edi + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0055c51c
pop ecx
jmp 0x47b85c
xor ecx, ecx
lea eax, [ebp - 0x14]
push ecx
mov edx, 2
dec dword [edi + 0x1c]
call fcn.0055c51c
dec dword [edi + 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0055c51c
dec dword [edi + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0055c51c
dec dword [edi + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0055c51c
dec dword [edi + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0055c51c
pop ecx
mov word [edi + 0x10], 8
cmp cl, 1
jne 0x47b86e
mov eax, 1
jmp 0x47b885
push 0x10000
push 0
mov edx, dword [ebp + 0x10]
push ebp
adc byte [edx - 0x73], dl
dec ebx
sbb byte [ecx + 0x6a], dl
call dword [ebx - 0x18]
shl dword [ecx + 0xf], 0
test eax, eax
je 0x47b934
push 0x94
push 0
lea eax, [ebp - 0x164]
push eax
call fcn.0054e144
add esp, 0xc
lea edx, [ebp - 0x164]
mov dword [ebp - 0x164], 0x94
push edx
call sub.KERNEL32.DLL_GetVersionExA
cmp dword [ebp - 0x154], 2
jne 0x47b8cf
invalid
invalid
invalid