Function at 0x6e031716
Capabilities:
Check os version

Disassembly:
push 0x164
mov eax, 0x6e04f128
call fcn.6e04acac
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.6e0337b7
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 - 4], ebx
push eax
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x160]
push ecx
push eax
call fcn.6e01daf9
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 0x6e0317c7
cmp dword [ebp - 0x150], 5
jne 0x6e0317c7
cmp dword [ebp - 0x14c], 1
jne 0x6e0317c7
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.6e031fb4
test al, al
je 0x6e0317c7
mov bl, 1
jmp 0x6e0318fc
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.6e01daf9
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x160], esi
pop ecx
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x158], ecx
test al, al
je 0x6e0318a9
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x40]
cmp esi, 8
mov dword [ebp - 0x15c], eax
mov esi, dword [ebp - 0x18]
cmovae edx, ecx
cmp edi, 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x164], edx
cmovae ecx, dword [ebp - 0x28]
mov dword [ebp - 0x170], ecx
cmp eax, esi
ja 0x6e0318a3
lfence
test eax, eax
je 0x6e0318a1
movzx edx, word [edx]
sub esi, eax
inc esi
mov dword [ebp - 0x16c], edx
lea eax, [ecx + esi*2]
mov dword [ebp - 0x168], eax
sub eax, ecx
sar eax, 1
push eax
push edx
push ecx
jmp 0x6e031884
push dword [ebp - 0x15c]
push dword [ebp - 0x164]
push esi
call fcn.6e01daf9
add esp, 0xc
test eax, eax
je 0x6e031894
mov eax, dword [ebp - 0x168]
add esi, 2
sub eax, esi
sar eax, 1
push eax
push dword [ebp - 0x16c]
push esi
call fcn.6e01daf9
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x6e031856
jmp 0x6e0318a3
sub esi, dword [ebp - 0x170]
sar esi, 1
cmp esi, 0xffffffff
je 0x6e0318a3
mov bl, 1
mov ecx, dword [ebp - 0x158]
mov eax, dword [ebp - 0x160]
cmp eax, 8
jb 0x6e0318ff
lea eax, [eax*2 + 2]
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x158], eax
mov byte [ebp - 4], 2
cmp eax, 0x1000
jb 0x6e0318f3
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.6e01daf9
mov eax, dword [ebp - 0x158]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x15c]
push eax
push ecx
call fcn.6e01daf9
pop ecx
pop ecx
mov edi, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
cmp edi, 8
jb 0x6e031956
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 0x6e03194d
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.6e01daf9
mov eax, dword [ebp - 0x15c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x158]
push eax
push ecx
call fcn.6e01daf9
pop ecx
pop ecx
mov al, bl
call fcn.6e04ac56
ret 4