Function at 0x10011d2e
Capabilities:
Check os version

Disassembly:
push 0x164
mov eax, 0x1002d52a
call fcn.1002b28b
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.10002bb4
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.10007809
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 0x10011ddf
cmp dword [ebp - 0x150], 5
jne 0x10011ddf
cmp dword [ebp - 0x14c], 1
jne 0x10011ddf
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.100125cc
test al, al
je 0x10011ddf
mov bl, 1
jmp 0x10011f14
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.10007809
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 0x10011ec1
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 0x10011ebb
lfence
test eax, eax
je 0x10011eb9
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 0x10011e9c
push dword [ebp - 0x15c]
push dword [ebp - 0x164]
push esi
call fcn.10007809
add esp, 0xc
test eax, eax
je 0x10011eac
mov eax, dword [ebp - 0x168]
add esi, 2
sub eax, esi
sar eax, 1
push eax
push dword [ebp - 0x16c]
push esi
call fcn.10007809
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10011e6e
jmp 0x10011ebb
sub esi, dword [ebp - 0x170]
sar esi, 1
cmp esi, 0xffffffff
je 0x10011ebb
mov bl, 1
mov ecx, dword [ebp - 0x158]
mov eax, dword [ebp - 0x160]
cmp eax, 8
jb 0x10011f17
lea eax, [eax*2 + 2]
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x158], eax
mov byte [ebp - 4], 2
cmp eax, 0x1000
jb 0x10011f0b
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.10007809
mov eax, dword [ebp - 0x158]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x15c]
push eax
push ecx
call fcn.10007809
pop ecx
pop ecx
mov edi, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
cmp edi, 8
jb 0x10011f6e
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 0x10011f65
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.10007809
mov eax, dword [ebp - 0x15c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x158]
push eax
push ecx
call fcn.10007809
pop ecx
pop ecx
mov al, bl
call fcn.1002b235
ret 4