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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002f1d0
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
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 eax, ecx
mov dword [ebp - 0x2a4], eax
mov edi, dword [eax + 0x24]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2b0], ecx
test edi, edi
jne 0x10029d75
mov ecx, eax
call fcn.10029610
mov dword [ebp - 0x2a8], eax
test eax, eax
je 0x1002a05b
push 0x118
lea eax, [ebp - 0x14c]
push edi
push eax
call fcn.10018520
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 0x10029b61
cmp dword [ebp - 0x14c], 6
ja 0x10029a8e
jne 0x10029b17
cmp dword [ebp - 0x148], 2
jb 0x10029b17
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.kernel32.dll
call edi
mov esi, eax
test esi, esi
je 0x10029b1d
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10029b1d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10029b1d
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 esi, eax
test esi, esi
je 0x10029b1d
lea eax, [ebp - 0x30]
push eax
lea eax, [esi + 6]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10029b1d
cmp word [esi + 2], ax
jbe 0x10029b1d
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
jmp 0x10029b1d
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
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 0x10029b67
push 0x118
lea eax, [ebp - 0x268]
push 0
push eax
call fcn.10018520
add esp, 0xc
mov dword [ebp - 0x26c], 0x11c
lea eax, [ebp - 0x26c]
push eax
call esi
jmp 0x10029b67
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp dword [ebp - 0x14c], 6
jb 0x10029b83
call fcn.100282a0
mov esi, eax
mov eax, 0x10
cmp esi, eax
cmovbe esi, eax
jmp 0x10029b88
mov esi, 0xd
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0
call fcn.1002c9d0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14c]
push 0x118
push 0
push eax
call fcn.10018520
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 0x10029cb6
cmp dword [ebp - 0x14c], 6
ja 0x10029bef
jne 0x10029c70
cmp dword [ebp - 0x148], 2
jb 0x10029c70
push str.kernel32.dll
call edi
mov edi, eax
test edi, edi
je 0x10029c70
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10029c70
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10029c70
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 edi, eax
test edi, edi
je 0x10029c70
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 6]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10029c70
cmp word [edi + 2], ax
jbe 0x10029c70
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x144], 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 edi, eax
test edi, edi
je 0x10029cb6
push 0x118
lea eax, [ebp - 0x268]
push 0
push eax
call fcn.10018520
add esp, 0xc
mov dword [ebp - 0x26c], 0x11c
lea eax, [ebp - 0x26c]
push eax
call edi
cmp dword [ebp - 0x14c], 5
ja 0x10029cca
jne 0x10029ce0
cmp dword [ebp - 0x148], 1
jb 0x10029ce0
push esi
push esi
push dword [ebp - 0x2a8]
lea ecx, [ebp - 0x34]
call fcn.1002c670
mov edi, eax
test edi, edi
jne 0x10029d37
cmp esi, 1
jl 0x10029d35
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, eax
mov dword [ebp - 0x2ac], edi
test edi, edi
je 0x10029d35
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je 0x10029d35
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x2a0], eax
test eax, eax
jne 0x10029dd0
push esi
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
xor edi, edi
mov eax, dword [ebp - 0x2a4]
mov dword [eax + 0x24], edi
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x10029d6d
mov eax, dword [esi]
test eax, eax
je 0x10029d5b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x10
push esi
call fcn.100168c9
add esp, 8
mov dword [ebp - 0x34], 0
test edi, edi
je 0x1002a05b
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x29c]
push eax
push 1
push esi
push dword [ebp - 0x2b0]
mov dword [ebp - 0x29c], 0x30
mov dword [ebp - 0x298], 0x8a
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test eax, eax
je 0x1002a05b
mov ecx, dword [ebp - 0x2a4]
add ecx, 0x14
mov edx, dword [ecx + 4]
cmp dword [ecx + 8], edx
je 0x10029e95
mov eax, dword [ebp - 0x28c]
mov dword [edx], eax
add dword [ecx + 4], 4
jmp 0x10029ea2
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, eax
test edi, edi
jne 0x10029dfb
push dword [ebp - 0x2a0]
call dword [sym.imp.GDI32.dll_DeleteDC]
push esi
push dword [ebp - 0x2ac]
jmp 0x10029d2f
push edi
push dword [ebp - 0x2a0]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x2b4], eax
test eax, eax
je 0x10029d35
push 0xffffff
push dword [ebp - 0x2a0]
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
push 2
push 0
push 0
push dword [ebp - 0x2a0]
call dword [sym.imp.GDI32.dll_ExtTextOutW]
push 3
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x2a8]
push 0
push 0
push dword [ebp - 0x2a0]
call dword [sym.imp.USER32.dll_DrawIconEx]
push dword [ebp - 0x2b4]
push dword [ebp - 0x2a0]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x2a0]
call dword [sym.imp.GDI32.dll_DeleteDC]
push esi
push dword [ebp - 0x2ac]
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x10029d37
lea eax, [ebp - 0x28c]
push eax
push edx
call fcn.10007b00
mov eax, dword [ebp - 0x2a4]
cmp byte [eax + 0x38], 0
je 0x10029ee1
mov dword [ebp - 0x270], 0xffffffff
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 0
cmp edi, dword [eax + 0x24]
je 0x1002a03b
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x1002a03b
push 0x118
lea eax, [ebp - 0x14c]
push 0
push eax
call fcn.10018520
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 0x1002a000
cmp dword [ebp - 0x14c], 6
ja 0x10029f32
jne 0x10029fb7
cmp dword [ebp - 0x148], 2
jb 0x10029fb7
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x10029fb7
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10029fb7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10029fb7
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 esi, eax
test esi, esi
je 0x10029fb7
lea eax, [ebp - 0x30]
push eax
lea ecx, [esi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10029fb7
cmp word [esi + 2], ax
jbe 0x10029fb7
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 dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10029ffd
push 0x118
lea eax, [ebp - 0x268]
push 0
push eax
call fcn.10018520
add esp, 0xc
mov dword [ebp - 0x26c], 0x11c
lea eax, [ebp - 0x26c]
push eax
call esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp - 0x14c], 6
jb 0x1002a025
mov dword [ebp - 0x270], edi
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 0
jmp 0x1002a03b
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x284], edi
mov dword [ebp - 0x280], edi
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x298], 0x88
push eax
push 1
push esi
push dword [ebp - 0x2b0]
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
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 8