Function at 0x6b6d1710
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov eax, dword [ecx]
mov dword [ebp - 0x20], eax
mov edi, eax
mov eax, 0xffffffff
lock xadd dword [edi + 0x1c], eax
dec eax
mov dword [ebp - 0x28], eax
je 0x6b6d1750
mov eax, dword [ebp - 0x28]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x6b6d1766
mov dword [esp], eax
call dword [sym.imp.user32.dll_UnhookWindowsHookEx]
sub esp, 4
mov dword [esp], 0x6b6d7120
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ebx, dword [ebp - 0x20]
sub esp, 4
mov edx, dword [ebx + 0xa4]
mov eax, dword [ebx + 0xa8]
mov dword [edx + 4], eax
mov edx, dword [ebx + 0xa4]
mov dword [eax], edx
mov dword [esp], 0x6b6d7120
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
test byte [0x6b6d7138], 8
jne 0x6b6d19b0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x6b6d17c2
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov ebx, dword [ebp - 0x20]
mov esi, dword fs:[0x18]
lea eax, [ebx + 0x60]
mov dword [esp], eax
call sym._free_sinks
lea eax, [ebx + 0x68]
mov dword [esp], eax
call sym._free_sinks
lea eax, [ebx + 0x70]
mov dword [esp], eax
call sym._free_sinks
lea eax, [ebx + 0x78]
mov dword [esp], eax
call sym._free_sinks
lea eax, [ebx + 0x80]
mov dword [esp], eax
call sym._free_sinks
lea eax, [ebx + 0x88]
mov dword [esp], eax
call sym._free_sinks
lea eax, [ebx + 0x90]
mov dword [esp], eax
call sym._free_sinks
lea eax, [ebx + 0x98]
mov dword [esp], eax
call sym._free_sinks
mov edi, dword [ebx + 0x44]
mov eax, ebx
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
add eax, 0x44
mov dword [ebp - 0x24], eax
mov ecx, dword [edi]
cmp edi, eax
je 0x6b6d18a0
mov edx, edi
mov edi, ecx
lea esi, [esi]
nop
mov eax, dword [edx + 4]
mov dword [ebp - 0x1c], edx
mov dword [edi + 4], eax
mov ecx, dword [edx]
mov dword [eax], ecx
mov eax, dword [edx + 0x20]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov edx, edi
mov edi, dword [edi]
sub esp, 0xc
cmp edx, dword [ebp - 0x24]
jne 0x6b6d1850
mov eax, dword [ebp - 0x20]
mov esi, dword fs:[0x18]
mov edx, dword [eax + 0x4c]
add eax, 0x4c
mov dword [ebp - 0x1c], eax
mov edi, dword [edx]
cmp edx, eax
je 0x6b6d1928
mov dword [ebp - 0x24], esi
mov esi, edx
jmp 0x6b6d18e8
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], esi
mov esi, edi
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [edi]
sub esp, 0xc
cmp edi, dword [ebp - 0x1c]
je 0x6b6d1928
mov edi, eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov ecx, dword [esi]
mov dword [eax], ecx
test byte [0x6b6d7138], 1
je 0x6b6d18c0
mov dword [esp + 0xc], str.Left_Over_ITfDocumentMgr.__Should_we_do_something_with_it__n
mov dword [esp + 8], str.ThreadMgr_Destructor
mov dword [esp + 4], 0x6b6d7138
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_9
jmp 0x6b6d18c0
mov edi, dword [ebp - 0x20]
mov eax, dword [edi + 0x54]
add edi, 0x54
mov edx, edi
mov dword [ebp - 0x1c], edi
mov esi, dword [eax]
mov edi, dword fs:[0x18]
cmp eax, edx
je 0x6b6d1975
lea esi, [esi]
nop
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov edx, dword [eax]
mov dword [ecx], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, esi
mov esi, dword [esi]
sub esp, 0xc
cmp dword [ebp - 0x1c], eax
jne 0x6b6d1948
mov edi, dword [ebp - 0x20]
mov eax, dword [edi + 0x20]
mov dword [esp], eax
call sym._CompartmentMgr_Destructor
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
jmp 0x6b6d173b
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], str.destroying__p_n
mov dword [esp + 8], str.ThreadMgr_Destructor
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x6b6d7138
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_9
jmp 0x6b6d17ad