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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x170
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1000a1108]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rdi, rcx
mov rbx, qword [0x1000a1d70]
mov r8d, 0xf1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor r15d, r15d
cmp rax, r15
jne 0x100026288
xor eax, eax
jmp 0x100026531
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
cmp rax, r15
jne 0x1000262a0
xor eax, eax
jmp 0x100026531
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
cmp rax, r15
jne 0x1000262b8
xor eax, eax
jmp 0x100026531
movzx r13d, word [rax + 6]
movzx ebx, word [rax + 4]
movzx ebp, word [rax + 2]
mov rcx, qword [rdi + 0x80]
cmp rcx, r15
je 0x1000262f0
call qword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
cmp eax, r15d
jne 0x100026318
mov rcx, qword [rdi + 0x80]
call qword [sym.imp.COMCTL32.dll_ImageList_Destroy]
mov qword [rdi + 0x80], r15
cmp ebp, r15d
je 0x100026318
cmp ebx, r15d
je 0x100026318
mov dword [rdi + 0xfc], ebp
mov dword [rdi + 0x100], ebx
lea eax, [rbp + 6]
mov dword [rdi + 0x104], eax
lea eax, [rbx + 6]
mov dword [rdi + 0x108], eax
cmp qword [rdi + 0x80], r15
jne 0x1000263c1
mov r8d, 2
mov rdx, qword [rsp + 0x1b8]
mov rcx, qword [0x1000a1d70]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
mov rcx, qword [0x1000a1d70]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
movzx ecx, word [rax + 0xe]
and byte [rdi + 0xf1], 0xdf
cmp cx, 0x20
sete al
and al, 1
shl al, 5
or byte [rdi + 0xf1], al
mov al, byte [rdi + 0xf1]
movzx r9d, word [rsi + 6]
and al, 0x20
neg al
sbb r8d, r8d
and r8d, 8
add r8d, 0x18
or r8d, 1
mov dword [rsp + 0x20], 1
mov edx, dword [rdi + 0x100]
mov ecx, dword [rdi + 0xfc]
call qword [sym.imp.COMCTL32.dll_ImageList_Create]
mov qword [rdi + 0x80], rax
cmp rax, r15
jne 0x1000263c1
xor eax, eax
jmp 0x100026531
mov rcx, qword [rdi + 0x80]
call qword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
mov r14d, eax
mov qword [rsp + 0x30], r15
test byte [rdi + 0xf1], 0x20
je 0x100026411
mov dword [rsp + 0x28], 0x2040
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x1b8]
mov rcx, qword [0x1000a1d70]
call qword [sym.imp.USER32.dll_LoadImageW]
mov rbx, rax
mov qword [rsp + 0x30], rax
jmp 0x10002642e
mov rdx, qword [rsp + 0x1b8]
mov rcx, qword [0x1000a1d70]
call qword [sym.imp.USER32.dll_LoadBitmapW]
mov rbx, rax
mov qword [rsp + 0x30], rax
cmp rbx, r15
jne 0x10002643a
xor eax, eax
jmp 0x100026531
mov r8d, dword [rdi + 0x10c]
mov rdx, rbx
mov rcx, qword [rdi + 0x80]
call qword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
cmp eax, 0xffffffff
jne 0x100026472
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteObject]
cmp eax, r15d
cmovne rbx, r15
mov qword [rsp + 0x30], rbx
xor eax, eax
jmp 0x100026531
mov r12d, r15d
mov rbp, r15
cmp r13, r15
jle 0x1000264a4
cmp word [rsi + rbp*2 + 8], r15w
je 0x100026499
movsxd rax, r12d
lea rdx, [rsi + rax*2 + 8]
lea rcx, [rdi + 0x88]
call fcn.100013558
inc r12d
inc rbp
cmp rbp, r13
jl 0x10002647d
mov rcx, qword [rdi + 0x80]
call qword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
mov esi, eax
cmp eax, dword [rdi + 0x90]
je 0x1000264d4
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteObject]
cmp eax, r15d
cmovne rbx, r15
mov qword [rsp + 0x30], rbx
xor eax, eax
jmp 0x100026531
mov dword [rsp + 0x40], VarUI4FromDisp
xor edx, edx
mov r8d, VarUI4FromDisp
lea rcx, [rsp + 0x44]
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp eax, r15d
je 0x100026517
cmp dword [rsp + 0x44], 6
jb 0x100026517
sub esi, r14d
mov r8d, esi
mov edx, r14d
mov rcx, rdi
call fcn.100026fb0
nop
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteObject]
cmp eax, r15d
cmovne rbx, r15
mov qword [rsp + 0x30], rbx
mov eax, 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.10007a3b0
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret