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

Disassembly:
push 0xffffffffffffffff
push 0x4f0941
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x210]
mov edx, dword [esi + 0x40]
mov dword [esp + 0x34], edx
mov eax, dword [ecx]
cmp al, 2
mov dword [esp + 0x10], eax
mov ecx, dword [ecx + 4]
mov dword [esp + 0x14], ecx
jne 0x4a9701
mov eax, dword [esp + 0x12]
mov edx, dword [edx + 0xe4]
and eax, 0xffff
mov ebx, dword [edx + eax*4]
mov eax, dword [ecx + 4]
lea ecx, [esp + 0x38]
mov ebp, dword [eax]
push ecx
push ebp
mov ecx, ebx
call fcn.0046df50
test eax, eax
je 0x4a9bbe
push esi
lea ecx, [esp + 0x24]
mov byte [esi + 0x14c], 0x18
call fcn.004e2538
mov edx, dword [esi]
lea eax, [esp + 0x20]
push 0
push eax
mov ecx, esi
mov dword [esp + 0xd4], 0
call dword [edx + 0xe4]
mov ecx, dword [esi + 0xba8]
lea edi, [esi + 0x798]
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, edi
call fcn.004bd8d0
mov eax, dword [esi + 0xba8]
push 1
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, edi
call fcn.004bde70
lea edx, [esp + 0x80]
push ebp
push edx
lea ecx, [ebx + 0x40]
call fcn.00416560
test eax, eax
je 0x4a96a4
add eax, 4
jmp 0x4a96a6
xor eax, eax
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov edx, dword [eax + 4]
lea ecx, [esp + 0x80]
mov dword [esp + 0x14], edx
call fcn.004ba050
lea eax, [esp + 0x10]
push eax
call fcn.00434610
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0xba8]
add esp, 4
push 0
push 0
push ecx
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
mov ecx, edi
call fcn.004bf5e0
mov dword [esp + 0xcc], 0xffffffff
lea ecx, [esp + 0x20]
jmp 0x4a9802
cmp al, 3
jne 0x4a980b
mov eax, dword [esp + 0x12]
mov edx, dword [edx + 0xe4]
and eax, 0xffff
mov ebp, dword [edx + eax*4]
mov eax, dword [ecx + 4]
lea ecx, [esp + 0x38]
mov ebx, dword [eax]
push ecx
push ebx
mov ecx, ebp
call fcn.0046e030
test eax, eax
je 0x4a9bbe
push esi
lea ecx, [esp + 0x24]
mov byte [esi + 0x14c], 0x19
call fcn.004e2538
mov edx, dword [esi]
lea eax, [esp + 0x20]
push 0
push eax
mov ecx, esi
mov dword [esp + 0xd4], 1
call dword [edx + 0xe4]
mov ecx, dword [esi + 0xba8]
lea edi, [esi + 0x798]
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, edi
call fcn.004bd8d0
mov eax, dword [esi + 0xba8]
push 1
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, edi
call fcn.004bde70
lea edx, [esp + 0x94]
push ebx
push edx
lea ecx, [ebp + 0x54]
call fcn.0040b280
test eax, eax
je 0x4a97aa
add eax, 4
jmp 0x4a97ac
xor eax, eax
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov edx, dword [eax + 4]
lea ecx, [esp + 0x94]
mov dword [esp + 0x14], edx
call fcn.00456e80
lea eax, [esp + 0x10]
push eax
call fcn.00434610
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0xba8]
add esp, 4
push 0
push 0
push ecx
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
mov ecx, edi
call fcn.004bf5e0
mov dword [esp + 0xcc], 0xffffffff
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CClientDC::CClientDC
mov edx, dword [esp + 0x34]
push 0
push 0
push 0
mov ecx, edx
call sub.MFC42.DLL_CDocument::UpdateAllViews
mov edx, dword [esi + 0x20]
push edx
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
xor ebp, ebp
lea eax, [esp + 0x3c]
push ebp
push ebp
push ebp
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
mov eax, dword [esp + 0x40]
cmp eax, 0x12
je 0x4a9b17
mov ebx, dword [sym.imp.GDI32.dll_DPtoLP]
test ebp, ebp
jne 0x4a987a
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
cmp eax, esi
je 0x4a9876
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetFocus
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov eax, dword [esp + 0x40]
xor edi, edi
cmp eax, 0x201
ja 0x4a9a42
je 0x4a9a3b
sub eax, 0x100
je 0x4a99b7
sub eax, 0x11
je 0x4a9961
sub eax, 0xef
jne 0x4a9a52
lea ecx, [esi + 0x184]
call fcn.004d8630
push esi
lea ecx, [esp + 0x24]
call fcn.004e2538
mov edx, dword [esi]
lea eax, [esp + 0x20]
push edi
push eax
mov ecx, esi
mov dword [esp + 0xd4], 2
call dword [edx + 0xe4]
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x18]
mov ecx, eax
push 1
movsx eax, ax
shr ecx, 0x10
movsx ecx, cx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x28], ecx
call ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0xcc], 0xffffffff
call sub.MFC42.DLL_CClientDC::CClientDC
mov al, byte [esi + 0x14c]
cmp al, 0x18
jne 0x4a993e
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
mov ecx, esi
call fcn.004a9bf0
mov ecx, esi
mov ebp, eax
call fcn.004a7420
jmp case.default.0x4a99cc
cmp al, 0x19
jne 0x4a9955
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.004aa0d0
mov ebp, eax
mov ecx, esi
call fcn.004a7420
jmp case.default.0x4a99cc
mov edx, dword [esi + 0x224]
mov eax, dword [esp + 0x44]
lea ecx, [edx + eax*8 - 0x40308]
xor eax, eax
mov ax, word [ecx + 2]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + 4]
mov ecx, dword [edx]
push ecx
push eax
lea ecx, [esi + 0x234]
call fcn.00412820
test eax, eax
je 0x4a99b0
mov edi, dword [esi + 0x40]
mov ecx, edi
call fcn.00489c30
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 0x64]
mov ecx, esi
call fcn.004a0b80
mov edi, 1
xor ebp, ebp
jmp 0x4a9af5
mov eax, dword [esp + 0x44]
and eax, 0xffff
add eax, 0xffffffdb
cmp eax, 3
ja case.default.0x4a99cc
jmp dword [eax*4 + 0x4a9bdc]
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0x70]
push eax
push 0
push 0
mov ecx, esi
call fcn.0049d3a0
jmp case.default.0x4a99cc
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x70]
push eax
push 0
push 0
mov ecx, esi
call fcn.004a0670
jmp case.default.0x4a99cc
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0x70]
push eax
push 0
push 1
mov ecx, esi
call fcn.0049d3a0
jmp case.default.0x4a99cc
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x70]
push eax
push 0
push 1
mov ecx, esi
call fcn.004a0670
jmp case.default.0x4a99cc
xor ebp, ebp
jmp case.default.0x4a99cc
sub eax, 0x202
je 0x4a9a62
sub eax, 2
je 0x4a9b29
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp case.default.0x4a99cc
push esi
lea ecx, [esp + 0x70]
call fcn.004e2538
mov edx, dword [esi]
lea eax, [esp + 0x6c]
push 0
push eax
mov ecx, esi
mov dword [esp + 0xd4], 3
call dword [edx + 0xe4]
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x18]
mov ecx, eax
push 1
movsx eax, ax
shr ecx, 0x10
movsx ecx, cx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x78]
push edx
push eax
mov dword [esp + 0x28], ecx
call ebx
lea ecx, [esp + 0x6c]
mov dword [esp + 0xcc], 0xffffffff
call sub.MFC42.DLL_CClientDC::CClientDC
mov al, byte [esi + 0x14c]
cmp al, 0x18
jne 0x4a9ade
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
mov ecx, esi
call fcn.004a9f10
jmp 0x4a9af3
cmp al, 0x19
jne case.default.0x4a99cc
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.004aa3e0
mov edi, eax
test edi, edi
jne 0x4a9b29
push 0
push 0
lea edx, [esp + 0x44]
push 0
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
mov eax, dword [esp + 0x40]
cmp eax, 0x12
jne 0x4a984b
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor eax, eax
jmp 0x4a9bc3
call dword [sym.imp.USER32.dll_ReleaseCapture]
lea ecx, [esi + 0x1fc]
call fcn.00417b70
push esi
lea ecx, [esp + 0x5c]
call fcn.004e2538
mov edx, dword [esi]
lea eax, [esp + 0x58]
push 0
push eax
mov ecx, esi
mov dword [esp + 0xd4], 4
call dword [edx + 0xe4]
mov ecx, dword [esi + 0xba8]
lea edx, [esp + 0x58]
push ecx
push edx
lea ecx, [esi + 0x798]
call fcn.004bd8d0
mov al, byte [esi + 0x14c]
cmp al, 0x18
jne 0x4a9b8f
mov byte [esi + 0x14c], 2
push 0x801a
jmp 0x4a9b9f
cmp al, 0x19
jne 0x4a9baa
mov byte [esi + 0x14c], 3
push 0x801b
lea ecx, [esi + 0x184]
call fcn.004d5a30
lea ecx, [esp + 0x58]
mov dword [esp + 0xcc], 0xffffffff
call sub.MFC42.DLL_CClientDC::CClientDC
mov eax, 1
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc0
ret