Function at 0x1000bb20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x24
test byte [0x100150bc], 8
jne 0x1000bc08
mov eax, dword [ebp + 8]
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x1000bc40
mov dword [esp + 8], str.PACKTHEM_VERSION
mov esi, dword [sym.imp.kernel32.dll_FindResourceW]
mov dword [esp + 4], 1
mov dword [esp], eax
call esi
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x1000bbd0
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_SizeofResource]
sub esp, 8
cmp eax, 2
je 0x1000bc70
test byte [0x100150bc], 8
jne 0x1000bcb0
mov esi, 0x8007000b
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_FreeLibrary]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x100150bc], 8
je 0x1000bba9
mov dword [esp + 0xc], str.No_version_resource_found_n
mov dword [esp + 8], str.MSSTYLES_OpenThemeFile
mov esi, 0x8007000b
mov dword [esp + 4], 0x100150bc
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x1000bbae
mov eax, dword [ebp + 8]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Opening__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.MSSTYLES_OpenThemeFile
mov dword [esp + 4], 0x100150bc
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x1000bb36
mov eax, dword fs:[0x18]
mov esi, dword [eax + 0x34]
movzx eax, si
or eax, 0x80070000
test esi, esi
cmovg esi, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], edi
mov edi, dword [sym.imp.kernel32.dll_LoadResource]
mov dword [esp], ebx
call edi
movzx eax, word [eax]
sub esp, 8
cmp ax, 3
je 0x1000bce8
test byte [0x100150bc], 8
je 0x1000bba9
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Version_of_theme_file_is_unsupported:_0x_04x_n
jmp 0x1000bcbc
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Version_resource_found__but_wrong_size:__ld_n
mov dword [esp + 8], str.MSSTYLES_OpenThemeFile
mov esi, 0x8007000b
mov dword [esp + 4], 0x100150bc
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x1000bbae
mov dword [esp + 8], str.COLORNAMES
mov dword [esp + 4], 1
mov dword [esp], ebx
call esi
sub esp, 0xc
test eax, eax
je 0x1000be20
mov dword [esp + 4], eax
mov dword [esp], ebx
call edi
sub esp, 8
mov dword [ebp - 0x10], eax
mov dword [esp + 8], str.SIZENAMES
mov dword [esp + 4], 1
mov dword [esp], ebx
call esi
sub esp, 0xc
test eax, eax
je 0x1000befa
mov dword [esp + 4], eax
mov dword [esp], ebx
call edi
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
sub esp, 8
test ecx, ecx
je 0x1000be5a
mov eax, dword [ebp - 0x10]
cmp word [eax], 0
je 0x1000bda6
mov esi, dword [sym.imp.kernel32.dll_lstrcmpiW]
mov edi, eax
lea esi, [esi]
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], edi
mov dword [esp], eax
call esi
sub esp, 8
test eax, eax
je 0x1000be5d
cmp word [edi], 0
je 0x1000be50
mov eax, edi
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x1000bd90
sub eax, edi
add eax, 2
add edi, eax
cmp word [edi], 0
jne 0x1000bd68
mov eax, dword [ebp + 0x10]
xor edi, edi
test eax, eax
je 0x1000be06
mov eax, dword [ebp - 0x14]
mov edx, dword [sym.imp.kernel32.dll_lstrcmpiW]
cmp word [eax], 0
je 0x1000be06
mov dword [ebp - 0x18], edi
mov esi, edx
mov edi, eax
lea esi, [esi]
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], edi
mov dword [esp], eax
call esi
sub esp, 8
test eax, eax
je 0x1000bf14
cmp word [edi], 0
je 0x1000be40
mov eax, edi
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x1000bdf0
sub eax, edi
add eax, 2
add edi, eax
cmp word [edi], 0
jne 0x1000bdc8
test byte [0x100150bc], 8
jne 0x1000bf1e
mov esi, 0x80070490
jmp 0x1000bbae
test byte [0x100150bc], 8
je 0x1000bba9
mov dword [esp + 0xc], str.Color_names_resource_not_found_n
jmp 0x1000bbe1
mov eax, 2
jmp 0x1000bdfe
mov eax, 2
jmp 0x1000bd9e
mov edi, dword [ebp - 0x10]
mov edx, dword [ebp + 0x10]
test edx, edx
jne 0x1000bdaf
mov esi, dword [ebp - 0x14]
test edi, edi
je 0x1000be06
test esi, esi
je 0x1000be06
mov dword [esp + 4], 0x22c
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov ecx, dword [ebp + 0x14]
mov dword [eax + 4], ebx
mov dword [ecx], eax
add eax, 8
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x104
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFullPathNameW]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
sub esp, 0x10
mov eax, dword [eax]
mov dword [eax + 0x210], ecx
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [eax + 0x214], edx
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [eax + 0x218], edi
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [eax + 0x21c], esi
mov eax, dword [ebp + 0x14]
xor esi, esi
mov eax, dword [eax]
mov dword [eax], 1
jmp 0x1000bbc3
test byte [0x100150bc], 8
je 0x1000bba9
mov dword [esp + 0xc], str.Size_names_resource_not_found_n
jmp 0x1000bbe1
mov esi, edi
mov edi, dword [ebp - 0x18]
jmp 0x1000be6b
mov eax, dword [ebp + 0x10]
call sym._wine_dbgstr_wn.constprop.0
mov esi, eax
mov eax, dword [ebp + 0xc]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Requested_color_size___s__s__not_found_in_theme_n
mov dword [esp + 8], str.MSSTYLES_OpenThemeFile
mov dword [esp + 4], 0x100150bc
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x1000be13