Function at 0x6af81d70
Capabilities:
Check for peb beingdebugged flag
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]
mov ebx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
test byte [0x6af8a018], 8
mov dword [ebp - 0x2c], eax
mov edi, dword [eax + 8]
mov dword [ebp - 0x24], ecx
jne 0x6af82010
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x6af820d4
test ebx, ebx
je 0x6af820d4
mov dword [eax], 0
cmp word [ebx], 0
je 0x6af82055
mov eax, ebx
mov esi, esi
lea edi, [edi]
add eax, 2
cmp word [eax], 0
jne 0x6af81dd0
sub eax, ebx
mov esi, eax
add eax, 2
mov dword [esp + 8], eax
sar esi, 1
xor eax, eax
mov dword [esp + 4], eax
inc esi
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 dword [ebp - 0x20], eax
sub esp, 0xc
test eax, eax
je 0x6af82080
cmp esi, 1
ja 0x6af81e30
jmp 0x6af81ff7
dec esi
add eax, 2
mov word [eax - 2], dx
add ebx, 2
cmp esi, 1
je 0x6af81e37
movzx edx, word [ebx]
test edx, edx
jne 0x6af81e20
mov word [eax], 0
mov eax, dword [ebp - 0x20]
lea ebx, [edi + 0xc]
cmp word [eax], 0
jne 0x6af81e51
cmp dword [edi + 0xc], ebx
je 0x6af81f1d
mov esi, dword [ebp - 0x20]
mov eax, 0x2e
mov dword [esp + 4], eax
mov eax, dword [sym.imp.ucrtbase.dll_wcschr]
mov dword [esp], esi
mov dword [ebp - 0x28], eax
call eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x6af820cc
mov eax, dword [ebp - 0x1c]
cmp word [eax + 2], 0
mov word [eax], 0
je 0x6af81ee2
test byte [0x6af8a018], 8
jne 0x6af81fc0
mov edi, dword [edi + 0xc]
cmp edi, ebx
jne 0x6af81eaa
jmp 0x6af81f80
mov edi, dword [edi]
cmp edi, ebx
je 0x6af81f80
mov dword [esp + 4], esi
mov eax, dword [edi + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
jne 0x6af81ea0
mov esi, dword [ebp - 0x1c]
lea ebx, [edi + 0xc]
mov edx, 0x2e
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x28]
add esi, 2
mov dword [esp], esi
call eax
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x6af81e75
test byte [0x6af8a018], 8
jne 0x6af82095
mov edi, dword [edi + 0xc]
cmp edi, ebx
jne 0x6af81f06
jmp 0x6af81f80
mov edi, dword [edi]
cmp edi, ebx
je 0x6af81f80
mov dword [esp + 4], esi
mov eax, dword [edi + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
jne 0x6af81f00
mov eax, dword [ebp - 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], edi
mov dword [esp], 0x6af8c58c
mov dword [esp + 8], eax
call sym._DXDiag_CreateDXDiagContainer
test eax, eax
mov ebx, eax
js 0x6af81f85
test byte [0x6af8a018], 8
je 0x6af81f85
mov dword [esp], 3
mov eax, str.IDxDiagContainerImpl_GetChildContainer
mov edi, str.Succeeded_in_getting_the_container_instance_n
mov dword [esp + 8], eax
mov eax, 0x6af8a018
mov dword [esp + 0xc], edi
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0
jmp 0x6af81f85
mov ebx, 0x80070057
mov ecx, dword [ebp - 0x20]
xor esi, esi
mov dword [esp + 4], esi
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0
mov ecx, str.Trying_to_get_parent_container__s_n
mov dword [esp + 0xc], ecx
mov dword [esp], 3
mov dword [esp + 0x10], eax
mov eax, str.IDxDiagContainerImpl_GetChildContainer
mov dword [esp + 8], eax
mov eax, 0x6af8a018
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0
jmp 0x6af81e91
test esi, esi
je 0x6af81e3c
mov eax, dword [ebp - 0x20]
jmp 0x6af81e37
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov ecx, dword [ebp - 0x24]
mov edx, str.IDxDiagContainerImpl_GetChildContainer
mov dword [esp + 8], edx
mov dword [esp], 3
mov dword [esp + 0x18], ecx
mov ecx, 0x6af8a018
mov dword [esp + 4], ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x10], eax
mov eax, 0x6af8c161
mov dword [esp + 0xc], eax
call sym._wine_dbg_log.constprop.0
jmp 0x6af81da2
xor ecx, ecx
mov edx, 2
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
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]
sub esp, 0xc
test eax, eax
jne 0x6af820de
lea esp, [ebp - 0x10]
mov ebx, 0x80004005
pop ecx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp], 3
mov dword [esp + 0x10], eax
mov eax, str.Trying_to_get_container__s_n
mov dword [esp + 0xc], eax
mov eax, str.IDxDiagContainerImpl_GetChildContainer
mov dword [esp + 8], eax
mov eax, 0x6af8a018
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0
jmp 0x6af81eef
mov esi, dword [ebp - 0x20]
jmp 0x6af81ee2
mov ebx, 0x80070057
jmp 0x6af81faa
mov dword [ebp - 0x20], eax
jmp 0x6af81e37