Function at 0x40aabc
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
mov eax, 0x494884
push ebx
push esi
mov ebx, dword [ebp + 8]
call fcn.00471e54
xor esi, esi
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x60], eax
push 0x12
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebx + 0x18]
push ecx
call fcn.00471a90
add esp, 0xc
jmp 0x40aaf7
push 0xa
call sub.KERNEL32.DLL_Sleep
cmp dword [ebx + 0x58], 0
jg 0x40aaf0
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x40ab15
push eax
call fcn.00471124
pop ecx
xor edx, edx
mov dword [ebx + 0x3c], edx
xor ecx, ecx
mov dword [ebx + 0x44], ecx
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x40ab2d
push eax
call fcn.00471124
pop ecx
xor edx, edx
mov dword [ebx + 0x40], edx
xor ecx, ecx
mov dword [ebx + 0x48], ecx
mov eax, dword [ebx + 0x30]
push eax
call sub.KERNEL32.DLL_ResetEvent
mov edx, dword [ebx + 0x2c]
push edx
call sub.KERNEL32.DLL_SetEvent
push 0xffffffffffffffff
mov ecx, dword [ebx + 0x30]
push ecx
call sub.KERNEL32.DLL_WaitForSingleObject
mov eax, dword [ebx + 0x30]
push eax
call sub.KERNEL32.DLL_ResetEvent
mov edx, dword [ebx + 0x2c]
push edx
call sub.KERNEL32.DLL_SetEvent
push 0xffffffffffffffff
mov ecx, dword [ebx + 0x30]
push ecx
call sub.KERNEL32.DLL_WaitForSingleObject
mov eax, dword [ebx + 0x3c]
xor ecx, ecx
mov dword [ebx + 0x4c], eax
mov edx, dword [ebx + 0x44]
mov dword [ebx + 0x50], edx
mov dword [ebx + 0x54], ecx
cmp dword [ebx + 0x3c], 0
je 0x40aeca
mov eax, dword [ebx + 0x20]
push eax
call fcn.004712fc
pop ecx
mov dword [ebx + 4], eax
mov edx, dword [ebx + 0x20]
push edx
call fcn.004712fc
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.00471b00
add esp, 0xc
mov edx, dword [ebx + 0x20]
push edx
push 0
mov ecx, dword [ebx + 8]
push ecx
call fcn.00471b00
add esp, 0xc
push 0x20
call fcn.00471158
pop ecx
mov dword [ebx + 0x10], eax
push 0x20
call fcn.00471158
pop ecx
mov dword [ebx + 0x14], eax
push 0x20
push 0
mov eax, dword [ebx + 0x10]
push eax
call fcn.00471b00
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.00471b00
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 [ebp - 0x2c], 0x14
xor eax, eax
mov dword [ebp - 4], eax
inc dword [ebp - 0x20]
push 0x94
push 0
lea edx, [ebp - 0xd0]
push edx
call fcn.00471b00
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 0x40ac70
cmp dword [ebp - 0xcc], 6
jb 0x40ac70
mov al, 1
jmp 0x40ac72
xor eax, eax
test al, al
jne 0x40ac8f
xor edx, edx
lea eax, [ebp - 4]
push edx
mov edx, 2
dec dword [ebp - 0x20]
call fcn.0047cd0c
pop ecx
jmp 0x40add2
push ebx
call fcn.00412884
pop ecx
cmp al, 1
jne 0x40acb3
mov cl, 1
lea eax, [ebp - 4]
push ecx
mov edx, 2
dec dword [ebp - 0x20]
call fcn.0047cd0c
pop ecx
jmp 0x40add2
xor eax, eax
lea edx, [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [0x4d70f8]
inc dword [ebp - 0x20]
mov eax, dword [eax]
call fcn.0043fe40
lea eax, [ebp - 8]
mov eax, dword [eax]
xor edx, edx
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0xc]
inc dword [ebp - 0x20]
call fcn.00468f58
lea eax, [ebp - 0xc]
push eax
mov edx, 0x492b85
lea eax, [ebp - 0x10]
call fcn.0047cc54
mov edx, eax
inc dword [ebp - 0x20]
xor eax, eax
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
inc dword [ebp - 0x20]
pop eax
call fcn.0047cd50
lea edx, [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.0047cd3c
mov eax, dword [ebp - 4]
call fcn.00468ec8
test al, al
je 0x40ad7e
push 1
push ebx
call fcn.00412a70
add esp, 8
mov cl, 1
lea eax, [ebp - 0x14]
mov edx, 2
push ecx
dec dword [ebp - 0x20]
call fcn.0047cd0c
dec dword [ebp - 0x20]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0047cd0c
dec dword [ebp - 0x20]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0047cd0c
dec dword [ebp - 0x20]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0047cd0c
dec dword [ebp - 0x20]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0047cd0c
pop ecx
jmp 0x40add2
xor ecx, ecx
lea eax, [ebp - 0x14]
push ecx
mov edx, 2
dec dword [ebp - 0x20]
call fcn.0047cd0c
dec dword [ebp - 0x20]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0047cd0c
dec dword [ebp - 0x20]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0047cd0c
dec dword [ebp - 0x20]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0047cd0c
dec dword [ebp - 0x20]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0047cd0c
pop ecx
mov word [ebp - 0x2c], 8
cmp cl, 1
jne 0x40ade4
mov eax, 1
jmp 0x40adfb
push 0x10000
push 0
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebx + 0x18]
push ecx
push 0xffffffffffffffff
push ebx
call sub.WINMM.DLL_waveOutOpen
test eax, eax
je 0x40aeb7
push 0x94
push 0
lea eax, [ebp - 0x164]
push eax
call fcn.00471b00
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 0x40ae45
cmp dword [ebp - 0x160], 6
jb 0x40ae45
mov cl, 1
jmp 0x40ae47
xor ecx, ecx
cmp cl, 1
jne 0x40aeca
push 0x118
call fcn.00471158
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x40ae79
mov word [ebp - 0x2c], 0x2c
mov edx, dword [ebp - 0x18]
push edx
call fcn.00412c44
pop ecx
mov word [ebp - 0x2c], 0x20
mov esi, dword [ebp - 0x18]
jmp 0x40ae7c
mov esi, dword [ebp - 0x18]
mov dword [ebx + 0x38], esi
mov eax, dword [esi + 0x114]
test eax, eax
je 0x40ae92
mov esi, 0xfff0bdc0
sub esi, eax
jmp 0x40aeca
push esi
call fcn.0041b178
pop ecx
cmp eax, 1
je 0x40aea2
mov esi, eax
jmp 0x40aeca
mov eax, dword [ebx + 0x34]
cmp eax, 0x32
je 0x40aeb7
push eax
mov edx, dword [ebx + 0x38]
push edx
call fcn.0041b398
add esp, 8
mov esi, 1
mov eax, esi
mov edx, dword [ebp - 0x3c]
mov dword fs:[0], edx
jmp 0x40af17
xor ecx, ecx
mov dword [ebx + 0xc], ecx
mov eax, dword [ebx + 4]
push eax
call fcn.00471124
pop ecx
xor edx, edx
mov dword [ebx + 4], edx
mov ecx, dword [ebx + 8]
push ecx
call fcn.00471124
pop ecx
xor eax, eax
mov dword [ebx + 8], eax
mov edx, dword [ebx + 0x10]
push edx
call fcn.00471124
pop ecx
xor ecx, ecx
mov dword [ebx + 0x10], ecx
mov eax, dword [ebx + 0x14]
push eax
call fcn.00471124
pop ecx
xor edx, edx
mov dword [ebx + 0x14], edx
mov eax, esi
mov edx, dword [ebp - 0x3c]
mov dword fs:[0], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret