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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56ac2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push esi
push edi
mov ebx, ecx
mov eax, dword [ebx - 0x158]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + ebx - 0x158]
push 0
push 0x5c81b4
push 0x5c61c0
lea ecx, [ecx + ebx - 0x158]
push 0
push 0x5c81b4
mov dword [esp + 0x24], ebx
mov dword [esp + 0x38], 0
call dword [edx + 4]
push eax
call sub.MSVCR71.dll___RTDynamicCast
lea ecx, [eax + 0x16]
mov dx, word [ecx]
mov cl, byte [ecx + 2]
mov byte [esp + 0x2a], cl
mov cl, dl
add esp, 0x14
test cl, cl
mov word [esp + 0x14], dx
jne 0x4aee0c
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
push edx
lea ecx, [ebx - 0x14c]
call fcn.00495640
test byte [ebp + 8], 1
je 0x4af8c9
push 0x68d45c
lea eax, [esp + 0x74]
push eax
lea ecx, [ebx - 0x15c]
call fcn.004ade10
mov ecx, dword [0x68cf08]
push ecx
mov ecx, esi
call sub.MFC71.DLL_CDC::SelectObject_1
push 0xa
mov ecx, esi
mov edi, eax
call sub.MFC71.DLL_CDC::SetROP2
mov edx, dword [esi + 4]
push edx
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_BeginPath]
mov ecx, dword [0x68d46c]
mov eax, dword [0x68d464]
mov edx, ecx
mov ebx, dword [edx]
mov dword [ecx + eax*8], ebx
mov ecx, dword [0x68d46c]
mov dword [esp + 0x24], eax
mov eax, dword [edx + 4]
mov edx, dword [0x68d464]
mov dword [ecx + edx*8 + 4], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [0x68d46c]
mov edx, dword [esi + 4]
inc eax
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_Polyline]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_EndPath]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.GDI32.dll_StrokePath]
mov edx, dword [esp + 0x20]
push edx
mov ecx, esi
call sub.MFC71.DLL_CDC::SetROP2
push edi
mov ecx, esi
call sub.MFC71.DLL_CDC::SelectObject_1
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea esi, [eax + 0x20]
mov ecx, 0xe
lea edi, [esp + 0xd8]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
test cl, 1
je 0x4af844
lea eax, [ebx - 0x15c]
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.004afab0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
mov edx, dword [ebx]
push 1
mov ecx, ebx
mov dword [esp + 0x98], eax
call dword [edx + 0x3c]
mov edx, dword [ebx]
xor ecx, ecx
push ecx
xor eax, eax
push eax
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call dword [edx + 0x40]
xor ecx, ecx
push ecx
xor eax, eax
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
call sub.MFC71.DLL_CDC::SetWindowOrg
push 0xa
mov ecx, ebx
call sub.MFC71.DLL_CDC::SetROP2
mov edx, dword [ebx]
push 8
mov ecx, ebx
call dword [edx + 0x2c]
mov eax, dword [ebx]
push 4
mov ecx, ebx
call dword [eax + 0x2c]
mov esi, 0x68cba0
mov dword [esp + 0x20], 0x68c8c0
jmp 0x4aeea0
fld qword [esi + 8]
sub esp, 8
fadd qword [0x594dc8]
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
call fcn.00549400
fld qword [esi]
fadd qword [0x594dc8]
mov edi, eax
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
call fcn.00549400
fld qword [esi + 8]
fadd qword [0x594dc8]
mov dword [esp + 0x58], eax
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
call fcn.00549400
fld qword [esi]
fadd qword [0x594dc8]
mov dword [esp + 0x1c], eax
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
add esp, 8
call fcn.00549400
mov ecx, dword [esp + 0x14]
push 4
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x54]
push 4
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edi
call dword [sym.imp.USER32.dll_InflateRect]
lea edi, [esp + 0x70]
mov eax, 0x68d424
call fcn.00493030
mov eax, dword [esp + 0x20]
fld qword [eax]
mov edx, dword [esp + 0x24]
fld st(0)
mov eax, dword [0x68d42c]
fsin
or edx, 1
test eax, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], 0
fstp qword [esp + 0x28]
fcos
fstp qword [esp + 0x60]
fld qword [esp + 0x28]
fchs
fstp qword [esp + 0xa8]
fld qword [0x594cd8]
fsub qword [esp + 0x60]
fld qword [esp + 0x28]
fmul qword [esi + 8]
fld st(1)
fmul qword [esi]
faddp st(1)
fstp qword [esp + 0xb0]
fmul qword [esi + 8]
fld qword [esp + 0x28]
fmul qword [esi]
fsubp st(1)
fstp qword [esp + 0xc8]
jle 0x4af059
jmp 0x4aefc0
mov ecx, dword [0x68d434]
mov edx, dword [esp + 0x14]
fild dword [ecx + edx*8]
lea edi, [ecx + edx*8]
fild dword [edi + 4]
sub esp, 8
fld st(1)
fmul qword [esp + 0x68]
fld st(1)
fmul qword [esp + 0xb0]
faddp st(1)
fadd qword [esp + 0xb8]
fstp qword [esp + 0x20]
fxch st(1)
fmul qword [esp + 0x30]
fxch st(1)
fmul qword [esp + 0x68]
faddp st(1)
fadd qword [esp + 0xd0]
fadd qword [0x594dc8]
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
call fcn.00549400
fld qword [esp + 0x20]
fadd qword [0x594dc8]
mov dword [esp + 0x44], eax
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
add esp, 8
call fcn.00549400
mov ecx, dword [esp + 0x14]
mov dword [edi], eax
mov eax, dword [esp + 0x3c]
mov dword [edi + 4], eax
mov eax, dword [0x68d42c]
inc ecx
cmp ecx, eax
mov dword [esp + 0x14], ecx
jl 0x4aefc0
mov ecx, dword [0x68d434]
mov edx, ecx
mov edi, dword [edx]
mov dword [ecx + eax*8], edi
mov eax, dword [edx + 4]
mov ecx, dword [0x68d434]
mov edx, dword [0x68d42c]
mov dword [ecx + edx*8 + 4], eax
mov eax, dword [0x68d434]
mov ecx, dword [ebx + 4]
push 5
push eax
push ecx
call dword [sym.imp.GDI32.dll_Polygon]
mov eax, dword [esp + 0x20]
add eax, 8
add esi, 0x10
cmp eax, 0x68c8f8
mov dword [esp + 0x20], eax
jl 0x4aeea0
mov edx, dword [esp + 0x10]
cmp dword [edx - 0xac], 1
jbe 0x4af3d2
fld qword [0x68cc18]
sub esp, 8
fadd qword [0x594dc8]
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
call fcn.00549400
fld qword [0x68cc10]
fadd qword [0x594dc8]
mov esi, eax
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
call fcn.00549400
fld qword [0x68cc18]
fadd qword [0x594dc8]
mov edi, eax
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
call fcn.00549400
fld qword [0x68cc10]
fadd qword [0x594dc8]
mov dword [esp + 0x18], eax
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
add esp, 8
call fcn.00549400
mov ecx, dword [esp + 0x10]
push 5
mov dword [esp + 0x74], eax
push 4
lea eax, [esp + 0x78]
push eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], esi
call dword [sym.imp.USER32.dll_InflateRect]
xor ecx, ecx
push ecx
mov eax, 3
push eax
lea ecx, [esp + 0x78]
push ecx
xor esi, esi
call dword [sym.imp.USER32.dll_OffsetRect]
lea edi, [esp + 0x70]
mov eax, 0x68d424
call fcn.00493030
mov eax, dword [0x68d434]
add dword [eax + 0xc], 5
mov eax, dword [0x68d434]
mov edx, eax
mov ecx, dword [edx + 0x18]
mov dword [eax + 0x10], ecx
mov edx, dword [edx + 0x1c]
mov eax, dword [0x68d434]
mov dword [eax + 0x14], edx
mov eax, dword [0x68d434]
mov ecx, eax
mov edx, dword [ecx]
mov dword [eax + 0x18], edx
mov eax, dword [ecx + 4]
mov ecx, dword [0x68d434]
mov dword [ecx + 0x1c], eax
mov eax, dword [0x68d434]
fild dword [eax]
lea edx, [esp + 0x98]
mov dword [esp + 0x98], 0x582aec
mov dword [esp + 0xd4], vtable.CMatrix_double_.0
fstp qword [esp + 0x28]
mov dword [esp + 0xd0], esi
fild dword [eax + 4]
fstp qword [esp + 0x30]
call fcn.00438c70
mov dword [esp + 0x11c], esi
fld qword [0x68c8f8]
fadd qword [0x595048]
sub esp, 8
mov edi, 0x68cc10
fstp qword [esp]
lea esi, [esp + 0xa0]
call fcn.00496130
mov eax, dword [0x68d42c]
xor edi, edi
test eax, eax
jle 0x4af24f
jmp 0x4af230
mov edx, dword [0x68d434]
lea esi, [edx + edi*8]
lea eax, [esp + 0x98]
call fcn.0049b410
mov eax, dword [0x68d42c]
inc edi
cmp edi, eax
jl 0x4af230
mov ecx, dword [0x68d434]
mov edx, ecx
mov esi, dword [edx]
mov dword [ecx + eax*8], esi
mov eax, dword [edx + 4]
mov ecx, dword [0x68d434]
mov edx, dword [0x68d42c]
mov dword [ecx + edx*8 + 4], eax
mov eax, dword [0x68d434]
mov ecx, dword [ebx + 4]
push 4
push eax
push ecx
call dword [sym.imp.GDI32.dll_Polygon]
mov edx, dword [ebx]
push 7
mov ecx, ebx
call dword [edx + 0x2c]
fld qword [esp + 0x28]
fsub qword [0x57cd70]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x68], edx
sub esp, 8
fstp qword [esp + 0x30]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x74], eax
fld qword [esp + 0x70]
fadd qword [0x594f60]
mov ecx, dword [esp + 0x34]
fld qword [esp + 0xb0]
mov dword [esp + 0x6c], ecx
fmul qword [esp + 0x38]
fld qword [esp + 0xa8]
fmul qword [esp + 0x30]
faddp st(1)
fadd qword [esp + 0xb8]
fstp qword [esp + 0x58]
fld qword [esp + 0xc8]
fmul qword [esp + 0x38]
fld qword [esp + 0xc0]
fmul qword [esp + 0x30]
faddp st(1)
fadd qword [esp + 0xd0]
fstp qword [esp + 0x38]
fld qword [esp + 0xb0]
fmul st(1)
fld qword [esp + 0xa8]
fmul qword [esp + 0x68]
faddp st(1)
fadd qword [esp + 0xb8]
fstp qword [esp + 0x20]
fmul qword [esp + 0xc8]
fld qword [esp + 0xc0]
fmul qword [esp + 0x68]
faddp st(1)
fadd qword [esp + 0xd0]
fadd qword [0x594dc8]
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
call fcn.00549400
fld qword [esp + 0x20]
fadd qword [0x594dc8]
mov esi, eax
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
add esp, 8
call fcn.00549400
push esi
push eax
lea ecx, [esp + 0x68]
push ecx
mov ecx, ebx
call sub.MFC71.DLL_CDC::MoveTo
fld qword [esp + 0x30]
fadd qword [0x594dc8]
sub esp, 8
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
call fcn.00549400
fld qword [esp + 0x58]
mov esi, eax
fadd qword [0x594dc8]
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
add esp, 8
call fcn.00549400
push esi
push eax
mov ecx, ebx
call sub.MFC71.DLL_CDC::LineTo
mov dword [esp + 0x11c], 0xffffffff
fld qword [0x68cc28]
sub esp, 8
fadd qword [0x594dc8]
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
call fcn.00549400
fld qword [0x68cc20]
fadd qword [0x594dc8]
mov esi, eax
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
call fcn.00549400
fld qword [0x68cc28]
fadd qword [0x594dc8]
mov edi, eax
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
call fcn.00549400
fld qword [0x68cc20]
fadd qword [0x594dc8]
mov dword [esp + 0x18], eax
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
add esp, 8
call fcn.00549400
mov ecx, dword [esp + 0x10]
push 4
push 4
lea edx, [esp + 0x48]
push edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], esi
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [0x68cf14]
push eax
mov ecx, ebx
call sub.MFC71.DLL_CDC::SelectObject_1
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
push ecx
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
call sub.MFC71.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
push ecx
push eax
mov ecx, ebx
call sub.MFC71.DLL_CDC::LineTo
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x40]
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
call sub.MFC71.DLL_CDC::MoveTo
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
push edx
push eax
mov ecx, ebx
call sub.MFC71.DLL_CDC::LineTo
mov ecx, dword [0x68cf08]
push ecx
mov ecx, ebx
call sub.MFC71.DLL_CDC::SelectObject_1
fld qword [0x68cc60]
fsub qword [0x68cc70]
fld qword [0x68cc68]
fsub qword [0x68cc78]
fld st(1)
fmulp st(2)
fld st(0)
fmul st(1)
faddp st(2)
fxch st(1)
fsqrt
fstp st(1)
fld qword [0x68cc30]
fsub qword [0x68cc70]
fld qword [0x68cc38]
fsub qword [0x68cc78]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fstp st(2)
fstp st(0)
fld qword [0x68cc70]
fsub st(1)
call fcn.00549400
fld qword [0x68cc78]
fsub st(1)
mov esi, eax
call fcn.00549400
fld qword [0x68cc70]
fadd st(1)
mov edi, eax
call fcn.00549400
fadd qword [0x68cc78]
mov dword [esp + 0x78], eax
call fcn.00549400
fld qword [0x68cc70]
fsub st(1)
mov dword [esp + 0x7c], eax
call fcn.00549400
fld qword [0x68cc78]
fsub st(1)
mov dword [esp + 0x50], eax
call fcn.00549400
fld qword [0x68cc70]
fadd st(1)
mov dword [esp + 0x54], eax
call fcn.00549400
fadd qword [0x68cc78]
mov dword [esp + 0x58], eax
call fcn.00549400
fld qword [0x68cc38]
fadd qword [0x594dc8]
sub esp, 8
mov dword [esp + 0x64], eax
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
call fcn.00549400
fld qword [0x68cc30]
fadd qword [0x594dc8]
mov dword [esp + 0x18], eax
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
call fcn.00549400
fld qword [0x68cc48]
fadd qword [0x594dc8]
mov dword [esp + 0x20], eax
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
call fcn.00549400
fld qword [0x68cc40]
fadd qword [0x594dc8]
mov dword [esp + 0x44], eax
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
add esp, 8
call fcn.00549400
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0x88]
push edx
push eax
mov edx, dword [ebx + 4]
push ecx
push edi
push esi
mov esi, dword [sym.imp.GDI32.dll_Arc]
push edx
call esi
fld qword [0x68cc68]
fadd qword [0x594dc8]
sub esp, 8
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
call fcn.00549400
fld qword [0x68cc60]
fadd qword [0x594dc8]
mov edi, eax
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
call fcn.00549400
fld qword [0x68cc58]
fadd qword [0x594dc8]
mov dword [esp + 0x20], eax
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
call fcn.00549400
fld qword [0x68cc50]
fadd qword [0x594dc8]
mov dword [esp + 0x18], eax
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
add esp, 8
call fcn.00549400
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push edi
push ecx
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x64]
push ecx
mov ecx, dword [ebx + 4]
push edx
push eax
push ecx
call esi
fld qword [0x68cc48]
fadd qword [0x594dc8]
sub esp, 8
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
call fcn.00549400
fld qword [0x68cc40]
fadd qword [0x594dc8]
mov esi, eax
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
add esp, 8
call fcn.00549400
push esi
push eax
lea edx, [esp + 0x20]
push edx
mov ecx, ebx
call sub.MFC71.DLL_CDC::MoveTo
fld qword [0x68cc58]
fadd qword [0x594dc8]
sub esp, 8
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
call fcn.00549400
fld qword [0x68cc50]
fadd qword [0x594dc8]
mov esi, eax
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
add esp, 8
call fcn.00549400
push esi
push eax
mov ecx, ebx
call sub.MFC71.DLL_CDC::LineTo
fld qword [0x68cc38]
fadd qword [0x594dc8]
sub esp, 8
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
call fcn.00549400
fld qword [0x68cc30]
fadd qword [0x594dc8]
mov esi, eax
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
add esp, 8
call fcn.00549400
push esi
push eax
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call sub.MFC71.DLL_CDC::MoveTo
fld qword [0x68cc68]
fadd qword [0x594dc8]
sub esp, 8
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
call fcn.00549400
fld qword [0x68cc60]
fadd qword [0x594dc8]
mov esi, eax
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
add esp, 8
call fcn.00549400
push esi
push eax
mov ecx, ebx
call sub.MFC71.DLL_CDC::LineTo
mov eax, dword [esp + 0x94]
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 0x28]
lea eax, [esp + 0xd8]
mov esi, ebx
call fcn.004af8e0
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x68ca94]
cmp eax, 1
je 0x4af896
cmp eax, 4
je 0x4af896
cmp eax, 2
je 0x4af85d
cmp eax, 3
jne 0x4af8c9
mov al, byte [0x68ca6c]
test al, al
je 0x4af8c9
mov al, byte [0x68ca60]
test al, al
je 0x4af8c9
mov edx, dword [ebp + 0xc]
push edx
push ecx
lea ecx, [ebx - 0x14c]
call fcn.004935d0
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0xd8]
call fcn.004af8e0
mov al, byte [0x68ca60]
test al, al
je 0x4af8c9
mov eax, dword [ebx - 0x158]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + ebx - 0x158]
lea ecx, [ecx + ebx - 0x158]
push esi
call dword [edx + 0xc]
mov ecx, dword [esp + 0x114]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8