Function at 0x404a40
Capabilities:
Get process heap flags
Get process heap force 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 ebx, dword [ecx]
mov eax, dword [ecx + 8]
mov edi, dword [ecx + 4]
mov esi, dword [ecx + 0xc]
mov dword [esp], ebx
mov dword [ebp - 0x2c], eax
call sym._GetMenu_4
sub esp, 4
cmp edi, 0x4e
je 0x404cf0
mov ecx, eax
ja 0x404b30
cmp edi, 5
je 0x404d20
cmp edi, 0x20
jne 0x404af0
lea esi, [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov dword [esp], esi
call sym._GetCursorPos_4
sub esp, 4
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._ScreenToClient_8
mov eax, ebx
mov esi, dword [ebp - 0x20]
sub esp, 8
call dbg.GetSplitPos
mov ecx, dword [ebp - 0x2c]
mov edx, eax
mov edi, dword [ecx + 0xc]
mov eax, edi
shr eax, 0x1f
add eax, edi
sar eax, 1
sub edx, eax
cmp esi, edx
jge 0x404de8
lea esi, [esi]
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
cmp edi, 2
jne 0x404c58
mov dword [esp + 8], ecx
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]
xor eax, eax
sub esp, 0xc
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
cmp edi, 0x201
je 0x404c80
cmp edi, 0x202
jne 0x404c30
mov dword [ebp - 0x2c], eax
call sym._GetCapture_0
mov ecx, dword [ebp - 0x2c]
cmp eax, ebx
mov edi, eax
jne 0x404ad8
mov dword [ecx + 0x18], 0xffffffff
movsx edx, si
call dbg.DrawSplitMoving
mov ecx, dword [ebp - 0x2c]
mov eax, edi
mov ebx, dword [ecx + 0x14]
call dbg.GetSplitPos
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], ebx
mov edx, eax
mov ebx, dword [ecx + 0xc]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, ebx
shr eax, 0x1f
add eax, ebx
sar eax, 1
sub edx, eax
mov dword [esp + 0xc], edx
mov eax, dword [ecx]
mov dword [esp], eax
call sym._MoveWindow_24
mov ecx, dword [ebp - 0x2c]
mov eax, edi
sub esp, 0x18
mov esi, dword [ecx + 0x14]
mov ebx, dword [ecx + 0x10]
call dbg.GetSplitPos
mov ecx, dword [ebp - 0x2c]
mov edx, eax
mov eax, dword [ecx + 0xc]
sub ebx, edx
shr eax, 0x1f
add eax, dword [ecx + 0xc]
sar eax, 1
sub ebx, eax
mov eax, edi
call dbg.GetSplitPos
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 1
mov edx, eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov ebx, dword [ecx + 0xc]
mov eax, ebx
shr eax, 0x1f
add eax, ebx
sar eax, 1
add eax, edx
mov dword [esp + 4], eax
mov eax, dword [ecx + 4]
mov dword [esp], eax
call sym._MoveWindow_24
sub esp, 0x18
call sym._ReleaseCapture_0
xor eax, eax
jmp 0x404ada
cmp edi, 0x200
jne 0x404c58
call sym._GetCapture_0
cmp eax, ebx
jne 0x404ad8
movsx edx, si
call dbg.DrawSplitMoving
xor eax, eax
jmp 0x404ada
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], esi
mov dword [esp + 4], edi
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym._DefWindowProcW_16
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [ebp - 0x2c], eax
mov eax, ebx
movsx esi, si
call dbg.GetSplitPos
mov ecx, dword [ebp - 0x2c]
mov edx, eax
mov edi, dword [ecx + 0xc]
mov eax, edi
shr eax, 0x1f
add eax, edi
sar eax, 1
sub edx, eax
cmp esi, edx
jl 0x404ad8
mov eax, ebx
call dbg.GetSplitPos
mov ecx, dword [ebp - 0x2c]
mov edx, eax
mov edi, dword [ecx + 0xc]
mov eax, edi
shr eax, 0x1f
add eax, edi
sar eax, 1
add eax, edx
cmp esi, eax
jg 0x404ad8
mov dword [ecx + 0x18], 0xffffffff
mov edx, esi
mov eax, ebx
call dbg.DrawSplitMoving
mov dword [esp], ebx
call sym._SetCapture_4
xor eax, eax
sub esp, 4
jmp 0x404ada
cmp dword [ebp - 0x2c], 0x7d3
jne 0x404ad8
cmp dword [esi + 8], 0xfffffe3d
jne 0x404ad8
mov eax, dword [esi + 0x3c]
mov dword [esp], eax
call dbg.UpdateData
xor eax, eax
jmp 0x404ada
cmp dword [ebp - 0x2c], 1
je 0x404ad8
movzx edi, si
shr esi, 0x10
mov dword [ebp - 0x2c], eax
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], esi
mov eax, ebx
call dbg.GetSplitPos
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 1
mov edx, dword [ecx + 0xc]
shr edx, 0x1f
add edx, dword [ecx + 0xc]
mov dword [esp + 8], 0
sar edx, 1
mov dword [esp + 4], 0
sub eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [ecx]
mov dword [esp], eax
call sym._MoveWindow_24
mov eax, ebx
sub esp, 0x18
call dbg.GetSplitPos
mov ecx, dword [ebp - 0x2c]
mov edx, eax
mov eax, dword [ecx + 0xc]
sub edi, edx
shr eax, 0x1f
add eax, dword [ecx + 0xc]
sar eax, 1
sub edi, eax
mov eax, ebx
call dbg.GetSplitPos
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 1
mov edx, eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov ebx, dword [ecx + 0xc]
mov eax, ebx
shr eax, 0x1f
add eax, ebx
sar eax, 1
add eax, edx
mov dword [esp + 4], eax
mov eax, dword [ecx + 4]
mov dword [esp], eax
call sym._MoveWindow_24
sub esp, 0x18
jmp 0x404ad8
mov eax, ebx
mov dword [ebp - 0x2c], ecx
mov esi, dword [ebp - 0x20]
call dbg.GetSplitPos
mov ecx, dword [ebp - 0x2c]
mov edx, eax
mov ecx, dword [ecx + 0xc]
mov eax, ecx
shr eax, 0x1f
add eax, ecx
sar eax, 1
add eax, edx
cmp esi, eax
jg 0x404ad8
mov dword [esp + 4], 0x7f84
mov dword [esp], 0
call sym._LoadCursorW_8
sub esp, 8
mov dword [esp], eax
call sym._SetCursor_4
xor eax, eax
sub esp, 4
jmp 0x404ada