Function at 0x6b6c6220
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, 0x48
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov dword [ebp - 0x20], eax
lea eax, [ebx - 0x14]
mov dword [ebp - 0x1c], eax
test byte [0x6b6d7038], 8
jne 0x6b6c6380
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x6b6c63bd
mov dword [esp + 8], 8
mov edx, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [esp + 4], 0
mov edi, dword fs:[0x18]
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x24], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edx
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x6b6c64a6
mov dword [esp + 8], 8
mov edx, dword [ebp - 0x24]
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edx
mov dword [ebp - 0x24], eax
sub esp, 0xc
test eax, eax
je 0x6b6c647e
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi], edi
and edi, 6
mov dword [esi + 4], eax
mov dword [esp + 4], esi
mov dword [esp], 0x50
call sym._generate_Cookie
mov esi, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [ecx + 0xc]
mov edx, dword [ebp - 0x28]
sub esp, 8
cmp edi, 6
mov esi, eax
je 0x6b6c6400
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x1c], edx
mov edi, dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x30]
sub esp, 0xc
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x30], 0
sub esp, 4
mov dword [esp], eax
call sym._remove_Cookie
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
sub esp, 0xc
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], 0x6b6d994b
mov dword [esp + 8], str.TextStoreACPSink_OnLockGranted
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0x6b6d7038
mov dword [esp + 0x10], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
mov eax, dword [ebx + 0x30]
test eax, eax
jne 0x6b6c625a
xor esi, esi
test byte [0x6b6d7038], 1
je 0x6b6c636e
mov dword [esp + 0xc], str.OnLockGranted_called_for_something_other_than_an_EditSession_n
mov dword [esp + 8], str.TextStoreACPSink_OnLockGranted
mov dword [esp + 4], 0x6b6d7038
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_2
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov eax, dword [ebp - 0x1c]
mov dword [edx], 2
mov dword [edx + 4], eax
mov dword [esp + 4], edx
mov dword [esp], 0x50
call sym._generate_Cookie
mov edi, dword [ebx + 0x4c]
lea ecx, [ebx + 0x4c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [edi + 8]
cmp edi, ecx
je 0x6b6c646b
mov dword [ebp - 0x2c], esi
mov esi, edi
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x28]
lea esi, [esi]
mov ecx, dword [eax]
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [ecx + 0xc]
mov esi, dword [esi]
sub esp, 0x10
mov eax, dword [esi + 8]
cmp esi, dword [ebp - 0x24]
jne 0x6b6c6440
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sym._remove_Cookie
mov dword [ebp - 0x24], eax
jmp 0x6b6c6304
mov dword [esp + 8], esi
mov esi, 0x8007000e
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x6b6c636e
mov esi, 0x8007000e
jmp 0x6b6c636e