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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f0972
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov edi, ecx
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
cmp eax, edi
je 0x4a9c2e
mov eax, dword [edi + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
push edi
lea ecx, [esp + 0x48]
call fcn.004e2538
mov edx, dword [edi]
xor ebp, ebp
lea eax, [esp + 0x44]
push ebp
push eax
mov ecx, edi
mov dword [esp + 0x7c], ebp
call dword [edx + 0xe4]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
mov eax, dword [edi + 0xba8]
push ebp
push ebp
push ecx
push edx
lea ecx, [esp + 0x54]
push eax
push ecx
lea ecx, [edi + 0x798]
call fcn.004c2d60
lea ecx, [esp + 0x44]
mov dword [esp + 0x74], 0xffffffff
call sub.MFC42.DLL_CClientDC::CClientDC
mov eax, dword [edi + 0x210]
mov esi, dword [edi + 0x40]
xor ecx, ecx
mov dword [esp + 0x1c], esi
mov edx, dword [eax + 4]
mov cx, word [eax + 2]
mov dword [esp + 0x14], ecx
mov eax, dword [edx + 4]
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
lea ecx, [edi + 0x1fc]
call fcn.00417b70
mov eax, dword [esi + 0xe8]
mov dword [esp + 0x10], ebp
cmp eax, ebp
jle 0x4a9e72
jmp 0x4a9ccb
mov esi, dword [esp + 0x1c]
mov edx, dword [esi + 0xe4]
lea ecx, [esp + 0x44]
mov ebx, dword [edx + ebp*4]
call sub.MFC42.DLL_CUIntArray::CUIntArray
push edi
lea ecx, [esp + 0x5c]
mov dword [esp + 0x78], 1
call fcn.004e2538
mov eax, dword [edi]
lea ecx, [esp + 0x58]
push 0
push ecx
mov ecx, edi
mov byte [esp + 0x7c], 2
call dword [eax + 0xe4]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
lea edx, [esp + 0x44]
push edx
push 0xa
push eax
lea edx, [esp + 0x64]
push ecx
push edx
mov ecx, ebx
call fcn.0045f500
lea ecx, [esp + 0x58]
mov esi, eax
mov byte [esp + 0x74], 1
call sub.MFC42.DLL_CClientDC::CClientDC
test esi, esi
je 0x4a9e4c
mov ecx, dword [esp + 0x4c]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x18], eax
jle 0x4a9e4c
mov ecx, dword [esp + 0x48]
cmp word [ebx + 4], 1
mov esi, dword [ecx + eax*4]
jne 0x4a9d77
mov eax, 2
cmp word [ebx + 6], ax
jne 0x4a9d77
cmp dword [esp + 0x14], ebp
jne 0x4a9d87
cmp dword [ebx + 0x48], eax
je 0x4a9e37
cmp ebp, dword [esp + 0x14]
jne 0x4a9d87
cmp esi, dword [esp + 0x20]
je 0x4a9e37
lea edx, [esp + 0x24]
mov ecx, ebx
push edx
push esi
call fcn.0046de30
test eax, eax
je 0x4a9e37
lea ecx, [esp + 0x2c]
call fcn.004178f0
push 0x14
mov byte [esp + 0x30], 2
mov word [esp + 0x32], bp
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
mov byte [esp + 0x74], 3
je 0x4a9dcf
mov ecx, eax
call sub.MFC42.DLL_CUIntArray::CUIntArray
jmp 0x4a9dd1
xor eax, eax
mov dword [esp + 0x30], eax
mov ecx, dword [eax + 8]
push esi
push ecx
mov ecx, eax
mov byte [esp + 0x7c], 1
call sub.MFC42.DLL_CUIntArray::SetAtGrow
mov ebp, dword [edi + 0x228]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
lea esi, [edi + 0x220]
lea edx, [ebp + 1]
mov dword [esp + 0x38], ecx
push 0xffffffffffffffff
push edx
mov ecx, esi
mov dword [esp + 0x3c], eax
call fcn.00417530
mov edx, dword [esi + 4]
lea eax, [esp + 0x34]
lea ecx, [esp + 0x3c]
push eax
push ecx
lea ecx, [edx + ebp*8]
call fcn.00417900
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x4a9e33
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x4c]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x4a9d4f
lea ecx, [esp + 0x44]
mov dword [esp + 0x74], 0xffffffff
call fcn.004e26a6
mov ecx, dword [esp + 0x1c]
inc ebp
mov dword [esp + 0x10], ebp
cmp ebp, dword [ecx + 0xe8]
jl 0x4a9cc7
mov eax, dword [edi + 0x228]
xor ebx, ebx
test eax, eax
jle 0x4a9ef5
call dword [sym.imp.USER32.dll_GetCursor]
push 0xb9
push 0xc
push 0xb9
mov esi, eax
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadCursorA]
cmp esi, eax
je 0x4a9ea9
push eax
call dword [sym.imp.USER32.dll_SetCursor]
lea edx, [esp + 0x28]
lea eax, [esp + 0x18]
lea esi, [edi + 0x1fc]
push edx
push eax
mov ecx, esi
call fcn.0041db00
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a9ef5
cmp dword [edi + 0x228], 1
jle 0x4a9ef5
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
add edi, 0x220
push 0
push edi
push ecx
push edx
mov ecx, esi
call fcn.0041bc50
mov eax, 1
jmp 0x4a9ef7
mov eax, ebx
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x68
ret 8