Function at 0x10005490
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
test ebx, ebx
setne al
test ecx, ecx
mov esi, eax
sete al
and eax, esi
mov edi, eax
test byte [0x1001c100], 8
jne 0x100054d0
test al, al
je 0x10005550
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], str._lu__p__u_n
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], str.GetRoleTextA
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x1001c100
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov eax, edi
test al, al
jne 0x100054c0
test byte [0x1001c100], 8
je 0x10005550
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._lu__p__u_n
mov dword [esp + 8], str.GetRoleTextW
mov dword [esp + 4], 0x1001c100
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [0x1001c224]
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
sub esp, 0x10
test eax, eax
jne 0x100055a0
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x100054c0
mov ecx, esi
test cl, cl
je 0x100054c0
mov byte [ebx], 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
lea edx, [eax + 1]
mov dword [esp + 4], 0
lea eax, [edx + edx]
mov dword [ebp - 0x14], edx
mov dword [esp + 8], eax
mov edi, dword fs:[0x18]
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x100054c0
mov edx, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], edx
mov dword [esp], eax
call sym.oleacc.dll_GetRoleTextW
mov ecx, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
sub esp, 0xc
mov dword [ebp - 0x14], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
mov ecx, dword [ebp - 0x14]
sub esp, 0x20
test ebx, ebx
je 0x100056f0
cmp dword [ebp + 0x10], eax
jb 0x100056c0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
sub esp, 0x20
mov dword [esp + 8], esi
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]
mov edx, dword [ebp - 0x14]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
lea eax, [edx - 1]
pop esi
pop edi
pop ebp
ret 0xc
mov dword [esp + 8], esi
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]
mov byte [ebx], 0
sub esp, 0xc
jmp 0x100054c0
mov dword [ebp - 0x14], eax
jmp 0x10005688