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

Disassembly:
push 0xffffffffffffffff
push 0x4f0460
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, 1
mov eax, dword [esi + 0x214]
mov ebx, dword [esi + 0x40]
xor ebp, ebp
cmp eax, edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebp
jne 0x4a6da1
mov eax, dword [esi + 0x210]
mov ecx, dword [eax + 4]
cmp dword [ecx + 8], edi
jne 0x4a6da1
xor edx, edx
mov dx, word [eax + 2]
mov eax, dword [ebx + 0xe4]
mov eax, dword [eax + edx*4]
cmp word [eax + 4], di
jne 0x4a6da1
mov ax, word [eax + 6]
cmp ax, 3
je 0x4a6d9d
cmp ax, 0x1e
jne 0x4a6da1
mov dword [esp + 0x14], edi
cmp dword [esp + 0xa0], ebp
je 0x4a6e21
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CPtrArray::CPtrArray
mov dword [esp + 0x44], 0x4f57ac
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x4c]
mov dword [esp + 0x98], ebp
call sub.MFC42.DLL_CPtrArray::SetSize
mov eax, dword [ebx + 0xe8]
xor edi, edi
cmp eax, ebp
jle 0x4a6e00
mov ecx, dword [ebx + 0xe4]
mov edx, dword [esp + 0x4c]
mov eax, dword [ecx + edi*4]
lea ecx, [esp + 0x44]
add eax, 0x40
push eax
push edx
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov eax, dword [ebx + 0xe8]
inc edi
cmp edi, eax
jl 0x4a6dda
lea eax, [esp + 0x44]
lea ecx, [esi + 0x270]
push eax
call fcn.004c5b00
mov dword [esp + 0x90], 0xffffffff
lea ecx, [esp + 0x44]
jmp 0x4a6e96
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CPtrArray::CPtrArray
mov dword [esp + 0x44], 0x4f5798
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x4c]
mov dword [esp + 0x98], edi
call sub.MFC42.DLL_CPtrArray::SetSize
mov eax, dword [ebx + 0xe8]
xor edi, edi
cmp eax, ebp
jle 0x4a6e77
mov ecx, dword [ebx + 0xe4]
mov edx, dword [esp + 0x4c]
mov eax, dword [ecx + edi*4]
lea ecx, [esp + 0x44]
add eax, 0x54
push eax
push edx
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov eax, dword [ebx + 0xe8]
inc edi
cmp edi, eax
jl 0x4a6e51
lea eax, [esp + 0x44]
lea ecx, [esi + 0x270]
push eax
call fcn.004c5b50
mov dword [esp + 0x90], 0xffffffff
lea ecx, [esp + 0x44]
call fcn.004e281a
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
push ebp
push ebp
lea edx, [esp + 0x74]
push ebp
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
cmp eax, esi
jne 0x4a7266
mov ebx, dword [sym.imp.GDI32.dll_DPtoLP]
mov eax, dword [esp + 0x70]
cmp eax, 0x202
ja 0x4a706d
je 0x4a70a9
cmp eax, 0x100
je 0x4a707f
cmp eax, 0x200
jne 0x4a7074
push esi
lea ecx, [esp + 0x5c]
mov ebp, 1
call fcn.004e2538
mov eax, dword [esi]
lea ecx, [esp + 0x58]
push 0
push ecx
mov ecx, esi
mov dword [esp + 0x98], 3
call dword [eax + 0xe4]
mov eax, dword [esp + 0x78]
push ebp
mov edx, eax
shr edx, 0x10
movsx eax, ax
movsx ecx, dx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x20]
push eax
push ecx
call ebx
mov eax, dword [esp + 0x74]
xor ecx, ecx
and eax, 0xffff
xor edi, edi
test al, 8
mov edx, ebp
je 0x4a6f62
mov ecx, ebp
test al, 4
je 0x4a6f75
test ecx, ecx
mov edi, 1
je 0x4a6f75
xor edx, edx
xor edi, edi
xor ecx, ecx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a701d
test edi, edi
jne 0x4a701d
test ecx, ecx
je 0x4a701d
mov edx, dword [esi + 0x210]
mov eax, dword [edx]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [edx + 4]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x26]
mov ecx, dword [eax + 0xe4]
and edx, 0xffff
lea eax, [esp + 0x58]
mov ecx, dword [ecx + edx*4]
lea edx, [esp + 0x1c]
push edx
push 0x28
push eax
call fcn.00471250
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x98]
push edi
sub ecx, edx
mov edx, dword [esp + 0xa0]
sub eax, edx
lea edx, [esp + 0x5c]
push eax
push ecx
mov ecx, dword [esi + 0xba8]
push ecx
push edx
lea ecx, [esi + 0x270]
call fcn.004c5ba0
lea ecx, [esp + 0x58]
mov dword [esp + 0x90], 0xffffffff
call sub.MFC42.DLL_CClientDC::CClientDC
mov ecx, esi
call fcn.004a7420
jmp 0x4a707f
mov eax, dword [esi + 0xbc]
test eax, eax
jne 0x4a703b
mov eax, dword [esi + 0xb8]
test eax, eax
jne 0x4a703b
mov eax, dword [esi + 0xb4]
test eax, eax
je 0x4a6fcc
test edx, edx
je 0x4a6fcc
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 1
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
lea ecx, [esi + 0x234]
call fcn.00412cc0
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x20], eax
jmp 0x4a6fd4
cmp eax, 0x204
je 0x4a707f
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
lea ecx, [esp + 0x74]
push 0
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
cmp eax, esi
jne 0x4a7266
jmp 0x4a6ed3
test ebp, ebp
je 0x4a7266
push esi
lea ecx, [esp + 0x48]
call fcn.004e2538
mov edx, dword [esi]
lea eax, [esp + 0x44]
push 0
push eax
mov ecx, esi
mov dword [esp + 0x98], 2
call dword [edx + 0xe4]
mov eax, dword [esp + 0x78]
lea edx, [esp + 0x24]
mov ecx, eax
push 1
movsx eax, ax
shr ecx, 0x10
movsx ecx, cx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x50]
push edx
push eax
mov dword [esp + 0x34], ecx
call ebx
mov eax, dword [esp + 0x74]
xor ecx, ecx
and eax, 0xffff
xor edi, edi
test al, 8
mov edx, 1
je 0x4a7114
mov ecx, edx
test al, 4
je 0x4a7127
test ecx, ecx
mov edi, 1
je 0x4a7127
xor edx, edx
xor edi, edi
xor ecx, ecx
mov eax, dword [esp + 0x14]
xor ebp, ebp
cmp eax, ebp
je 0x4a7176
cmp edi, ebp
jne 0x4a7176
cmp ecx, ebp
je 0x4a7176
mov ecx, dword [esi + 0x210]
mov ebx, dword [esp + 0x10]
mov edx, dword [ecx]
mov dword [esp + 0x14], edx
mov edx, dword [ebx + 0xe4]
mov eax, dword [ecx + 4]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x16]
and ecx, 0xffff
lea eax, [esp + 0x24]
push eax
push 0x28
mov ecx, dword [edx + ecx*4]
lea edx, [esp + 0x4c]
push edx
call fcn.00471250
jmp 0x4a71bf
cmp dword [esi + 0xbc], ebp
jne 0x4a718e
cmp dword [esi + 0xb8], ebp
jne 0x4a718e
cmp dword [esi + 0xb4], ebp
je 0x4a71bb
cmp edx, ebp
je 0x4a71bb
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push 1
push eax
lea edx, [esp + 0x44]
push ecx
push edx
lea ecx, [esi + 0x234]
call fcn.00412cc0
mov ecx, dword [eax]
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x28], edx
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x9c]
push edi
push eax
mov eax, dword [esp + 0xa0]
push ecx
push edx
lea ecx, [esp + 0x3c]
push eax
lea edi, [esi + 0x270]
push ecx
mov ecx, edi
call fcn.004c5e00
mov edx, dword [esi + 0xba8]
lea eax, [esp + 0x44]
push edx
push eax
mov ecx, edi
call fcn.004bd8d0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
cmp eax, ebp
jne 0x4a720f
cmp ecx, ebp
je 0x4a7252
push ecx
push eax
push 1
lea ecx, [esi + 0x234]
call fcn.00411600
test eax, eax
je 0x4a7239
mov ecx, ebx
call fcn.00489c30
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx + 0x64]
mov ecx, esi
call fcn.004a0b80
mov eax, dword [esi + 0x20]
push 1
push ebp
push eax
mov dword [esi + 0x208], ebp
mov dword [esi + 0x204], ebp
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x44]
mov dword [esp + 0x90], 0xffffffff
call sub.MFC42.DLL_CClientDC::CClientDC
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x84
ret 0xc