Function at 0x10070220
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10086e62
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x100b1008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x284], edi
mov esi, ecx
mov dword [ebp - 0x288], esi
mov dword [ebp - 0x290], esi
xor eax, eax
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
mov dword [ebp - 4], 1
test edi, edi
jne 0x100702d4
movups xmm0, xmmword [ebp - 0x48]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
movups xmmword [esi], xmm0
mov word [ebp - 0x48], ax
movq xmm0, qword [ebp - 0x38]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x28c], 1
mov byte [ebp - 4], al
mov dword [ebp - 0x38], eax
jmp 0x10070526
push pe_nt_image_headers32
lea eax, [ebp - 0x160]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x164], 0x11c
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100703fe
cmp dword [ebp - 0x160], 6
ja 0x10070325
jne 0x100703b0
cmp dword [ebp - 0x15c], 2
jb 0x100703b0
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x100703aa
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x100703aa
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100703aa
movups xmm0, xmmword [0x10099e64]
push eax
movups xmmword [ebp - 0x30], xmm0
movups xmm0, xmmword [0x10099e74]
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x100703aa
lea eax, [ebp - 0x30]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100703aa
cmp word [edi + 2], ax
jbe 0x100703aa
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x158], eax
mov edi, dword [ebp - 0x284]
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x288], eax
test eax, eax
je 0x100703fe
push pe_nt_image_headers32
lea eax, [ebp - 0x27c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x280], 0x11c
lea eax, [ebp - 0x280]
push eax
call dword [ebp - 0x288]
cmp dword [ebp - 0x160], 6
push edi
push 0
jb 0x10070411
push 0x1000
jmp 0x1007042e
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x1007043e
push dword [ebp - 0x284]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x100704e3
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.10070550
mov dword [ebp - 0x288], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
cmp ecx, eax
je 0x10070488
call fcn.10004c20
mov eax, dword [ebp - 0x288]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x48], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
movq qword [ebp - 0x38], xmm0
mov word [eax], cx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x100704c8
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100704be
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100704be
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007a52a
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
push edi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [ebp - 0x48]
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
mov word [ebp - 0x48], ax
movq xmm0, qword [ebp - 0x38]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x28c], 1
mov byte [ebp - 4], al
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007a4e9
mov esp, ebp
pop ebp
ret