Function at 0x6870dfd0
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 [0x68719058], 8
jne 0x6870e0b0
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 0x6870e0e8
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 0x6870e080
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_SizeofResource]
sub esp, 8
cmp eax, 2
je 0x6870e130
test byte [0x68719058], 8
jne 0x6870e188
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 [0x68719058], 8
je 0x6870e059
mov dword [esp + 0xc], str.No_version_resource_found_n
mov dword [esp + 8], 0x6871c0b0
mov dword [esp + 4], 0x68719058
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x6870e059
mov eax, dword [ebp + 8]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], 0x6871bcd8
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x6871c0b0
mov dword [esp + 4], 0x68719058
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x6870dfe6
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
test ebx, ebx
jle 0x6870e118
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 0x6870e1b8
test byte [0x68719058], 8
je 0x6870e059
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Version_of_theme_file_is_unsupported:_0x_04x_n
mov dword [esp + 8], 0x6871c0b0
mov dword [esp + 4], 0x68719058
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x6870e059
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Version_resource_found__but_wrong_size:__ld_n
mov dword [esp + 8], 0x6871c0b0
mov dword [esp + 4], 0x68719058
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x6870e059
mov dword [esp + 8], str.COLORNAMES
mov dword [esp + 4], 1
mov dword [esp], esi
call ebx
sub esp, 0xc
test eax, eax
je 0x6870e2e8
mov dword [esp + 4], eax
mov dword [esp], esi
call edi
sub esp, 8
mov dword [ebp - 0x1c], 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 0x6870e337
mov dword [esp + 4], eax
mov dword [esp], esi
call edi
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x1c]
sub esp, 8
mov dword [ebp - 0x20], eax
test edx, edx
je 0x6870e268
cmp word [edi], 0
je 0x6870e475
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 0x6870e268
cmp word [edi], 0
je 0x6870e320
mov eax, edi
nop
add eax, 2
cmp word [eax], 0
jne 0x6870e250
sub eax, edi
add eax, 2
add edi, eax
cmp word [edi], 0
jne 0x6870e230
xor edi, edi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x6870e41e
mov eax, dword [ebp - 0x20]
cmp word [eax], 0
je 0x6870e2ce
mov ebx, eax
mov eax, dword [sym.imp.kernel32.dll_lstrcmpiW]
mov dword [ebp - 0x24], 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 0x6870e36d
cmp word [edi], 0
je 0x6870e330
mov eax, edi
lea esi, cs:[esi]
add eax, 2
cmp word [eax], 0
jne 0x6870e2b8
sub eax, edi
add eax, 2
add edi, eax
cmp word [edi], 0
jne 0x6870e290
test byte [0x68719058], 8
jne 0x6870e432
mov ebx, 0x80070490
jmp 0x6870e05e
test byte [0x68719058], 8
je 0x6870e059
mov dword [esp + 0xc], str.Color_names_resource_not_found_n
mov dword [esp + 8], 0x6871c0b0
mov dword [esp + 4], 0x68719058
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x6870e059
mov eax, 2
jmp 0x6870e25e
mov eax, 2
jmp 0x6870e2c6
test byte [0x68719058], 8
je 0x6870e059
mov dword [esp + 0xc], str.Size_names_resource_not_found_n
mov dword [esp + 8], 0x6871c0b0
mov dword [esp + 4], 0x68719058
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x6870e059
mov ebx, edi
mov edi, dword [ebp - 0x24]
test edi, edi
sete al
test al, al
jne 0x6870e2ce
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 edx, dword [ebp + 0x14]
sub esp, 0xc
mov dword [edx], eax
mov dword [eax + 4], esi
mov dword [esp + 0xc], 0
mov eax, dword [edx]
mov dword [ebp - 0x24], eax
add eax, 8
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 - 0x1c]
sub esp, 0x10
mov edx, dword [ebp - 0x20]
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 0x6870e073
mov ebx, dword [ebp - 0x20]
test ebx, ebx
sete al
test edi, edi
sete cl
or eax, ecx
jmp 0x6870e377
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], 0x6871c0b0
mov dword [esp + 4], 0x68719058
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x6870e2db
xor edi, edi
cmp dword [ebp + 0x10], 0
jne 0x6870e273
jmp 0x6870e2ce