Function at 0x4218b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x54
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
je 0x4218c9
xor eax, eax
pop esi
add esp, 0x54
ret 0x14
push ebx
push ebp
push edi
call sub.MFC42u.DLL_AfxLockTempMaps
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 8]
lea edi, [esi + 8]
mov ebp, dword [esp + 0x6c]
sub eax, ebx
mov edx, dword [edi + 4]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0xc]
sub eax, edx
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call sub.MFC42u.DLL_CWnd::FromHandle
mov ecx, dword [ebp + 0x20]
mov ebx, dword [sym.imp.USER32.dll_UpdateWindow]
push ecx
call ebx
mov eax, dword [esp + 0x78]
test eax, eax
je 0x42191a
mov edx, dword [eax + 0x20]
push edx
call ebx
mov eax, edi
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x10]
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x14]
mov dword [esp + 0x34], edx
push eax
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x70]
lea eax, [esp + 0x20]
push edx
push eax
push ecx
mov ecx, esi
call fcn.00421bf0
mov edx, dword [esp + 0x70]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x14]
sub edx, ebx
mov ebx, dword [esp + 0x78]
sub eax, ecx
mov dword [esp + 0x10], edx
test ebx, ebx
mov dword [esp + 0x14], eax
je 0x42198b
mov ecx, dword [ebx + 0x20]
push 2
push 0
push ecx
call dword [sym.imp.USER32.dll_GetDCEx]
jmp 0x421995
mov edx, dword [ebp + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC42u.DLL_CDC::FromHandle
mov dword [esp + 0x78], eax
push 0
push 0
lea eax, [esp + 0x50]
push 0
push eax
mov dword [esp + 0x7c], 0
call dword [sym.imp.USER32.dll_GetMessageW]
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call sub.MFC42u.DLL_CWnd::FromHandle
cmp eax, ebp
jne 0x421b7b
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [esp + 0x4c]
cmp eax, 0x202
ja 0x421b12
je 0x421a0b
cmp eax, 0x100
je 0x4219fb
cmp eax, 0x200
je 0x421a0b
jmp 0x421b19
cmp dword [esp + 0x50], 0x1b
je 0x421b4b
jmp 0x421b24
mov edx, edi
mov eax, dword [edx]
mov dword [esp + 0x38], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x3c], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [edx + 0xc]
test eax, eax
mov dword [esp + 0x44], ecx
je 0x421a3b
movsx edx, word [esp + 0x54]
sub edx, dword [esp + 0x10]
mov dword [eax], edx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x421a53
mov ecx, dword [esp + 0x54]
shr ecx, 0x10
movsx edx, cx
sub edx, dword [esp + 0x14]
mov dword [eax], edx
mov eax, dword [esp + 0x68]
cmp eax, 8
jne 0x421a73
mov ecx, dword [edi]
mov edx, dword [esp + 0x20]
add ecx, edx
mov edx, dword [esi + 0xc]
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x24]
add edx, ecx
mov dword [esi + 0x14], edx
mov edx, dword [esi]
push edi
push eax
mov ecx, esi
call dword [edx + 4]
mov ecx, dword [esp + 0x4c]
xor eax, eax
cmp ecx, 0x202
lea ecx, [esp + 0x38]
sete al
push edi
push ecx
mov dword [esi + 0x48], eax
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
je 0x421aa5
mov eax, dword [esi + 0x48]
test eax, eax
je 0x421aef
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x421ac6
mov eax, dword [esp + 0x78]
mov edx, dword [esi]
push ebp
push eax
lea ecx, [esp + 0x40]
push ebx
push ecx
mov ecx, esi
mov dword [esi + 0x44], 1
call dword [edx]
mov edx, dword [esi]
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call dword [edx + 8]
cmp dword [esp + 0x4c], 0x202
je 0x421ae4
mov dword [esp + 0x6c], 1
mov eax, dword [esi + 0x48]
test eax, eax
jne 0x421b7b
lea ecx, [esp + 0x38]
push edi
push ecx
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x421b24
mov edx, dword [esi]
mov dword [esi + 0x44], eax
mov eax, dword [esp + 0x78]
push ebp
push eax
push ebx
push edi
mov ecx, esi
call dword [edx]
jmp 0x421b24
cmp eax, 0x204
je 0x421b4b
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
lea edx, [esp + 0x50]
push 0
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call sub.MFC42u.DLL_CWnd::FromHandle
cmp eax, ebp
je 0x4219cc
jmp 0x421b7b
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x421b5e
mov eax, 1
mov dword [esi + 0x48], eax
mov dword [esi + 0x44], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x78]
test ebx, ebx
mov ecx, dword [eax + 4]
push ecx
je 0x421b8c
mov edx, dword [ebx + 0x20]
jmp 0x421b8f
mov edx, dword [ebp + 0x20]
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
call dword [sym.imp.USER32.dll_ReleaseCapture]
xor ebx, ebx
push ebx
call sub.MFC42u.DLL_AfxUnlockTempMaps
cmp dword [esp + 0x6c], ebx
jne 0x421bc7
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [esp + 0x28]
push edi
push eax
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], ebx
call dword [sym.imp.USER32.dll_EqualRect]
neg eax
pop edi
pop ebp
sbb eax, eax
pop ebx
inc eax
pop esi
add esp, 0x54
ret 0x14