Function at 0x70d8d4c0
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
test byte [0x70d98058], 8
jne 0x70d8d5a8
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 0x70d8d5e0
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 0x70d8d570
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_SizeofResource]
sub esp, 8
cmp eax, 2
je 0x70d8d610
test byte [0x70d98058], 8
jne 0x70d8d650
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 [0x70d98058], 8
je 0x70d8d549
mov dword [esp + 0xc], str.No_version_resource_found_n
mov dword [esp + 8], 0x70d9b110
mov esi, 0x8007000b
mov dword [esp + 4], 0x70d98058
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x70d8d54e
mov eax, dword [ebp + 8]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], 0x70d9ad38
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x70d9b110
mov dword [esp + 4], 0x70d98058
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x70d8d4d6
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 0x70d8d688
test byte [0x70d98058], 8
je 0x70d8d549
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Version_of_theme_file_is_unsupported:_0x_04x_n
jmp 0x70d8d65c
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Version_resource_found__but_wrong_size:__ld_n
mov dword [esp + 8], 0x70d9b110
mov esi, 0x8007000b
mov dword [esp + 4], 0x70d98058
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x70d8d54e
mov dword [esp + 8], str.COLORNAMES
mov dword [esp + 4], 1
mov dword [esp], ebx
call esi
sub esp, 0xc
test eax, eax
je 0x70d8d7c0
mov dword [esp + 4], eax
mov dword [esp], ebx
call edi
sub esp, 8
mov dword [ebp - 0x1c], 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 0x70d8d8b3
mov dword [esp + 4], eax
mov dword [esp], ebx
call edi
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
sub esp, 8
test ecx, ecx
je 0x70d8d7fa
mov eax, dword [ebp - 0x1c]
cmp word [eax], 0
je 0x70d8d746
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 0x70d8d7fd
cmp word [edi], 0
je 0x70d8d7f0
mov eax, edi
nop
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x70d8d730
sub eax, edi
add eax, 2
add edi, eax
cmp word [edi], 0
jne 0x70d8d708
mov eax, dword [ebp + 0x10]
xor edi, edi
test eax, eax
je 0x70d8d7a6
mov eax, dword [ebp - 0x20]
mov esi, dword [sym.imp.kernel32.dll_lstrcmpiW]
cmp word [eax], 0
je 0x70d8d7a6
mov dword [ebp - 0x24], edi
mov edi, eax
nop
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 0x70d8d8cd
cmp word [edi], 0
je 0x70d8d7e0
mov eax, edi
mov esi, esi
lea edi, [edi]
add eax, 2
cmp word [eax], 0
jne 0x70d8d790
sub eax, edi
add eax, 2
add edi, eax
cmp word [edi], 0
jne 0x70d8d768
test byte [0x70d98058], 8
jne 0x70d8d8d7
mov esi, 0x80070490
jmp 0x70d8d54e
test byte [0x70d98058], 8
je 0x70d8d549
mov dword [esp + 0xc], str.Color_names_resource_not_found_n
jmp 0x70d8d581
mov eax, 2
jmp 0x70d8d79e
mov eax, 2
jmp 0x70d8d73e
mov edi, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x10]
test edx, edx
jne 0x70d8d74f
mov ecx, dword [ebp - 0x20]
test edi, edi
je 0x70d8d7a6
test ecx, ecx
je 0x70d8d7a6
mov dword [esp + 8], 0x22c
xor esi, esi
mov dword [esp + 4], 8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x24], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp + 0x14]
mov dword [eax + 4], ebx
sub esp, 0xc
mov dword [edx], 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 edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
sub esp, 0x10
mov eax, dword [eax]
mov dword [eax + 0x210], edx
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x20]
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], ecx
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [eax], 1
jmp 0x70d8d563
test byte [0x70d98058], 8
je 0x70d8d549
mov dword [esp + 0xc], str.Size_names_resource_not_found_n
jmp 0x70d8d581
mov ecx, edi
mov edi, dword [ebp - 0x24]
jmp 0x70d8d80b
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], 0x70d9b110
mov dword [esp + 4], 0x70d98058
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x70d8d7b3