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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5555bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3cc
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CString::CString_4
xor edi, edi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3e0], edi
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [ebp + 8]
mov byte [esp + 0x3e0], 1
lea ebx, [eax + eax*2]
mov eax, dword [esi + 0x20]
shl ebx, 3
add eax, ebx
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x4c]
push 0x5b4618
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esi + 0x20]
add esp, 0x18
lea edx, [ebx + ecx + 0x14]
lea ecx, [esp + 0x50]
push edx
call sub.MFC42.DLL_CString::operator
mov eax, dword [esi + 0x20]
fld qword [0x5589d8]
fsub qword [ebx + eax]
lea ecx, [ebx + eax]
fstp qword [esp + 0x24]
fld qword [ecx + 8]
fcomp qword [0x558970]
fld qword [ecx + 8]
fnstsw ax
test ah, 1
je 0x4e5a37
fadd qword [0x558970]
jmp 0x4e5a3d
fsub qword [0x558970]
fadd qword [0x558970]
fst qword [esp + 0x34]
fcomp qword [0x558948]
fnstsw ax
test ah, 0x41
jne 0x4e5a62
fld qword [esp + 0x34]
fsub qword [0x558948]
fstp qword [esp + 0x34]
fld qword [esp + 0x34]
fadd qword [0x5589d8]
mov dword [esp + 0x30], edi
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 0
mov dword [esp + 0x98], 0
fmul qword [0x55fb78]
mov dword [esp + 0x9c], 0
lea edi, [esp + 0x104]
fst qword [esp + 0x64]
fcos
fstp qword [esp + 0xb8]
fld qword [esp + 0x34]
fadd qword [0x558970]
fmul qword [0x55fb78]
fstp qword [esp + 0x1c]
fld qword [esp + 0x24]
fmul qword [0x55fb78]
fst qword [esp + 0x54]
fsin
fld qword [esp + 0x1c]
fcos
fmul st(1)
fstp qword [esp + 0xc0]
fld qword [esp + 0x34]
fmul qword [0x55fb78]
fstp qword [esp + 0x5c]
fld qword [esp + 0x54]
fcos
fld qword [esp + 0x5c]
fcos
fmul st(1)
fstp qword [esp + 0xc8]
fld qword [esp + 0x64]
fsin
fstp qword [esp + 0xd0]
fld qword [esp + 0x1c]
fsin
fmul st(2)
fstp qword [esp + 0xd8]
fld qword [esp + 0x5c]
fsin
fmul st(1)
fstp qword [esp + 0xe0]
fstp qword [esp + 0xf0]
fstp qword [esp + 0xf8]
fild dword [esp + 0x30]
lea eax, [esp + 0xb8]
lea ecx, [esp + 0xa0]
mov dword [esp + 0x40], 3
fmul qword [0x55fb78]
fld st(0)
fcos
fstp qword [esp + 0x88]
fsin
fstp qword [esp + 0x90]
mov dword [ecx], 0
mov dword [ecx + 4], 0
fld qword [ecx]
lea edx, [esp + 0x88]
mov ebx, 3
fld qword [eax]
fmul qword [edx]
add eax, 8
add edx, 8
dec ebx
faddp st(1)
jne 0x4e5b94
fstp qword [ecx]
mov edx, dword [esp + 0x40]
add ecx, 8
dec edx
mov dword [esp + 0x40], edx
jne 0x4e5b79
fld qword [esp + 0xb0]
call sub.MSVCRT.dll__CIasin
fst qword [esp + 0x44]
fmul qword [0x558a30]
fcomp qword [0x5589d8]
fnstsw ax
test ah, 0x40
jne 0x4e5c0d
fld qword [esp + 0xa8]
fld qword [esp + 0xa0]
fpatan
fst qword [esp + 0x1c]
fmul qword [0x558a30]
fcomp qword [0x558970]
fnstsw ax
test ah, 1
je 0x4e5c1d
fld qword [esp + 0x1c]
fadd qword [0x55fbb0]
fstp qword [esp + 0x1c]
jmp 0x4e5c1d
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
fld qword [esp + 0x24]
fmul qword [0x558a30]
fcomp qword [0x558680]
fnstsw ax
test ah, 1
je 0x4e5c67
fld qword [esp + 0x44]
fchs
fstp qword [esp + 0x44]
fld qword [esp + 0x1c]
fadd qword [0x55fbb0]
fst qword [esp + 0x1c]
fcomp qword [0x55fba8]
fnstsw ax
test ah, 0x41
jne 0x4e5c67
fld qword [esp + 0x1c]
fsub qword [0x55fba8]
fstp qword [esp + 0x1c]
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
mov ecx, esi
call fcn.004e58f0
mov eax, dword [esp + 0xc]
mov ebx, dword [esi + 0x44]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x48]
add eax, ebx
add ecx, edx
mov dword [esp + 0xc], eax
mov dword [edi - 4], eax
mov eax, dword [esp + 0x30]
mov dword [edi], ecx
add eax, 2
add edi, 8
cmp eax, 0xb4
mov dword [esp + 0x10], ecx
mov dword [esp + 0x30], eax
jle 0x4e5b45
mov ebx, dword [ebp + 0xc]
lea ecx, [esp + 0x6c]
push ebx
push 0
push 0
call sub.MFC42.DLL_CPen::CPen
mov edi, dword [ebp + 0x10]
lea ecx, [esp + 0x6c]
push ecx
mov ecx, edi
mov byte [esp + 0x3e4], 2
call sub.MFC42.DLL_CDC::SelectObject
mov edx, dword [edi]
mov dword [esp + 0x1c], eax
lea eax, [esi + 0x38]
mov ecx, edi
push eax
call dword [edx + 0x30]
mov edx, dword [edi]
push ebx
mov ecx, edi
mov dword [esp + 0x48], eax
call dword [edx + 0x38]
mov dword [esp + 0x74], eax
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextAlign]
push 1
mov ecx, edi
mov dword [esp + 0x34], eax
call sub.MFC42.DLL_CDC::SetBkMode
mov edx, dword [edi + 4]
lea ecx, [esp + 0x100]
push 0x5b
push ecx
push edx
mov dword [esp + 0x4c], eax
call dword [sym.imp.GDI32.dll_Polyline]
fld qword [0x5589d8]
fsub qword [esp + 0x24]
mov ebx, dword [esp + 0x60]
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
fmul qword [0x55fb78]
push ecx
mov ecx, dword [esp + 0x64]
fstp qword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x5c]
push edx
push eax
push ebx
push ecx
mov ecx, esi
call fcn.004e58f0
mov edx, dword [esi + 0x44]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
add eax, edx
fld qword [0x55fba0]
fsub qword [esp + 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x48]
add ecx, eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
fmul qword [0x55fb78]
push edx
mov ecx, esi
sub esp, 8
fstp qword [esp]
push ebx
push eax
call fcn.004e58f0
mov ecx, dword [esi + 0x44]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add edx, ecx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x18], edx
mov edx, dword [esi + 0x48]
add eax, edx
lea edx, [esp + 0x24]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
push eax
push ecx
push edx
mov ecx, edi
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x68]
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
mov edx, dword [esp + 0x68]
push eax
push 0
push 0
push ecx
push edx
mov ecx, esi
call fcn.004e58f0
mov eax, dword [esi + 0x44]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
add ecx, eax
mov dword [esp + 0xc], ecx
mov ecx, dword [esi + 0x48]
add edx, ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x10], edx
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x68]
push eax
push 0x3fb1df46
push 0xa256be5d
push ecx
push edx
mov ecx, esi
call fcn.004e58f0
mov eax, dword [esi + 0x44]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
add ecx, eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0x48]
add edx, ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x10]
push edx
push eax
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push edx
push eax
mov ecx, edi
call sub.MFC42.DLL_CDC::LineTo
fld qword [esp + 0x34]
fsub qword [0x5589d8]
fmul qword [0x55fb78]
fstp qword [esp + 0x24]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push 0
push 0
push eax
push ecx
mov ecx, esi
call fcn.004e58f0
mov edx, dword [esi + 0x44]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
add eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x48]
add ecx, eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push 0x3fb1df46
push 0xa256be5d
push eax
push ecx
mov ecx, esi
call fcn.004e58f0
mov edx, dword [esi + 0x44]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add eax, edx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x48]
add ecx, eax
lea eax, [esp + 0x24]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push eax
mov ecx, edi
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push ecx
push edx
mov ecx, edi
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x64]
push edx
push eax
push ebx
push ecx
mov ecx, esi
call fcn.004e58f0
mov edx, dword [esi + 0x44]
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x48]
add ebx, eax
mov dword [esp + 0x10], ebx
xor ebx, ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov eax, dword [esp + 0x3c]
mov edx, dword [edi]
lea esi, [esp + 0x78]
push 0x420
mov ecx, dword [eax - 8]
push esi
push ecx
push eax
mov ecx, edi
call dword [edx + 0x70]
fld qword [esp + 0x34]
fcomp qword [0x5589d8]
mov esi, dword [esp + 0x84]
mov eax, dword [esp + 0x7c]
sub esi, eax
fnstsw ax
test ah, 1
je 0x4e5fdc
push 8
jmp 0x4e6007
fld qword [esp + 0x34]
fcomp qword [0x558970]
fnstsw ax
test ah, 1
je 0x4e5ff0
push ebx
jmp 0x4e6007
fld qword [esp + 0x34]
fcomp qword [0x55f4a0]
fnstsw ax
test ah, 1
je 0x4e6005
push 2
jmp 0x4e6007
push 0xa
mov ecx, edi
call sub.MFC42.DLL_CDC::SetTextAlign
mov eax, dword [esp + 0x50]
mov edx, dword [edi]
mov ecx, dword [eax - 8]
push ecx
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push eax
push ecx
mov ecx, edi
call dword [edx + 0x64]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
lea eax, [esi + edx]
mov edx, dword [ecx - 8]
mov esi, dword [edi]
push edx
push ecx
push eax
mov eax, dword [esp + 0x18]
mov ecx, edi
push eax
call dword [esi + 0x64]
mov ecx, dword [esp + 0x40]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::SetBkMode
mov edx, dword [esp + 0x30]
mov ecx, edi
push edx
call sub.MFC42.DLL_CDC::SetTextAlign
mov ecx, dword [esp + 0x74]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x38]
mov eax, dword [esp + 0x44]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x30]
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::SelectObject
mov dword [esp + 0x6c], 0x558628
lea ecx, [esp + 0x6c]
mov byte [esp + 0x3e0], 3
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x3c]
mov dword [esp + 0x6c], 0x558614
mov byte [esp + 0x3e0], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov dword [esp + 0x3e0], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x3d8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc