Function at 0x10016b30
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x130]
sub esp, 0x130
push 0xffffffffffffffff
push 0x1017cdc3
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x101e40b0]
xor eax, ebp
mov dword [ebp + 0x12c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov eax, dword [ebp + 0x138]
push 0x110
mov dword [ebp - 0x30], eax
lea eax, [ebp + 4]
push 0
push eax
mov dword [ebp], 0x114
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10016e48
cmp dword [ebp + 4], 6
jb 0x10016e48
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
lea edx, [edi + 0x6c]
lea ecx, [ebp - 0x24]
call fcn.10096e60
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 1
mov eax, 0x2aaaaaab
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x24]
imul ecx
lea ecx, [ebp - 0x18]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
push ecx
push eax
call fcn.100172a0
mov ecx, dword [ebp - 0x20]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x24]
xor ebx, ebx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10016c7d
mov edi, dword [ebp - 0x24]
xor esi, esi
nop
cmp dword [esi + edi + 0x14], 8
lea ecx, [esi + edi]
jb 0x10016c3c
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x18]
mov dword [eax + ebx*8], ecx
mov ecx, dword [ebp - 0x24]
add ecx, 0x18
add ecx, esi
cmp dword [ecx + 0x14], 8
jb 0x10016c52
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x18]
add esi, 0x30
mov dword [eax + ebx*8 + 4], ecx
mov eax, 0x2aaaaaab
mov ecx, dword [ebp - 0x20]
inc ebx
mov edi, dword [ebp - 0x24]
sub ecx, edi
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x10016c30
mov edi, dword [ebp - 0x2c]
lea eax, [edi + 0x88]
push eax
lea ecx, [ebp + 0x114]
call fcn.10005590
mov byte [ebp - 4], 2
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 4
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x10016cfd
push str.SHCreateItemFromParsingName
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10016cf6
cmp dword [ebp + 0x128], 8
lea edx, [ebp - 0x28]
push edx
push 0x101afe04
lea ecx, [ebp + 0x114]
cmovae ecx, dword [ebp + 0x114]
push 0
push ecx
call eax
test eax, eax
jns 0x10016cf6
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, 2
jmp 0x10016dbc
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [edi + 0xa0]
test edx, edx
je 0x10016db7
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
sub ecx, esi
sar ecx, 3
test ecx, ecx
je 0x10016d3a
mov eax, dword [edx]
push esi
push ecx
push edx
call dword [eax + 0x10]
mov eax, dword [edi + 0xa0]
push dword [edi + 0x84]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov edx, dword [edi + 0xa0]
cmp dword [edi + 0x30], 8
lea ecx, [edi + 0x1c]
jb 0x10016d45
mov ecx, dword [ecx]
mov eax, dword [edx]
push ecx
push edx
call dword [eax + 0x44]
mov eax, dword [edi + 0xa0]
push dword [edi + 0x38]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
cmp dword [edi + 0x50], 8
lea ecx, [edi + 0x3c]
mov edx, dword [edi + 0xa0]
jb 0x10016d6c
mov ecx, dword [ecx]
mov eax, dword [edx]
push ecx
push edx
call dword [eax + 0x3c]
cmp dword [edi + 0x68], 8
lea ecx, [edi + 0x54]
mov edx, dword [edi + 0xa0]
jb 0x10016d84
mov ecx, dword [ecx]
mov eax, dword [edx]
push ecx
push edx
call dword [eax + 0x58]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x10016d9f
mov ecx, dword [edi + 0xa0]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x30]
mov eax, dword [edi + 0xa0]
push dword [ebp - 0x30]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov esi, 2
test eax, eax
js 0x10016dbc
mov esi, 1
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x10016dcd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x114]
call fcn.10005660
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10016e35
mov eax, dword [ebp - 0x10]
sub eax, ecx
sar eax, 3
lea edx, [eax*8]
mov eax, ecx
cmp edx, 0x1000
jb 0x10016e16
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10016e16
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10177d58
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.100171c0
mov eax, esi
jmp 0x10016e4d
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x12c]
xor ecx, ebp
call fcn.10177d47
lea esp, [ebp + 0x130]
pop ebp
ret 4