Function at 0x1000c770
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x24
test byte [0x10014058], 8
jne 0x1000c850
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x1000c888
mov dword [esp + 8], str.PACKTHEM_VERSION
mov ebx, dword [sym.imp.kernel32.dll_FindResourceW]
mov dword [esp + 4], 1
mov dword [esp], eax
call ebx
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x1000c820
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_SizeofResource]
sub esp, 8
cmp eax, 2
je 0x1000c8d0
test byte [0x10014058], 8
jne 0x1000c928
mov ebx, 0x8007000b
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_FreeLibrary]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x10014058], 8
je 0x1000c7f9
mov dword [esp + 0xc], str.No_version_resource_found_n
mov dword [esp + 8], 0x100170b8
mov dword [esp + 4], 0x10014058
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x1000c7f9
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], 0x100170b8
mov dword [esp + 4], 0x10014058
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x1000c786
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
test ebx, ebx
jle 0x1000c8b8
mov eax, dword [ebp + 0x14]
movzx ebx, bx
or ebx, 0x80070000
mov dword [eax], 0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
lea esp, [ebp - 0xc]
mov eax, ebx
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], esi
call edi
movzx eax, word [eax]
sub esp, 8
cmp ax, 3
je 0x1000c958
test byte [0x10014058], 8
je 0x1000c7f9
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Version_of_theme_file_is_unsupported:_0x_04x_n
mov dword [esp + 8], 0x100170b8
mov dword [esp + 4], 0x10014058
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x1000c7f9
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Version_resource_found__but_wrong_size:__ld_n
mov dword [esp + 8], 0x100170b8
mov dword [esp + 4], 0x10014058
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x1000c7f9
mov dword [esp + 8], str.COLORNAMES
mov dword [esp + 4], 1
mov dword [esp], esi
call ebx
sub esp, 0xc
test eax, eax
je 0x1000ca88
mov dword [esp + 4], eax
mov dword [esp], esi
call edi
sub esp, 8
mov dword [ebp - 0x10], eax
mov dword [esp + 8], str.SIZENAMES
mov dword [esp + 4], 1
mov dword [esp], esi
call ebx
sub esp, 0xc
test eax, eax
je 0x1000cad7
mov dword [esp + 4], eax
mov dword [esp], esi
call edi
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
sub esp, 8
test edx, edx
je 0x1000ca08
cmp word [edi], 0
je 0x1000cbfd
mov ebx, dword [sym.imp.kernel32.dll_lstrcmpiW]
mov dword [esp + 4], edi
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
je 0x1000ca08
cmp word [edi], 0
je 0x1000cac0
mov eax, edi
nop
add eax, 2
cmp word [eax], 0
jne 0x1000c9f0
sub eax, edi
add eax, 2
add edi, eax
cmp word [edi], 0
jne 0x1000c9d0
xor edi, edi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1000cba6
mov eax, dword [ebp - 0x14]
cmp word [eax], 0
je 0x1000ca6e
mov ebx, eax
mov eax, dword [sym.imp.kernel32.dll_lstrcmpiW]
mov dword [ebp - 0x18], edi
mov edi, ebx
mov ebx, eax
lea esi, [esi]
mov dword [esp + 4], edi
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
je 0x1000cb0d
cmp word [edi], 0
je 0x1000cad0
mov eax, edi
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x1000ca58
sub eax, edi
add eax, 2
add edi, eax
cmp word [edi], 0
jne 0x1000ca30
test byte [0x10014058], 8
jne 0x1000cbba
mov ebx, 0x80070490
jmp 0x1000c7fe
test byte [0x10014058], 8
je 0x1000c7f9
mov dword [esp + 0xc], str.Color_names_resource_not_found_n
mov dword [esp + 8], 0x100170b8
mov dword [esp + 4], 0x10014058
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x1000c7f9
mov eax, 2
jmp 0x1000c9fe
mov eax, 2
jmp 0x1000ca66
test byte [0x10014058], 8
je 0x1000c7f9
mov dword [esp + 0xc], str.Size_names_resource_not_found_n
mov dword [esp + 8], 0x100170b8
mov dword [esp + 4], 0x10014058
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x1000c7f9
mov ebx, edi
mov edi, dword [ebp - 0x18]
test edi, edi
sete al
test al, al
jne 0x1000ca6e
mov dword [esp + 4], 0x22c
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov edx, dword [ebp + 0x14]
mov dword [eax + 4], esi
mov dword [edx], eax
add eax, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x104
mov eax, dword [ebp + 8]
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], ebx
mov eax, dword [ebp + 0x14]
xor ebx, ebx
mov eax, dword [eax]
mov dword [eax], 1
jmp 0x1000c813
mov ebx, dword [ebp - 0x14]
test ebx, ebx
sete al
test edi, edi
sete cl
or eax, ecx
jmp 0x1000cb17
mov eax, dword [ebp + 0x10]
call sym._wine_dbgstr_wn.constprop.0
mov ebx, eax
mov eax, dword [ebp + 0xc]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Requested_color_size___s__s__not_found_in_theme_n
mov dword [esp + 8], 0x100170b8
mov dword [esp + 4], 0x10014058
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x1000ca7b
xor edi, edi
cmp dword [ebp + 0x10], 0
jne 0x1000ca13
jmp 0x1000ca6e