Function at 0x4115d0
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, 0x68
mov eax, dword [ecx + 0xc]
mov esi, dword [ecx]
mov ebx, dword [ecx + 4]
mov edi, dword [ecx + 8]
mov edx, eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
mov ecx, edi
mov eax, esi
mov dword [esp], edx
mov edx, ebx
mov dword [ebp - 0x3c], esi
call dbg.WINHELP_CheckPopup
mov esi, dword [ebp - 0x2c]
test eax, eax
jne 0x41181f
cmp ebx, 0x81
je 0x411ab0
mov esi, eax
jbe 0x4116e0
cmp ebx, 0x111
je 0x411ae8
jbe 0x411830
cmp ebx, 0x117
jne case.0x4118b0.28
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._GetWindowLongW_8
mov esi, eax
sub esp, 8
xor eax, eax
mov ecx, dword [esi + 0x210]
mov dword [esp + 4], 0x135
mov dword [esp], edi
test ecx, ecx
sete al
shl eax, 3
mov dword [esp + 8], eax
call sym._CheckMenuItem_12
xor eax, eax
sub esp, 0xc
cmp dword [esi + 0x210], 1
sete al
mov dword [esp + 4], 0x136
shl eax, 3
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._CheckMenuItem_12
xor eax, eax
sub esp, 0xc
cmp dword [esi + 0x210], 2
sete al
mov dword [esp + 4], 0x137
shl eax, 3
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._CheckMenuItem_12
sub esp, 0xc
jmp case.0x4118b0.28
cmp ebx, 0x4a
je 0x411b50
jbe 0x4117d0
cmp ebx, 0x4e
jne case.0x4118b0.28
cmp edi, 0x701
jne case.0x4118b0.28
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
cmp eax, 0x700
je 0x412050
cmp eax, 0x701
jne case.0x4118b0.28
mov esi, dword [ebp - 0x40]
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 4], 0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call sym._GetWindowLongW_8
sub esp, 8
mov esi, eax
mov dword [esp + 4], 0xfffffff0
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sym._GetWindowLongW_8
sub esp, 8
mov dword [esp + 4], eax
lea eax, [ebp - 0x28]
mov dword [esp + 8], 0
mov dword [esp], eax
call sym._AdjustWindowRect_12
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
sub esp, 0xc
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
mov dword [esp + 0x18], 6
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call sym._SetWindowPos_28
sub esp, 0x1c
mov dword [esp], esi
call dbg.WINHELP_LayoutMainWindow
jmp case.0x4118b0.28
cmp ebx, 2
je 0x4118c0
cmp ebx, 0x47
jne case.0x4118b0.28
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._GetWindowLongW_8
sub esp, 8
mov dword [esp], eax
call dbg.WINHELP_LayoutMainWindow
lea esi, [esi]
mov eax, dword [ebp - 0x40]
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call sym._DefWindowProcA_16
sub esp, 0x10
mov esi, eax
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
cmp ebx, 0x100
je 0x411878
cmp ebx, 0x102
jne case.0x4118b0.28
cmp edi, 3
jne case.0x4118b0.28
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x301
mov dword [esp + 4], 0x701
mov dword [esp], eax
call sym._SendDlgItemMessageW_20
sub esp, 0x14
jmp 0x41181f
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._GetWindowLongW_8
sub esp, 8
mov dword [esp + 4], 0x701
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sym._GetDlgItem_8
lea edx, [edi - 0x1b]
sub esp, 8
cmp edx, 0xd
ja case.0x4118b0.28
jmp dword [edx*4 + 0x41971c]
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._GetWindowLongW_8
mov dword [ebp - 0x44], eax
mov edx, eax
mov eax, dword [0x416794]
sub esp, 8
test eax, eax
je 0x411904
mov ecx, dword [ebp - 0x44]
cmp edx, eax
jne 0x4118f8
jmp 0x4120a6
cmp ecx, eax
je 0x411ff0
mov edx, eax
mov eax, dword [eax + 0x214]
test eax, eax
jne 0x4118f0
cmp dword [0x416780], 3
ja 0x411d88
mov eax, dword [ebp - 0x44]
cmp eax, dword [0x41678c]
je 0x411dc0
mov eax, dword [ebp - 0x44]
cmp eax, dword [0x416790]
je 0x411e20
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], 0x701
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sym._GetDlgItem_8
mov edx, dword [ebp - 0x44]
sub esp, 8
mov edx, dword [edx + 0x14]
mov dword [esp + 4], 0xfffffffc
mov dword [esp], eax
mov dword [esp + 8], edx
call sym._SetWindowLongA_12
mov edx, dword [ebp - 0x44]
sub esp, 0xc
lea eax, [edx + 4]
call sym._WINHELP_DeleteButtons.isra.0
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 8]
test eax, eax
je 0x4119c5
mov edx, dword [eax + 8]
test edx, edx
je 0x4119c5
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], ebx
mov ebx, edx
mov ecx, dword fs:[0x18]
mov esi, ecx
lea esi, [esi]
mov eax, ebx
mov ebx, dword [ebx + 0x1c]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
test ebx, ebx
jne 0x411998
mov esi, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x4119da
mov dword [esp], eax
call sym._DestroyWindow_4
sub esp, 4
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx + 0x24]
mov dword [esp], eax
call sym._DeleteObject_4
mov ecx, dword [ebp - 0x44]
sub esp, 4
mov edx, dword [ecx + 0x20c]
test edx, edx
je 0x411a3b
lea eax, [ecx + 0x2c]
xor edx, edx
mov dword [ebp - 0x48], esi
mov esi, ecx
mov dword [ebp - 0x4c], ebx
mov ebx, edx
mov dword [ebp - 0x50], edi
mov edi, eax
lea esi, [esi]
mov ecx, dword [edi]
add ebx, 1
add edi, 0xc
mov ecx, dword [ecx + 0x28]
mov dword [esp], ecx
call sym._HLPFILE_FreeHlpFile
mov dword [edi - 0xc], 0
cmp ebx, dword [esi + 0x20c]
jb 0x411a10
mov esi, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x44]
mov dword [eax + 0x20c], 0
mov eax, dword [eax + 8]
test eax, eax
je 0x411a5a
mov eax, dword [eax + 0x28]
mov dword [esp], eax
call sym._HLPFILE_FreeHlpFile
mov edx, dword [ebp - 0x44]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
test esi, esi
jne 0x411d78
mov eax, dword [0x416794]
test eax, eax
jne case.0x4118b0.28
mov dword [esp], 0
call sym._PostQuitMessage_4
sub esp, 4
jmp case.0x4118b0.28
mov eax, dword [ebp - 0x40]
mov esi, dword [eax]
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], 0
mov dword [esp + 8], esi
mov dword [esp], eax
call sym._SetWindowLongW_12
mov eax, dword [esi + 8]
sub esp, 0xc
test eax, eax
je 0x411de8
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0xc], eax
jmp case.0x4118b0.28
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._GetWindowLongW_8
movzx edx, di
sub esp, 8
cmp di, 0x143
ja 0x411b30
cmp edx, 0x100
jbe case.0x411b3f.515
sub edx, 0x101
cmp edx, 0x42
ja case.0x411b3f.515
jmp dword [edx*4 + 0x419754]
sub edx, 0x200
cmp edx, 0x12
ja case.0x411b3f.515
jmp dword [edx*4 + 0x419860]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
cmp eax, 0xa1de505
jne 0x411d38
mov eax, dword [ebp - 0x40]
mov ebx, dword [eax + 8]
test ebx, ebx
je 0x411ef0
movzx eax, word [ebx + 0xc]
mov edx, eax
add eax, ebx
test dx, dx
cmovne esi, eax
test byte [0x416988], 8
jne 0x412006
movzx eax, word [ebx + 2]
cmp ax, 0xb
ja case.0x411b9a.0
movzx edx, ax
jmp dword [edx*4 + 0x4198ac]
call dbg.MACRO_Annotate@0
jmp case.0x4118b0.28
call dbg.MACRO_Print@0
jmp case.0x4118b0.28
call dbg.MACRO_Exit@0
jmp case.0x4118b0.28
call dbg.MACRO_PrinterSetup@0
jmp case.0x4118b0.28
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x301
mov dword [esp + 4], 0x701
mov dword [esp], eax
call sym._SendDlgItemMessageW_20
sub esp, 0x14
jmp case.0x4118b0.28
call dbg.MACRO_FileOpen@0
jmp case.0x4118b0.28
mov edx, dword [eax + 4]
test edx, edx
jne 0x411c23
jmp 0x4121e6
mov edx, dword [edx + 0x24]
test edx, edx
je 0x4121e6
cmp edi, dword [edx + 0x10]
jne 0x411c18
mov edx, dword [edx + 0xc]
mov dword [esp], eax
mov dword [esp + 4], edx
call dbg.MACRO_ExecuteMacro
jmp case.0x4118b0.28
call dbg.MACRO_CopyDialog@0
jmp case.0x4118b0.28
call dbg.MACRO_About@0
jmp case.0x4118b0.28
call dbg.MACRO_HelpOnTop@0
jmp case.0x4118b0.28
call dbg.MACRO_HelpOn@0
jmp case.0x4118b0.28
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._GetWindowLongW_8
sub esp, 8
cmp dword [eax + 0x210], 2
mov esi, eax
je case.0x4118b0.28
mov dword [eax + 0x210], 2
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], 0x701
mov dword [esp], eax
call sym._GetDlgItem_8
xor ecx, ecx
mov edx, esi
sub esp, 8
call dbg.WINHELP_SetupText
jmp case.0x4118b0.28
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._GetWindowLongW_8
sub esp, 8
cmp dword [eax + 0x210], 1
mov esi, eax
je case.0x4118b0.28
mov dword [eax + 0x210], 1
jmp 0x411c93
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._GetWindowLongW_8
mov ecx, dword [eax + 0x210]
sub esp, 8
mov esi, eax
test ecx, ecx
je case.0x4118b0.28
mov dword [eax + 0x210], 0
jmp 0x411c93
call dbg.MACRO_History@0
jmp case.0x4118b0.28
call dbg.MACRO_BookmarkDefine@0
jmp case.0x4118b0.28
test byte [0x416988], 1
je 0x41181f
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Wrong_magic_number___08Ix__n
mov dword [esp + 8], str.WINHELP_HandleCommand
mov dword [esp + 4], 0x416988
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_3
jmp 0x41181f
call dbg.MACRO_Exit@0
jmp 0x411a89
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], str.main
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x48], eax
add eax, 0xa
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpiA]
sub esp, 8
test eax, eax
sete al
movzx eax, al
mov esi, eax
jmp 0x411911
mov eax, dword [0x416794]
mov dword [0x41678c], eax
test eax, eax
je 0x411920
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sym._SetActiveWindow_4
sub esp, 4
jmp 0x411920
mov eax, dword [0x416788]
test eax, eax
je 0x411ada
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x101
mov dword [esp + 4], 0x111
mov dword [esp], eax
call sym._PostMessageW_16
sub esp, 0x10
jmp 0x411ada
mov dword [0x416790], 0
jmp 0x41192f
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb5
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x41181f
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0xb5
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x41181f
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0xb5
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x41181f
call dbg.MACRO_Exit@0
jmp 0x41181f
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0xb5
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x41181f
test byte [0x416988], 1
jne 0x41221d
lea esi, [esi]
lea esi, [esi]
mov esi, 1
jmp 0x41181f
test esi, esi
je 0x411f11
mov dword [esp + 4], str.main
mov dword [esp], esi
call dbg.MACRO_JumpContents@8
sub esp, 8
mov eax, dword [0x41678c]
test eax, eax
je case.0x411b9a.2
mov edx, dword [eax + 0x214]
test edx, edx
jne 0x411ef0
cmp eax, dword [0x416794]
jne 0x411ef0
mov eax, dword [eax + 8]
test eax, eax
je case.0x411b9a.2
mov edi, dword [eax + 0x28]
test edi, edi
jne 0x411ef0
call dbg.MACRO_Exit@0
jmp 0x411ef0
test esi, esi
je 0x411f11
mov eax, dword [ebx + 4]
mov dword [esp + 4], str.main
mov dword [esp], esi
mov dword [esp + 8], eax
call dbg.MACRO_JumpContext@12
sub esp, 0xc
jmp 0x411f11
test esi, esi
je 0x411ef0
mov eax, dword [ebx + 4]
mov dword [esp], esi
mov esi, 1
mov dword [esp + 4], eax
call dbg.MACRO_SetContents@8
sub esp, 8
jmp 0x41181f
call dbg.MACRO_HelpOn@0
jmp 0x411f11
test byte [0x416988], 1
jne 0x41224f
test esi, esi
je 0x411ef0
mov dword [esp], esi
mov esi, 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.main
call dbg.MACRO_JumpHash@12
sub esp, 0xc
jmp 0x41181f
test esi, esi
je 0x411ef0
mov eax, dword [ebx + 4]
mov dword [esp], esi
mov esi, 1
mov dword [esp + 4], eax
call dbg.MACRO_PopupContext@8
sub esp, 8
jmp 0x41181f
add edx, 0x214
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x214]
mov dword [edx], eax
jmp 0x411904
mov eax, esi
call sym._wine_dbgstr_an.constprop.0_3
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x18], eax
movzx eax, word [ebx + 2]
mov dword [esp + 0x14], eax
movzx eax, word [ebx]
mov dword [esp + 0xc], str.Got__u_:_cmd_u_data_08lx_fn_s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.WINHELP_HandleCommand
mov dword [esp + 4], 0x416988
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x411b89
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0xc]
cmp edx, 0x101
je 0x4121b7
cmp edx, 0x204
je 0x4120b0
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], edx
mov ebx, dword [eax + 0x14]
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._GetWindowLongW_8
mov edx, dword [ebp - 0x44]
sub esp, 8
cmp edx, 0x201
jne 0x41181f
mov edx, ebx
call sym._WINHELP_HandleTextMouse.part.0
mov esi, eax
jmp 0x41181f
mov edx, 0x416794
jmp 0x411ff6
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._GetWindowLongW_8
mov dword [ebp - 0x44], eax
mov eax, dword [0x416784]
sub esp, 8
mov dword [esp + 4], 0xf001
mov dword [esp], eax
call sym._LoadMenuW_8
mov edx, dword [ebp - 0x44]
mov esi, eax
sub esp, 8
mov eax, dword [edx + 0x210]
cmp eax, 1
je 0x41210f
cmp eax, 2
je 0x412298
test eax, eax
je 0x412278
test byte [0x416988], 1
jne 0x4122b8
mov dword [esp + 8], 8
mov dword [esp + 4], 0x211
mov dword [esp], esi
call sym._CheckMenuItem_12
sub esp, 0xc
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx + 0x14]
movsx edx, ax
sar eax, 0x10
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ecx]
mov dword [ebp - 0x28], edx
mov dword [esp], eax
call sym._ClientToScreen_8
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], esi
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], edx
call sym._GetSubMenu_8
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x48]
sub esp, 8
mov dword [esp + 0x14], edx
mov edx, dword [ebp - 0x44]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._TrackPopupMenu_28
sub esp, 0x1c
mov dword [esp], esi
call sym._DestroyMenu_4
sub esp, 4
jmp case.0x4118b0.28
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x10], 0x1b
jne case.0x4118b0.28
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._GetWindowLongW_8
push esi
push esi
mov dword [esp], eax
call dbg.WINHELP_ReleaseWindow
jmp case.0x4118b0.28
mov eax, edi
shr eax, 0x10
jne case.0x4118b0.28
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x121
mov dword [esp + 4], 0x124
mov dword [esp], 0
call sym._MessageBoxW_16
sub esp, 0x10
jmp case.0x4118b0.28
mov dword [esp + 0x10], eax
mov esi, 1
mov dword [esp + 0xc], str.Unhandled_command___x__for_remote_winhelp_control_n
mov dword [esp + 8], str.WINHELP_HandleCommand
mov dword [esp + 4], 0x416988
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_3
jmp 0x41181f
mov dword [esp + 0xc], str.HELP_FINDER:_stub_n
mov dword [esp + 8], str.WINHELP_HandleCommand
mov dword [esp + 4], 0x416988
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_3
jmp 0x411f95
mov dword [esp + 8], 8
mov dword [esp + 4], 0x210
mov dword [esp], esi
call sym._CheckMenuItem_12
sub esp, 0xc
jmp 0x41212a
mov dword [esp + 8], 8
mov dword [esp + 4], 0x212
mov dword [esp], esi
call sym._CheckMenuItem_12
sub esp, 0xc
jmp 0x41212a
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unsupported__d_n
mov dword [esp + 8], str.WINHELP_MainWndProc
mov dword [esp + 4], 0x416988
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_3
jmp 0x41210f