Function at 0x6f50a920
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
mov eax, ecx
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x48
mov esi, dword [ecx + 8]
mov edx, dword [eax + 0x14]
mov edi, dword [ecx]
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x20], esi
mov esi, dword [eax + 0x10]
mov eax, dword [eax + 0x18]
mov ecx, dword [ecx + 0xc]
mov dword [ebp - 0x1c], eax
test byte [0x6f50d048], 8
jne 0x6f50ab00
mov eax, dword [edi + 8]
mov dword [esp], eax
call sym._chm_dup
mov esi, eax
test eax, eax
je 0x6f50abba
cmp word [edi + 0xc], 0
lea edx, [edi + 0xc]
je 0x6f50abb0
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x6f50a988
sub eax, edx
sar eax, 1
add eax, 2
cmp word [ebx], 0
je 0x6f50aba0
mov edx, ebx
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x6f50a9a8
sub edx, ebx
sar edx, 1
add eax, edx
mov dword [esp + 4], 0
add eax, eax
mov dword [esp + 8], eax
mov ecx, dword fs:[0x18]
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, eax
sub esp, 0xc
xor eax, eax
lea esi, [esi]
movzx ecx, word [edi + eax + 0xc]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x6f50a9e8
movzx ecx, word [ebx]
cmp cx, 0x2f
je 0x6f50aab0
cmp cx, 0x5c
je 0x6f50aab0
cmp word [edx], 0
mov eax, edx
je 0x6f50aa43
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x6f50aa20
add eax, 2
add ebx, 2
mov word [eax - 2], cx
test cx, cx
je 0x6f50aa52
lea esi, [esi]
nop
movzx ecx, word [ebx]
add eax, 2
add ebx, 2
mov word [eax - 2], cx
test cx, cx
jne 0x6f50aa40
movzx ecx, word [edx]
mov eax, edx
test cx, cx
je 0x6f50aa7a
lea esi, [esi]
cmp cx, 0x5c
jne 0x6f50aa6e
mov ecx, 0x2f
mov word [eax], cx
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x6f50aa60
cmp word [eax - 2], 0x2f
je 0x6f50aa87
mov dword [eax], 0x2f
test byte [0x6f50d048], 8
jne 0x6f50ab60
mov ecx, dword [ebp - 0x1c]
mov eax, esi
call sym._ITSS_create_chm_storage
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x1c
cmp word [edx], 0
mov eax, edx
je 0x6f50aa43
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x6f50aac0
sub eax, 2
cmp edx, eax
jbe 0x6f50aae9
jmp 0x6f50aa18
sub eax, 2
xor edi, edi
mov word [eax + 2], di
cmp edx, eax
ja 0x6f50aa10
cmp word [eax], 0x2f
je 0x6f50aad8
cmp word [edx], 0
mov eax, edx
jne 0x6f50aa18
jmp 0x6f50aa43
mov eax, ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ecx
call sym._wine_dbgstr_wn.constprop.0_3
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
mov dword [esp + 0x20], esi
mov esi, dword [ebp - 0x20]
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], edx
mov edx, dword [ebp - 0x28]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str._p__s__p__lu__p__lu__p_n
mov dword [esp + 8], str.ITSS_IStorageImpl_OpenStorage
mov dword [esp + 4], 0x6f50d048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x6f50a95d
mov eax, edx
mov dword [ebp - 0x20], edx
call sym._wine_dbgstr_wn.constprop.0_3
mov dword [esp + 0xc], str.Resolving__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.ITSS_IStorageImpl_OpenStorage
mov dword [esp + 4], 0x6f50d048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
mov edx, dword [ebp - 0x20]
jmp 0x6f50aa94
xor edx, edx
jmp 0x6f50a9b5
mov eax, 2
jmp 0x6f50a998
mov eax, 0x80004005
jmp 0x6f50aa9e