Function at 0x6e030586
Capabilities:
Check os version

Disassembly:
push 0x164
mov eax, 0x6e04d496
call fcn.6e04936c
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
xor ebx, ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.6e03264c
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
cmovae edx, dword [ebp - 0x28]
push edx
lea eax, [ecx + eax*2]
mov dword [ebp - 0x160], edx
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], ebx
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x160]
push ecx
push eax
mov dword [ebp - 0x160], ecx
call fcn.6e039537
mov edi, 0x114
lea eax, [ebp - 0x154]
push edi
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x20
mov dword [ebp - 0x154], edi
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.kernel32.dll_GetVersionExW]
test eax, eax
je 0x6e030643
cmp dword [ebp - 0x150], 5
jne 0x6e030643
cmp dword [ebp - 0x14c], 1
jne 0x6e030643
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.6e030e41
test al, al
je 0x6e030643
mov bl, 1
jmp 0x6e030781
xor eax, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.6e039537
mov edi, dword [ebp - 0x14]
pop ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x15c], ecx
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x158], ecx
test al, al
je 0x6e03072e
cmp dword [ebp - 0x15c], 8
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x18]
cmovae edx, ecx
cmp edi, 8
mov dword [ebp - 0x168], edx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x164], eax
cmovae ecx, dword [ebp - 0x28]
mov dword [ebp - 0x160], ecx
cmp eax, esi
ja 0x6e03071e
lfence
test eax, eax
je 0x6e030726
movzx edx, word [edx]
sub esi, eax
inc esi
mov dword [ebp - 0x170], edx
lea eax, [ecx + esi*2]
mov dword [ebp - 0x16c], eax
sub eax, ecx
sar eax, 1
push eax
push edx
push ecx
jmp 0x6e030704
push dword [ebp - 0x164]
push dword [ebp - 0x168]
push esi
call fcn.6e039537
add esp, 0xc
test eax, eax
je 0x6e030714
mov eax, dword [ebp - 0x16c]
add esi, 2
sub eax, esi
sar eax, 1
push eax
push dword [ebp - 0x170]
push esi
call fcn.6e039537
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x6e0306d6
jmp 0x6e030728
sub esi, dword [ebp - 0x160]
sar esi, 1
jmp 0x6e030721
or esi, 0xffffffff
cmp esi, 0xffffffff
je 0x6e030728
mov bl, 1
mov ecx, dword [ebp - 0x158]
mov eax, dword [ebp - 0x15c]
cmp eax, 8
jb 0x6e030784
lea eax, [eax*2 + 2]
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x15c], eax
mov byte [ebp - 4], 2
cmp eax, 0x1000
jb 0x6e030778
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.6e039537
mov eax, dword [ebp - 0x15c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x158]
push eax
push ecx
call fcn.6e039537
pop ecx
pop ecx
mov edi, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
cmp edi, 8
jb 0x6e0307db
mov ecx, dword [ebp - 0x28]
lea eax, [edi*2 + 2]
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x158], ecx
mov dword [ebp - 4], 3
cmp eax, 0x1000
jb 0x6e0307d2
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.6e039537
mov eax, dword [ebp - 0x15c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x158]
push eax
push ecx
call fcn.6e039537
pop ecx
pop ecx
mov al, bl
call fcn.6e049316
ret 4