Function at 0x70d8c210
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 [0x70d950bc], 8
jne 0x70d8c2f8
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 0x70d8c330
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 0x70d8c2c0
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_SizeofResource]
sub esp, 8
cmp eax, 2
je 0x70d8c360
test byte [0x70d950bc], 8
jne 0x70d8c3a0
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 [0x70d950bc], 8
je 0x70d8c299
mov dword [esp + 0xc], str.No_version_resource_found_n
mov dword [esp + 8], str.MSSTYLES_OpenThemeFile
mov esi, 0x8007000b
mov dword [esp + 4], 0x70d950bc
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x70d8c29e
mov eax, dword [ebp + 8]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], 0x70d97758
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.MSSTYLES_OpenThemeFile
mov dword [esp + 4], 0x70d950bc
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x70d8c226
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 0x70d8c3d8
test byte [0x70d950bc], 8
je 0x70d8c299
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Version_of_theme_file_is_unsupported:_0x_04x_n
jmp 0x70d8c3ac
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], 0x70d950bc
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x70d8c29e
mov dword [esp + 8], str.COLORNAMES
mov dword [esp + 4], 1
mov dword [esp], ebx
call esi
sub esp, 0xc
test eax, eax
je 0x70d8c510
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 0x70d8c5fd
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 0x70d8c54a
mov eax, dword [ebp - 0x1c]
cmp word [eax], 0
je 0x70d8c496
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 0x70d8c54d
cmp word [edi], 0
je 0x70d8c540
mov eax, edi
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x70d8c480
sub eax, edi
add eax, 2
add edi, eax
cmp word [edi], 0
jne 0x70d8c458
mov eax, dword [ebp + 0x10]
xor edi, edi
test eax, eax
je 0x70d8c4f6
mov eax, dword [ebp - 0x20]
mov edx, dword [sym.imp.kernel32.dll_lstrcmpiW]
cmp word [eax], 0
je 0x70d8c4f6
mov dword [ebp - 0x24], 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 0x70d8c617
cmp word [edi], 0
je 0x70d8c530
mov eax, edi
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x70d8c4e0
sub eax, edi
add eax, 2
add edi, eax
cmp word [edi], 0
jne 0x70d8c4b8
test byte [0x70d950bc], 8
jne 0x70d8c621
mov esi, 0x80070490
jmp 0x70d8c29e
test byte [0x70d950bc], 8
je 0x70d8c299
mov dword [esp + 0xc], str.Color_names_resource_not_found_n
jmp 0x70d8c2d1
mov eax, 2
jmp 0x70d8c4ee
mov eax, 2
jmp 0x70d8c48e
mov edi, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x10]
test edx, edx
jne 0x70d8c49f
mov esi, dword [ebp - 0x20]
test edi, edi
je 0x70d8c4f6
test esi, esi
je 0x70d8c4f6
mov dword [esp + 8], 0x22c
mov dword [esp + 4], 8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp + 0x14]
mov dword [eax + 4], ebx
sub esp, 0xc
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 - 0x1c]
mov edx, dword [ebp - 0x20]
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 0x70d8c2b3
test byte [0x70d950bc], 8
je 0x70d8c299
mov dword [esp + 0xc], str.Size_names_resource_not_found_n
jmp 0x70d8c2d1
mov esi, edi
mov edi, dword [ebp - 0x24]
jmp 0x70d8c55b
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], 0x70d950bc
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x70d8c503