Function at 0x404dc0
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 edi, dword [ecx + 4]
mov eax, dword [ecx + 8]
mov ebx, dword [ecx]
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 0x4050b0
mov ecx, eax
jbe 0x404e50
cmp edi, 0x201
je 0x404f52
cmp edi, 0x202
je 0x404ea0
cmp edi, 0x200
je 0x404fc0
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
cmp edi, 5
je 0x404fe0
cmp edi, 0x20
je 0x404ec4
cmp edi, 2
jne 0x404e1f
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]
sub esp, 0xc
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [ebp - 0x2c], eax
call dword [sym.imp.user32.dll_GetCapture]
cmp ebx, eax
mov ecx, dword [ebp - 0x2c]
je 0x4050dc
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
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
sub esp, 8
mov esi, dword [ebp - 0x20]
call dbg.GetSplitPos
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ecx + 0xc]
mov edx, edi
shr edx, 0x1f
add edx, edi
sar edx, 1
sub eax, edx
cmp esi, eax
jl 0x404eb4
mov eax, ebx
mov dword [ebp - 0x2c], ecx
mov esi, dword [ebp - 0x20]
call dbg.GetSplitPos
mov ecx, dword [ebp - 0x2c]
mov ecx, dword [ecx + 0xc]
mov edx, ecx
shr edx, 0x1f
add edx, ecx
sar edx, 1
add eax, edx
cmp esi, eax
jg 0x404eb4
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 0x404e3a
mov dword [ebp - 0x2c], eax
mov eax, ebx
movsx esi, si
call dbg.GetSplitPos
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ecx + 0xc]
mov edx, edi
shr edx, 0x1f
add edx, edi
sar edx, 1
sub eax, edx
cmp esi, eax
jl 0x404eb4
mov eax, ebx
call dbg.GetSplitPos
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ecx + 0xc]
mov edx, edi
shr edx, 0x1f
add edx, edi
sar edx, 1
add eax, edx
cmp esi, eax
jg 0x404eb4
mov dword [ecx + 0x18], 0xffffffff
mov edx, esi
mov eax, ebx
call dbg.DrawSplitMoving
mov dword [esp], ebx
call dword [sym.imp.user32.dll_SetCapture]
xor eax, eax
sub esp, 4
jmp 0x404e3a
call dword [sym.imp.user32.dll_GetCapture]
cmp ebx, eax
jne 0x404eb4
mov eax, ebx
movsx edx, si
call dbg.DrawSplitMoving
xor eax, eax
jmp 0x404e3a
cmp dword [ebp - 0x2c], 1
je 0x404eb4
movzx eax, si
shr esi, 0x10
mov dword [ebp - 0x30], ecx
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], esi
mov dword [ebp - 0x2c], eax
mov eax, ebx
call dbg.GetSplitPos
mov ecx, dword [ebp - 0x30]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 1
mov edi, dword [ecx + 0xc]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov edx, edi
shr edx, 0x1f
add edx, edi
sar edx, 1
sub eax, edx
mov edx, dword [sym.imp.user32.dll_MoveWindow]
mov dword [esp + 0xc], eax
mov eax, dword [ecx]
mov dword [ebp - 0x34], edx
mov dword [esp], eax
call edx
mov eax, ebx
sub esp, 0x18
call dbg.GetSplitPos
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
mov edi, dword [ecx + 0xc]
sub edx, eax
mov eax, edx
shr edi, 0x1f
add edi, dword [ecx + 0xc]
sar edi, 1
sub eax, edi
mov edi, eax
mov eax, ebx
call dbg.GetSplitPos
mov ecx, dword [ebp - 0x30]
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov edx, dword [ebp - 0x34]
mov esi, dword [ecx + 0xc]
mov ebx, esi
shr ebx, 0x1f
add ebx, esi
sar ebx, 1
add eax, ebx
mov dword [esp + 4], eax
mov eax, dword [ecx + 4]
mov dword [esp], eax
call edx
xor eax, eax
sub esp, 0x18
jmp 0x404e3a
cmp dword [ebp - 0x2c], 0x7d3
jne 0x404eb4
cmp dword [esi + 8], 0xfffffe3d
jne 0x404eb4
mov eax, dword [esi + 0x3c]
mov dword [esp], eax
call dbg.UpdateData
xor eax, eax
jmp 0x404e3a
movsx edx, si
mov eax, ebx
mov dword [ecx + 0x18], 0xffffffff
call dbg.DrawSplitMoving
mov ecx, dword [ebp - 0x2c]
mov eax, ebx
mov esi, dword [ecx + 0x14]
call dbg.GetSplitPos
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], esi
mov edi, dword [sym.imp.user32.dll_MoveWindow]
mov esi, dword [ecx + 0xc]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov edx, esi
shr edx, 0x1f
add edx, esi
sar edx, 1
sub eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [ecx]
mov dword [esp], eax
call edi
mov ecx, dword [ebp - 0x2c]
sub esp, 0x18
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x30], eax
mov eax, ebx
call dbg.GetSplitPos
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0xc]
mov esi, edx
shr esi, 0x1f
add esi, edx
mov edx, dword [ebp - 0x30]
sar esi, 1
sub edx, eax
mov eax, edx
sub eax, esi
mov esi, eax
mov eax, ebx
call dbg.GetSplitPos
mov ecx, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x2c]
mov dword [esp + 0x14], 1
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 0x10], ebx
mov ebx, dword [ecx + 0xc]
mov edx, ebx
shr edx, 0x1f
add edx, ebx
sar edx, 1
add eax, edx
mov dword [esp + 4], eax
mov eax, dword [ecx + 4]
mov dword [esp], eax
call edi
sub esp, 0x18
call dword [sym.imp.user32.dll_ReleaseCapture]
xor eax, eax
jmp 0x404e3a