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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10045e52
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x290
mov eax, dword [0x10059008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x294], edi
mov esi, ecx
mov dword [ebp - 0x298], esi
mov dword [ebp - 0x2a0], esi
xor eax, eax
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
mov dword [ebp - 4], 1
test edi, edi
jne 0x10030558
movups xmm0, xmmword [ebp - 0x4c]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
movups xmmword [esi], xmm0
mov word [ebp - 0x4c], ax
movq xmm0, qword [ebp - 0x3c]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x29c], 1
mov byte [ebp - 4], al
mov dword [ebp - 0x3c], eax
jmp 0x100307aa
push pe_nt_image_headers32
lea eax, [ebp - 0x16c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x170], 0x11c
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10030682
cmp dword [ebp - 0x16c], 6
ja 0x100305a9
jne 0x10030634
cmp dword [ebp - 0x168], 2
jb 0x10030634
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x1003062e
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1003062e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1003062e
movups xmm0, xmmword [0x1004ca00]
push eax
movups xmmword [ebp - 0x34], xmm0
movups xmm0, xmmword [0x1004ca10]
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x1003062e
lea eax, [ebp - 0x34]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1003062e
cmp word [edi + 2], ax
jbe 0x1003062e
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [ebp - 0x16c], edx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x164], eax
mov edi, dword [ebp - 0x294]
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 - 0x298], eax
test eax, eax
je 0x10030682
push pe_nt_image_headers32
lea eax, [ebp - 0x28c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x290], 0x11c
lea eax, [ebp - 0x290]
push eax
call dword [ebp - 0x298]
cmp dword [ebp - 0x16c], 6
push edi
push 0
jb 0x10030695
push 0x1000
jmp 0x100306b2
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x100306c2
push dword [ebp - 0x294]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x10030767
mov edx, edi
lea ecx, [ebp - 0x2c]
call fcn.100307e0
mov dword [ebp - 0x298], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
cmp ecx, eax
je 0x1003070c
call fcn.100031f0
mov eax, dword [ebp - 0x298]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x4c], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
movq qword [ebp - 0x3c], xmm0
mov word [eax], cx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x1003074c
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10030742
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10030742
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1003ee00
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
push edi
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [ebp - 0x4c]
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
mov word [ebp - 0x4c], ax
movq xmm0, qword [ebp - 0x3c]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x29c], 1
mov byte [ebp - 4], al
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1003ea51
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret