Function at 0x4087f0
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 eax, dword [ecx + 8]
mov ebx, dword [ecx]
mov edi, dword [ecx + 4]
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x2c], eax
mov dword [esp], ebx
call dword [sym.imp.user32.dll_GetMenu]
sub esp, 4
cmp edi, 0x4e
je 0x408ab8
mov ecx, eax
ja 0x4088e0
cmp edi, 5
je 0x408ae8
cmp edi, 0x20
jne 0x4088a0
lea esi, [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov dword [esp], esi
call dword [sym.imp.user32.dll_GetCursorPos]
sub esp, 4
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.user32.dll_ScreenToClient]
mov eax, ebx
mov esi, dword [ebp - 0x20]
sub esp, 8
call sym._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 0x408bb8
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 0x408a18
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 0x408a48
cmp edi, 0x202
jne 0x4089f0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.user32.dll_GetCapture]
mov ecx, dword [ebp - 0x2c]
cmp eax, ebx
mov edi, eax
jne 0x408888
mov dword [ecx + 0x18], 0xffffffff
movsx edx, si
call sym._DrawSplitMoving
mov ecx, dword [ebp - 0x2c]
mov eax, edi
mov ebx, dword [ecx + 0x14]
call sym._GetSplitPos
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], ebx
mov edx, eax
mov esi, dword [sym.imp.user32.dll_MoveWindow]
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 esi
mov ecx, dword [ebp - 0x2c]
sub esp, 0x18
mov eax, dword [ecx + 0x14]
mov ebx, dword [ecx + 0x10]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
mov eax, edi
call sym._GetSplitPos
mov ecx, dword [ebp - 0x30]
mov edx, eax
mov eax, dword [ecx + 0xc]
shr eax, 0x1f
add eax, dword [ecx + 0xc]
sar eax, 1
sub ebx, eax
mov eax, edi
sub ebx, edx
call sym._GetSplitPos
mov ecx, dword [ebp - 0x30]
mov dword [esp + 0x14], 1
mov edx, eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
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 esi
sub esp, 0x18
call dword [sym.imp.user32.dll_ReleaseCapture]
xor eax, eax
jmp 0x40888a
cmp edi, 0x200
jne 0x408a18
call dword [sym.imp.user32.dll_GetCapture]
cmp eax, ebx
jne 0x408888
movsx edx, si
call sym._DrawSplitMoving
xor eax, eax
jmp 0x40888a
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 dword [sym.imp.user32.dll_DefWindowProcW]
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 sym._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 0x408888
mov eax, ebx
call sym._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 0x408888
mov dword [ecx + 0x18], 0xffffffff
mov edx, esi
mov eax, ebx
call sym._DrawSplitMoving
mov dword [esp], ebx
call dword [sym.imp.user32.dll_SetCapture]
xor eax, eax
sub esp, 4
jmp 0x40888a
cmp dword [ebp - 0x2c], 0x7d3
jne 0x408888
cmp dword [esi + 8], 0xfffffe3d
jne 0x408888
mov eax, dword [esi + 0x3c]
mov dword [esp], eax
call sym._UpdateData
xor eax, eax
jmp 0x40888a
cmp dword [ebp - 0x2c], 1
je 0x408888
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 sym._GetSplitPos
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 1
mov edx, eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x30], ecx
shr eax, 0x1f
add eax, dword [ecx + 0xc]
mov dword [esp + 8], 0
sar eax, 1
mov dword [esp + 4], 0
sub edx, eax
mov dword [esp + 0xc], edx
mov eax, dword [ecx]
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_MoveWindow]
mov dword [ebp - 0x2c], eax
call eax
mov eax, ebx
sub esp, 0x18
call sym._GetSplitPos
mov ecx, dword [ebp - 0x30]
mov edx, eax
mov eax, dword [ecx + 0xc]
shr eax, 0x1f
add eax, dword [ecx + 0xc]
sar eax, 1
sub edi, eax
mov eax, ebx
sub edi, edx
call sym._GetSplitPos
mov ecx, dword [ebp - 0x30]
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 esi, ebx
shr esi, 0x1f
mov eax, esi
add eax, ebx
sar eax, 1
add eax, edx
mov dword [esp + 4], eax
mov eax, dword [ecx + 4]
mov dword [esp], eax
mov eax, dword [ebp - 0x2c]
call eax
sub esp, 0x18
jmp 0x408888
mov eax, ebx
mov dword [ebp - 0x2c], ecx
mov esi, dword [ebp - 0x20]
call sym._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 0x408888
mov dword [esp + 4], 0x7f84
mov dword [esp], 0
call dword [sym.imp.user32.dll_LoadCursorW]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetCursor]
xor eax, eax
sub esp, 4
jmp 0x40888a