Function at 0x10018fb0
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x10064870]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0xa0], eax
xor ebx, ebx
mov eax, dword [ebp + 0xc]
push esi
sub eax, ebx
je 0x1001bffc
dec eax
jne 0x1001911f
mov eax, dword [0x10064180]
or eax, dword [0x10064184]
jne 0x100190ea
push edi
xor edi, edi
cmp byte [section..data], bl
jne 0x1001c064
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0x94
push eax
call dword [sym.imp.kernel32.dll_GetVersionExA]
test eax, eax
je 0x10019051
cmp dword [ebp - 0x94], 6
setb al
cmp dword [ebp - 0x94], 6
mov byte [0x10064001], al
ja 0x1001904a
jne 0x1001c051
cmp dword [ebp - 0x90], 1
jbe 0x1001c051
xor edi, edi
inc edi
test al, al
jne 0x100190b6
push 0x1000a380
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x1002261a
push 0x1000a39c
push esi
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x10064014], eax
test eax, eax
je 0x1001c058
push 0x1000a3a8
push esi
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x1006400c], eax
test eax, eax
je 0x1002263c
push 0x1000a3b8
push esi
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x10064020], eax
test eax, eax
je 0x1002263c
mov al, byte [0x10064001]
mov byte [section..data], 1
pop edi
test al, al
jne 0x1002264b
mov esi, dword [0x1006400c]
mov ecx, esi
push 0x10064180
push 0x10064838
push 0x1002d0b0
push 0x1000a3e0
call dword [0x10067390]
call esi
push dword [ebp - 0xa0]
call dword [sym.imp.kernel32.dll_DisableThreadLibraryCalls]
call fcn.1000d7e3
test eax, eax
js 0x1001911f
call fcn.1000c4bb
test eax, eax
js 0x1001911f
call fcn.1000c19a
test eax, eax
js 0x1001911f
lea ecx, [ebp - 0x99]
call fcn.1000d493
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.10002e40
mov esp, ebp
pop ebp
ret 0xc
xor ebx, ebx
inc ebx
cmp byte [section..data], 0
je 0x1001c047
mov esi, dword [0x10064180]
mov eax, esi
mov ecx, dword [0x10064184]
or eax, ecx
je 0x1001c047
cmp byte [0x10064001], 0
jne 0x1002268f
push ecx
push esi
mov esi, dword [0x10064020]
mov ecx, esi
call dword [0x10067390]
call esi
xor ecx, ecx
mov dword [0x10064180], ecx
mov dword [0x10064184], ecx
call fcn.1001c073
jmp 0x1001911f
xor edi, edi
jmp 0x1001904d
mov al, 1
mov byte [0x10064001], al
jmp 0x100190b6
mov al, byte [0x10064001]
jmp 0x100190bd
test edi, edi
je 0x1001c058
push 0x10027790
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x10019066
jmp 0x1001c058
mov dword [0x1006400c], 0x1002d1e0
jmp 0x1001c058
mov esi, 0x10064838
mov ecx, 0x1000a3e0
push esi
mov eax, esi
mov dword [ebp - 0xa8], ecx
cdq
mov dword [0x10064180], eax
xor eax, eax
push eax
push eax
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xa8]
push eax
push 1
push ecx
push esi
push 0x1002cf50
mov dword [0x10064184], edx
call dword [sym.imp.ADVAPI32.dll_RegisterTraceGuidsA]
jmp 0x100190ea
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_UnregisterTraceGuids]
movzx eax, word [esi + 0x2a]
xor ecx, ecx
mov dword [esi + 0x20], ecx
mov byte [esi + 0x28], cl
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
test ax, ax
je 0x100226d1
dec eax
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
lea eax, [eax*4 + 4]
push eax
push ecx
push dword [esi + 0x2c]
call sub.msvcrt.dll_memset
add esp, 0xc
xor ecx, ecx
mov dword [esi], ecx
mov dword [esi + 4], ecx
jmp 0x1001c03b