Function at 0x498dc0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x500b30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 0xff
push 0
push 0
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CPen::CPen
push 0xff0000
push 0
push 0
lea ecx, [esp + 0x38]
mov dword [esp + 0x78], 0
call sub.MFC42.DLL_CPen::CPen
push 0xff00
push 0
push 0
lea ecx, [esp + 0x30]
mov byte [esp + 0x78], 1
call sub.MFC42.DLL_CPen::CPen
mov esi, dword [esp + 0x74]
push 8
mov ecx, esi
mov byte [esp + 0x70], 2
mov eax, dword [esi]
call dword [eax + 0x3c]
fld dword [edi + 0x60]
fmul dword [0x511ab8]
mov dword [esp + 0x20], eax
push 0
call sub.MSVCRT.dll__ftol
lea ecx, [esp + 0x58]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::SetWindowOrg
mov ebx, dword [0x53b9c8]
mov edx, dword [eax]
mov ebp, dword [esi]
mov dword [esp + 0x3c], edx
fld dword [ebx + 0x78]
mov eax, dword [eax + 4]
fchs
mov dword [esp + 0x40], eax
call sub.MSVCRT.dll__ftol
fld dword [ebx + 0x7c]
push eax
call sub.MSVCRT.dll__ftol
lea ecx, [esp + 0x58]
push eax
push ecx
mov ecx, esi
call dword [ebp + 0x50]
mov edx, dword [eax]
mov ebx, dword [esp + 0x78]
mov ecx, dword [edi + 0x68]
mov dword [esp + 0x44], edx
mov eax, dword [eax + 4]
mov ebp, dword [ebx + 0xc]
mov dword [esp + 0x48], eax
mov eax, dword [edi + 0x74]
mov edx, dword [esi]
add eax, ebp
push eax
mov eax, dword [ebx]
add ecx, eax
lea eax, [esp + 0x58]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x40]
mov ecx, dword [eax]
mov dword [esp + 0x4c], ecx
mov ecx, dword [ebx + 8]
mov edx, dword [eax + 4]
mov dword [esp + 0x50], edx
mov eax, dword [edi + 0x6c]
mov ebp, dword [ebx]
shl eax, 1
cdq
xor eax, edx
sub ecx, ebp
sub eax, edx
mov edx, dword [ebx + 0xc]
sub edx, dword [ebx + 4]
mov ebp, dword [esi]
sub edx, eax
mov eax, dword [edi + 0x68]
shl eax, 1
push edx
cdq
xor eax, edx
sub eax, edx
sub ecx, eax
lea eax, [esp + 0x1c]
push ecx
push eax
mov ecx, esi
call dword [ebp + 0x48]
mov ecx, dword [eax]
mov dword [esp + 0x54], ecx
mov ecx, esi
mov edx, dword [eax + 4]
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x5c], edx
call sub.MFC42.DLL_CDC::SelectObject
mov ecx, dword [0x53b9c8]
push 0x42c80000
push esi
mov dword [esp + 0x20], eax
mov ecx, dword [ecx + 0x48]
call fcn.00457930
mov edx, dword [esi]
push 8
mov ecx, esi
call dword [edx + 0x3c]
fld dword [edi + 0x60]
push 0
call sub.MSVCRT.dll__ftol
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::SetWindowOrg
fld dword [edi + 0x48]
mov ebp, dword [esi]
fchs
call sub.MSVCRT.dll__ftol
fld dword [edi + 0x44]
push eax
call sub.MSVCRT.dll__ftol
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call dword [ebp + 0x50]
mov eax, dword [edi + 0x74]
mov ebp, dword [ebx + 0xc]
mov ecx, dword [edi + 0x68]
mov edx, dword [esi]
add eax, ebp
push eax
mov eax, dword [ebx]
add ecx, eax
lea eax, [esp + 0x14]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x40]
mov ecx, dword [ebx + 8]
mov ebp, dword [ebx]
mov eax, dword [edi + 0x6c]
sub ecx, ebp
mov ebp, dword [esi]
shl eax, 1
cdq
xor eax, edx
sub eax, edx
mov edx, dword [ebx + 0xc]
sub edx, dword [ebx + 4]
sub edx, eax
mov eax, dword [edi + 0x68]
shl eax, 1
push edx
cdq
xor eax, edx
sub eax, edx
sub ecx, eax
lea eax, [esp + 0x14]
push ecx
push eax
mov ecx, esi
call dword [ebp + 0x48]
fld dword [edi + 0x60]
fadd dword [edi + 0x5c]
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
fstp dword [esp + 0x78]
call sub.MFC42.DLL_CDC::SelectObject
mov eax, dword [edi + 0x4c]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x10], ecx
jle 0x499062
test ecx, ecx
jle 0x498fea
mov edx, dword [edi + 0x50]
mov ebx, dword [edx + ecx*4 - 4]
jmp 0x498fec
xor ebx, ebx
mov eax, dword [edi + 0x50]
mov eax, dword [eax + ecx*4]
sub eax, ebx
lea ebp, [eax + ebx]
cmp ebx, ebp
jge 0x499047
fld dword [esp + 0x74]
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x78], eax
mov ecx, dword [edi + 0x58]
fld dword [ecx + ebx*8]
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x78]
push eax
lea eax, [esp + 0x60]
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [edi + 0x58]
fld dword [ecx + ebx*8 + 4]
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x78]
push eax
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
inc ebx
cmp ebx, ebp
jl 0x499008
mov ecx, dword [esp + 0x10]
fld dword [esp + 0x74]
fadd dword [edi + 0x5c]
mov eax, dword [edi + 0x4c]
inc ecx
cmp ecx, eax
mov dword [esp + 0x10], ecx
fstp dword [esp + 0x74]
jl 0x498fdd
fld dword [edi + 0x60]
fadd dword [edi + 0x5c]
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
fstp dword [esp + 0x78]
call sub.MFC42.DLL_CDC::SelectObject
mov ecx, dword [edi + 0x4c]
mov dword [esp + 0x10], ecx
lea edx, [ecx + ecx]
cmp ecx, edx
jge 0x499111
test ecx, ecx
jle 0x499097
mov eax, dword [edi + 0x50]
mov ebx, dword [eax + ecx*4 - 4]
jmp 0x499099
xor ebx, ebx
mov edx, dword [edi + 0x50]
mov eax, dword [edx + ecx*4]
sub eax, ebx
lea ebp, [eax + ebx]
cmp ebx, ebp
jge 0x4990f4
fld dword [esp + 0x74]
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x78], eax
mov eax, dword [edi + 0x58]
fld dword [eax + ebx*8]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x78]
push eax
lea edx, [esp + 0x60]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [edi + 0x58]
fld dword [eax + ebx*8 + 4]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x78]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
inc ebx
cmp ebx, ebp
jl 0x4990b5
mov ecx, dword [esp + 0x10]
fld dword [esp + 0x74]
fadd dword [edi + 0x5c]
mov edx, dword [edi + 0x4c]
inc ecx
shl edx, 1
cmp ecx, edx
mov dword [esp + 0x10], ecx
fstp dword [esp + 0x74]
jl 0x49908a
lea eax, [esp + 0x24]
test eax, eax
je 0x49912c
mov eax, dword [esp + 0x28]
test eax, eax
je 0x49912c
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [0x53b9c8]
push 0x43480000
push esi
mov ecx, dword [edx + 0x48]
call fcn.00457930
mov eax, dword [esp + 0x18]
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::SelectObject
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov eax, dword [esp + 0x20]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push ecx
lea eax, [esp + 0x60]
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::SetWindowOrg
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov edx, dword [esi]
push eax
lea eax, [esp + 0x60]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x50]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esi]
push eax
lea eax, [esp + 0x60]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x40]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov edx, dword [esi]
push eax
lea eax, [esp + 0x60]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x48]
mov esi, 0x508630
mov dword [esp + 0x24], esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x6c], 3
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov edi, 0x508238
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], edi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6c], 4
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x6c], 5
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 8