Function at 0x40caea
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 esi, dword [ecx]
mov dword [ebp - 0x20], eax
call dbg.MACRO_CurrentWindow
mov dword [ebp - 0x24], eax
test byte [0x416750], 8
jne 0x40cc58
mov eax, dword [ebp - 0x24]
lea ebx, [eax + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x40cca0
mov edi, dword [sym.imp.kernel32.dll_lstrcmpiA]
jmp 0x40cb40
mov eax, dword [ebx]
lea ebx, [eax + 0x24]
mov eax, dword [eax + 0x24]
test eax, eax
je 0x40cca0
mov eax, dword [eax + 4]
mov dword [esp], esi
mov dword [esp + 4], eax
call edi
sub esp, 8
test eax, eax
jne 0x40cb30
mov edi, dword [ebx]
test edi, edi
je 0x40cca0
mov eax, dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp], esi
mov dword [ebp - 0x1c], eax
call eax
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 8]
mov dword [esp], eax
mov eax, dword [ebp - 0x1c]
call eax
mov edx, dword [ebp - 0x20]
mov edi, eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], edx
call eax
mov edx, dword [ebp - 0x28]
mov dword [esp + 4], 0
mov ecx, dword fs:[0x18]
lea edx, [edx + edi + 0x2b]
add eax, edx
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x40cc47
mov eax, dword [ebx]
mov edx, dword [sym.imp.ucrtbase.dll_strcpy]
lea ecx, [edi + 0x28]
mov dword [ebp - 0x28], ecx
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x2c], edx
mov dword [edi + 0x24], eax
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [edi], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
mov dword [edi + 0x10], eax
mov dword [esp + 4], esi
mov dword [esp], ecx
call edx
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
mov dword [edi + 4], ecx
mov dword [esp], esi
call eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
lea esi, [ecx + eax + 1]
mov eax, dword [ebx]
mov dword [ebp - 0x28], edx
mov eax, dword [eax + 8]
mov dword [esp], esi
mov dword [esp + 4], eax
call edx
mov dword [edi + 8], esi
mov eax, dword [ebx]
mov eax, dword [eax + 8]
mov dword [esp], eax
mov eax, dword [ebp - 0x1c]
call eax
mov edx, dword [ebp - 0x20]
lea esi, [esi + eax + 1]
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x28]
mov dword [esp], esi
call edx
mov eax, dword [ebp - 0x24]
mov dword [edi + 0xc], esi
mov dword [ebx], edi
mov dword [esp], eax
call dbg.WINHELP_LayoutMainWindow
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov eax, dword [ebp - 0x20]
call sym._wine_dbgstr_an.constprop.0_2
mov ebx, eax
mov eax, esi
call sym._wine_dbgstr_an.constprop.0_2
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__s___s__n
mov dword [esp + 8], str.MACRO_ChangeButtonBinding
mov dword [esp + 4], 0x416750
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x40cb11
test byte [0x416750], 1
je 0x40cc47
mov eax, esi
call sym._wine_dbgstr_an.constprop.0_2
mov dword [esp + 0xc], str.Couldnt_find_button__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.MACRO_ChangeButtonBinding
mov dword [esp + 4], 0x416750
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_2
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8