Function at 0x40bf30
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 [0x415750], 8
jne 0x40c0b0
mov eax, dword [ebp - 0x24]
mov edi, dword [sym.imp.kernel32.dll_lstrcmpiA]
lea ebx, [eax + 4]
mov eax, dword [eax + 4]
test eax, eax
jne 0x40bf90
jmp 0x40c0f8
mov eax, dword [ebx]
lea ebx, [eax + 0x24]
mov eax, dword [eax + 0x24]
test eax, eax
je 0x40c0f8
mov eax, dword [eax + 4]
mov dword [esp], esi
mov dword [esp + 4], eax
call edi
sub esp, 8
test eax, eax
jne 0x40bf80
mov edi, dword [ebx]
test edi, edi
je 0x40c0f8
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 dword [esp], edx
mov eax, dword [ebp - 0x1c]
call eax
mov edx, dword [ebp - 0x28]
mov dword [esp + 4], 0
mov ecx, eax
lea edx, [edx + edi + 0x2b]
add edx, ecx
mov dword [esp + 8], edx
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
mov edi, eax
test eax, eax
je 0x40c098
mov eax, dword [ebx]
mov edx, dword [sym.imp.ucrtbase.dll_strcpy]
lea ecx, [edi + 0x28]
mov eax, dword [eax + 0x24]
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
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], ecx
call edx
mov ecx, dword [ebp - 0x28]
mov dword [edi + 4], ecx
mov dword [esp], esi
mov eax, dword [ebp - 0x1c]
call eax
mov ecx, dword [ebp - 0x28]
lea esi, [ecx + eax + 1]
mov eax, dword [ebx]
mov eax, dword [eax + 8]
mov dword [esp], esi
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], edx
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 dword [esp], esi
mov edx, dword [ebp - 0x28]
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], 0x415750
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x40bf61
test byte [0x415750], 1
je 0x40c098
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], 0x415750
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