Function at 0x1009afd2
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c9904
mov eax, dword fs:[0]
push eax
sub esp, 0x1cc
mov eax, dword [0x100f83e0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1d0], ecx
push 0x114
push 0
lea eax, [ebp - 0x14c]
push eax
call fcn.100770c0
add esp, 0xc
mov dword [ebp - 0x14c], 0x114
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1009b039
jmp 0x1009b30f
and dword [ebp - 0x164], 0
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1009b059
mov ecx, dword [ebp - 0x1d0]
call fcn.1009aaa7
mov dword [ebp - 0x164], eax
lea ecx, [ebp - 0x34]
call fcn.100086c4
and dword [ebp - 4], 0
cmp dword [ebp - 0x148], 5
jne 0x1009b0c2
cmp dword [ebp - 0x144], 1
jne 0x1009b0c2
mov ecx, dword [ebp - 0x1d0]
call fcn.1009a3a9
test eax, eax
je 0x1009b095
push str._xpx64_
lea ecx, [ebp - 0x34]
call fcn.100086ae
jmp 0x1009b0c0
push str._xp_
lea ecx, [ebp - 0x34]
call fcn.100086ae
cmp dword [ebp - 0x164], 0
je 0x1009b0c0
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1009b0c0
push str._xp_qd_
lea ecx, [ebp - 0x34]
call fcn.100086ae
jmp 0x1009b130
cmp dword [ebp - 0x148], 6
jne 0x1009b11f
cmp dword [ebp - 0x144], 1
jne 0x1009b11f
mov ecx, dword [ebp - 0x1d0]
call fcn.1009a3a9
test eax, eax
je 0x1009b0f2
push str._win7x64_
lea ecx, [ebp - 0x34]
call fcn.100086ae
jmp 0x1009b11d
push str._win7_
lea ecx, [ebp - 0x34]
call fcn.100086ae
cmp dword [ebp - 0x164], 0
je 0x1009b11d
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1009b11d
push str._win7_qd_
lea ecx, [ebp - 0x34]
call fcn.100086ae
jmp 0x1009b130
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.100014a6
jmp 0x1009b30f
lea ecx, [ebp - 0x160]
call fcn.1004a51b
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x1d0]
add ecx, 4
call fcn.1000e71e
lea eax, [ebp - 0x1a8]
push eax
mov ecx, dword [ebp - 0x1d0]
add ecx, 4
call fcn.1001628c
push eax
lea ecx, [ebp - 0x14]
call fcn.10016335
movzx eax, al
test eax, eax
je 0x1009b280
lea ecx, [ebp - 0x14]
call fcn.1001b57f
push eax
lea ecx, [ebp - 0x19c]
call fcn.1000146e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.1001b57f
add eax, 0x1c
push eax
lea ecx, [ebp - 0x180]
call fcn.1000146e
mov byte [ebp - 4], 3
push 0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x19c]
call fcn.1004a4c7
cmp eax, 0xffffffff
je 0x1009b255
push 0
push 0x5b
lea ecx, [ebp - 0x19c]
call fcn.1000911c
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 0x1a0], 0
je 0x1009b255
push dword [ebp - 0x1a0]
push 0
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x1c4]
call fcn.1004a446
mov dword [ebp - 0x1d4], eax
mov eax, dword [ebp - 0x1d4]
mov dword [ebp - 0x1d8], eax
mov byte [ebp - 4], 4
push dword [ebp - 0x1d8]
lea ecx, [ebp - 0x19c]
call fcn.1000909b
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c4]
call fcn.100014a6
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x160]
call fcn.1004a53d
mov ecx, eax
call fcn.1000909b
lea ecx, [ebp - 0x14]
call fcn.10003811
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x180]
call fcn.100014a6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x19c]
call fcn.100014a6
jmp 0x1009b151
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x160]
call fcn.1000e71e
lea eax, [ebp - 0x1cc]
push eax
lea ecx, [ebp - 0x160]
call fcn.1001628c
push eax
lea ecx, [ebp - 0x154]
call fcn.10016335
movzx eax, al
test eax, eax
je 0x1009b2f4
lea ecx, [ebp - 0x154]
call fcn.1001b57f
add eax, 0x1c
push eax
lea ecx, [ebp - 0x154]
call fcn.1001b57f
push eax
mov ecx, dword [ebp - 0x1d0]
add ecx, 4
call fcn.1004a53d
mov ecx, eax
call fcn.1000909b
lea ecx, [ebp - 0x154]
call fcn.10003811
jmp 0x1009b292
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x160]
call fcn.10042836
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.100014a6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.100770aa
leave
ret 4