Function at 0x651c1e80
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 + 0xc]
mov edi, dword [ecx]
mov esi, dword [ecx + 4]
mov ebx, dword [ecx + 8]
mov dword [ebp - 0x1c], eax
test byte [0x651c5018], 8
jne 0x651c1f78
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0
test esi, esi
jne 0x651c21d0
mov dword [esp + 8], 0xc
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 dword [sym.imp.kernel32.dll_HeapAlloc]
mov edi, dword [edi + 8]
mov dword [eax], sym._XAPOFX_QueryInterface_12
mov esi, eax
lea ecx, [eax + 8]
sub esp, 0xc
mov dword [eax + 4], 0x651c9328
mov eax, dword [edi]
cmp eax, dword [0x651c9420]
je 0x651c2030
cmp eax, dword [0x651c9460]
je 0x651c2068
cmp eax, dword [0x651c9400]
je 0x651c20a0
cmp eax, dword [0x651c9440]
je 0x651c20f0
mov edi, 0x80070057
test byte [0x651c5018], 2
jne 0x651c2190
mov dword [esp + 8], esi
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 dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
test ebx, ebx
je 0x651c21c0
mov eax, ebx
shr eax, 0x10
je 0x651c20d0
movzx eax, byte [ebx + 0xf]
mov dword [esp + 0x2c], eax
movzx eax, byte [ebx + 0xe]
mov dword [esp + 0x28], eax
movzx eax, byte [ebx + 0xd]
mov dword [esp + 0x24], eax
movzx eax, byte [ebx + 0xc]
mov dword [esp + 0x20], eax
movzx eax, byte [ebx + 0xb]
mov dword [esp + 0x1c], eax
movzx eax, byte [ebx + 0xa]
mov dword [esp + 0x18], eax
movzx eax, byte [ebx + 9]
mov dword [esp + 0x14], eax
movzx eax, byte [ebx + 8]
mov dword [esp + 0x10], eax
movzx eax, word [ebx + 6]
mov dword [esp + 0xc], eax
movzx eax, word [ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp], 0x651c9010
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf
mov edx, dword [ebp - 0x1c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.__p_____p__s__p__n
mov dword [esp + 8], str.xapocf_CreateInstance
mov dword [esp + 4], 0x651c5018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x651c1eaf
mov edx, dword [0x651c9424]
cmp dword [edi + 4], edx
jne 0x651c1f0b
mov edx, dword [0x651c9428]
cmp dword [edi + 8], edx
jne 0x651c1f0b
mov edx, dword [0x651c942c]
cmp dword [edi + 0xc], edx
jne 0x651c1f0b
jmp 0x651c2120
mov edx, dword [0x651c9464]
cmp dword [edi + 4], edx
jne 0x651c1f17
mov edx, dword [0x651c9468]
cmp dword [edi + 8], edx
jne 0x651c1f17
mov edx, dword [0x651c946c]
cmp dword [edi + 0xc], edx
jne 0x651c1f17
jmp 0x651c2120
mov edx, dword [0x651c9404]
cmp dword [edi + 4], edx
jne 0x651c1f23
mov edx, dword [0x651c9408]
cmp dword [edi + 8], edx
jne 0x651c1f23
mov edx, dword [0x651c940c]
cmp dword [edi + 0xc], edx
jne 0x651c1f23
jmp 0x651c2120
movzx eax, bx
mov dword [esp], section..rdata
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf
jmp 0x651c1fed
mov eax, dword [0x651c9444]
cmp dword [edi + 4], eax
jne 0x651c1f2f
mov eax, dword [0x651c9448]
cmp dword [edi + 8], eax
jne 0x651c1f2f
mov eax, dword [0x651c944c]
cmp dword [edi + 0xc], eax
jne 0x651c1f2f
lea esi, [esi]
mov dword [esp], edi
mov dword [esp + 0x18], sym._XAudio_Internal_Realloc
mov dword [esp + 0x14], sym._XAudio_Internal_Free
mov dword [esp + 0x10], sym._XAudio_Internal_Malloc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ecx
call sym._FAPOFX_CreateFXWithCustomAllocatorEXT
mov edi, eax
test eax, eax
js 0x651c1f41
mov eax, dword [esi]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 8], edx
call dword [eax]
mov edi, eax
mov eax, dword [esi]
sub esp, 0xc
mov dword [esp], esi
call dword [eax + 8]
mov eax, edi
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp + 0xc], str.Invalid_XAPO_CLSID__n
mov dword [esp + 8], str.get_fapo_from_clsid
mov dword [esp + 4], 0x651c5018
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x651c1f41
mov eax, 0x651c90f4
jmp 0x651c1fed
mov edi, 0x80040110
jmp 0x651c1f65