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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x10040014]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10041964], 0
push esi
push edi
je 0x10006fb6
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10016ee0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.10003d60
push 0x118
lea eax, [ebp - 0x14c]
push 0
push eax
call fcn.10018a60
add esp, 0xc
mov dword [ebp - 0x150], 0x11c
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100070d5
cmp dword [ebp - 0x14c], 6
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
ja 0x10007012
jne 0x10007093
cmp dword [ebp - 0x148], 2
jb 0x10007093
push str.kernel32.dll
call edi
mov esi, eax
test esi, esi
je 0x10007093
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10007093
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10007093
movups xmm0, xmmword [0x10038db4]
push eax
movups xmmword [ebp - 0x30], xmm0
movups xmm0, xmmword [0x10038dc4]
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10007093
lea eax, [ebp - 0x30]
push eax
lea ecx, [esi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10007093
cmp word [esi + 2], ax
jbe 0x10007093
movzx edx, word [esi + 0x32]
movzx ecx, word [esi + 0x30]
movzx eax, word [esi + 0x36]
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x144], eax
push str.ntdll.dll
call edi
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x100070d5
push 0x118
lea eax, [ebp - 0x26c]
push 0
push eax
call fcn.10018a60
add esp, 0xc
mov dword [ebp - 0x270], 0x11c
lea eax, [ebp - 0x270]
push eax
call esi
cmp dword [ebp - 0x14c], 6
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
jae 0x10007195
push str.Kernel32.dll
call ecx
mov esi, eax
push str.LoadLibraryA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10007127
test esi, esi
je 0x100071b5
push esi
call edi
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10016ee0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov dword [ebp - 0x274], eax
call fcn.10016643
test eax, eax
je 0x1000713a
xor al, al
jmp 0x1000717a
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.100168fa
test eax, eax
je 0x1000714e
xor al, al
jmp 0x1000717a
push 0
push 0
push 0x1004195c
push 0x10007250
lea eax, [ebp - 0x274]
push eax
call fcn.100161c9
test eax, eax
je 0x10007170
xor al, al
jmp 0x1000717a
call fcn.10016694
test eax, eax
sete al
mov byte [0x10041964], al
test esi, esi
je 0x1000718b
push esi
call edi
mov al, byte [0x10041964]
test al, al
je 0x100071b5
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.ntdll.dll
call ecx
mov esi, eax
push str.LdrLoadDll
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x100071ca
test esi, esi
je 0x100071b5
push esi
call edi
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10016ee0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov dword [ebp - 0x274], eax
call fcn.10016643
test eax, eax
je 0x100071dd
xor al, al
jmp 0x1000721d
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.100168fa
test eax, eax
je 0x100071f1
xor al, al
jmp 0x1000721d
push 0
push 0
push 0x10041960
push 0x10007320
lea eax, [ebp - 0x274]
push eax
call fcn.100161c9
test eax, eax
je 0x10007213
xor al, al
jmp 0x1000721d
call fcn.10016694
test eax, eax
sete al
mov byte [ebp - 0x275], al
mov byte [0x10041964], al
test esi, esi
je 0x10007235
push esi
call edi
mov al, byte [ebp - 0x275]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10016ee0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret