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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002f1a0
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x1003c008]
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, ecx
mov eax, dword [edi + 0x20]
test eax, eax
jne 0x10029874
mov dl, 1
lea ecx, [ebp - 0x48]
call fcn.1002a7e0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x38], 0
je 0x10029820
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
push 2
cmovae eax, dword [ebp - 0x48]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x10029820
push 0x118
lea eax, [ebp - 0x160]
push 0
push eax
call fcn.10018520
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 0x100297d6
cmp dword [ebp - 0x160], 6
ja 0x100296d6
jne 0x10029773
cmp dword [ebp - 0x15c], 2
jb 0x10029773
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x284], eax
test eax, eax
je 0x10029773
push 0x10
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10029773
push eax
push dword [ebp - 0x284]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10029773
movups xmm0, xmmword [0x10036994]
push eax
movups xmmword [ebp - 0x30], xmm0
movups xmm0, xmmword [0x100369a4]
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x284], eax
test eax, eax
je 0x10029773
lea ecx, [ebp - 0x30]
add eax, 6
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10029773
mov eax, dword [ebp - 0x284]
cmp word [eax + 2], 0
jbe 0x10029773
movzx edx, word [eax + 0x32]
movzx ecx, word [eax + 0x30]
movzx eax, word [eax + 0x36]
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x158], eax
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 - 0x284], eax
test eax, eax
je 0x100297d6
push 0x118
lea eax, [ebp - 0x27c]
push 0
push eax
call fcn.10018520
add esp, 0xc
mov dword [ebp - 0x280], 0x11c
lea eax, [ebp - 0x280]
push eax
call dword [ebp - 0x284]
mov ecx, dword [ebp - 0x158]
test eax, eax
cmove ecx, dword [ebp - 0x274]
mov dword [ebp - 0x158], ecx
cmp dword [ebp - 0x160], 6
jae 0x100297ee
push 0x2000
push 0xd
push 0xd
push 1
push 0x6b
jmp 0x1002980f
call fcn.100282a0
push 0x2000
cmp eax, 0x10
ja 0x10029807
push 0x10
push 0x10
push 1
push 0x65
jmp 0x1002980f
push 0x20
push 0x20
push 1
push 0x64
push esi
call dword [sym.imp.USER32.dll_LoadImageW]
push esi
mov dword [edi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x1002985d
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10029853
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002988f
push edx
push ecx
call fcn.100168c9
add esp, 8
xor eax, eax
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x34], 7
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.10016207
mov esp, ebp
pop ebp
ret
call fcn.1001abba
int3