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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x569a4e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
lea eax, [esp + 0x78]
mov ebx, ecx
push eax
push edi
call fcn.004c56f0
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x88]
mov dword [ebx + 0x350], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebx + 0x358], edx
mov edx, dword [esp + 0x80]
add esp, 8
cmp ecx, 1
mov dword [ebx + 0x354], eax
mov dword [ebx + 0x34c], edx
jne 0x4a12c4
mov ecx, dword [ebx + 0xf8]
sub eax, edx
sub esp, 8
lea ecx, [ecx + ecx*4]
shl ecx, 1
mov dword [esp + 0x20], ecx
fild dword [esp + 0x20]
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fsubp st(1)
fmul qword [0x57f568]
fild dword [esp + 0x80]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
mov edx, dword [ebp + 0x10]
add esp, 8
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], edx
jmp 0x4a130b
mov eax, dword [0x5c0274]
sub esp, 8
lea eax, [eax + eax*4]
shl eax, 1
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fild dword [esp + 0x80]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
mov dword [esp + 0x30], eax
mov eax, dword [0x5c0278]
add esp, 8
lea eax, [eax + eax*4]
shl eax, 1
mov dword [esp + 0x1c], eax
xor esi, esi
mov ecx, edi
mov dword [esp + 0x18], esi
call fcn.004ccdc0
mov ecx, dword [0x5b62c4]
mov edx, eax
mov al, byte [0x5b62c8]
mov dword [esp + 0xa4], ecx
mov byte [esp + 0xa8], al
mov ecx, 6
xor eax, eax
lea edi, [esp + 0xa9]
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], esi
mov byte [esp + 0x9c], 0
mov byte [esp + 0x9d], 1
mov byte [esp + 0x9e], 0
mov byte [esp + 0x9f], 0x86
mov byte [esp + 0xa0], 0
mov byte [esp + 0xa1], 0
mov byte [esp + 0xa2], 0
mov byte [esp + 0xa3], 0
cmp edx, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x10], edx
mov dword [esp + 0x44], esi
stosb byte es:[edi], al
jle 0x4a18b8
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.004ccd90
mov esi, dword [eax + 0x54]
mov dword [esp + 0x20], eax
mov edi, 0x5b630c
mov dl, byte [esi]
mov cl, dl
cmp dl, byte [edi]
jne 0x4a13f6
test cl, cl
je 0x4a13f2
mov dl, byte [esi + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x4a13f6
add esi, 2
add edi, 2
test cl, cl
jne 0x4a13d2
xor ecx, ecx
jmp 0x4a13fb
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x4a1883
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 0x64]
push eax
mov edx, dword [ecx]
call dword [edx + 0x38]
mov ecx, dword [esp + 0x20]
sub esp, 0x3c
mov edi, esp
sub esp, 0x3c
lea esi, [ecx + 0x14]
mov ecx, 0xf
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xf
lea esi, [esp + 0x100]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.004c29f0
add esp, 0x78
test eax, eax
jne 0x4a14ff
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4a1461
mov ecx, dword [ebp + 8]
push eax
mov edx, dword [ecx]
call dword [edx + 0x30]
lea ecx, [ebx + 0xe8]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov eax, dword [esp + 0x20]
sub esp, 0x3c
mov ecx, 0xf
mov edi, esp
lea esi, [eax + 0x14]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x158]
push ecx
call fcn.004c2960
fild dword [esp + 0x15c]
add esp, 0x38
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
add esp, 8
lea edx, [esp + 0x11c]
mov dword [esp + 0x11c], eax
lea esi, [ebx + 0xe8]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
mov ecx, esi
call sub.MFC42.DLL_CGdiObject::Attach
mov eax, dword [esp + 0x20]
sub esp, 0x3c
mov ecx, 0xf
mov edi, esp
lea esi, [eax + 0x14]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xc4]
push ecx
call fcn.004c2960
mov esi, dword [ebp + 8]
add esp, 0x40
lea eax, [ebx + 0xe8]
mov ecx, esi
mov edx, dword [esi]
push eax
call dword [edx + 0x30]
mov dword [esp + 0x44], eax
jmp 0x4a1502
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x20]
mov eax, dword [ebx + 0x350]
fild dword [esp + 0x1c]
mov edx, dword [edi + 0x10]
sub esp, 8
sub eax, edx
fstp qword [esp + 0x54]
sub eax, 3
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fsub qword [esp + 0x54]
fstp qword [esp]
call fcn.004bd890
fild dword [esp + 0x30]
mov dword [esp + 0x1c], eax
fstp qword [esp + 0x44]
fild dword [edi + 0xc]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fadd qword [esp + 0x44]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [ebx + 0x350]
mov edx, dword [edi + 8]
sub ecx, edx
mov dword [esp + 0x5c], eax
sub ecx, 3
mov dword [esp + 0x28], ecx
fild dword [esp + 0x28]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fsub qword [esp + 0x54]
fstp qword [esp]
call fcn.004bd890
fild dword [edi + 4]
mov dword [esp + 0x28], eax
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fadd qword [esp + 0x44]
fstp qword [esp]
call fcn.004bd890
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x5c]
add esp, 8
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov eax, dword [esi + 8]
lea edx, [esp + 0xe4]
mov dword [esp + 0x38], ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 4]
sub ecx, edx
sub esp, 8
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fidiv dword [esp + 0x100]
fstp qword [esp]
call fcn.004bd890
mov eax, dword [edi + 0x50]
add esp, 8
xor edx, edx
mov dword [esp + 0x20], 0
mov ecx, dword [eax - 8]
dec ecx
test ecx, ecx
mov dword [esp + 0x14], ecx
jle 0x4a1657
mov ecx, dword [esp + 0x20]
cmp byte [eax + ecx], 0xd
jne 0x4a1644
cmp byte [eax + ecx + 1], 0xa
jne 0x4a1644
inc edx
inc ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x20], ecx
jl 0x4a1632
test edx, edx
jne 0x4a165c
mov edx, 1
mov eax, dword [esp + 0xe4]
lea ecx, [edx - 1]
imul ecx, dword [esp + 0xf4]
imul eax, edx
add ecx, eax
mov eax, dword [edi + 0x80]
test eax, eax
je 0x4a169c
cmp edx, 1
jg 0x4a169c
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
push edx
push edi
push esi
mov ecx, ebx
call fcn.004a20a0
jmp 0x4a1883
mov eax, dword [edi + 0x84]
test eax, eax
je 0x4a16d3
cmp edx, 1
jg 0x4a16d3
mov eax, dword [ebx + 0x130]
push eax
mov eax, dword [ebx + 0x120]
push eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x34]
push eax
push ecx
push edx
push edi
push esi
mov ecx, ebx
call fcn.004a2590
jmp 0x4a1883
mov edx, dword [edi + 0x78]
test edx, edx
jne 0x4a16e5
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x4a176a
mov eax, 2
cmp edx, eax
jne 0x4a16f8
cmp dword [edi + 0x7c], 0
je 0x4a186e
cmp edx, 1
jne 0x4a1712
cmp dword [edi + 0x7c], 0
jne 0x4a1712
mov edi, dword [edi + 0x50]
mov edx, dword [esi]
push 1
mov ecx, dword [edi - 8]
jmp 0x4a1877
test edx, edx
jne 0x4a177f
cmp dword [edi + 0x7c], 1
jne 0x4a174e
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
sub eax, edx
cdq
sub eax, edx
mov edx, eax
mov eax, ecx
mov ecx, dword [esp + 0x30]
sar edx, 1
mov dword [esp + 0x14], edx
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
sar eax, 1
add ecx, edx
add eax, ecx
mov ecx, dword [esp + 0x30]
cmp eax, ecx
jge 0x4a176a
jmp 0x4a1766
test edx, edx
jne 0x4a177f
cmp dword [edi + 0x7c], eax
jne 0x4a177f
mov edx, dword [esp + 0x38]
lea eax, [edx + ecx]
mov ecx, dword [esp + 0x30]
cmp ecx, eax
jle 0x4a176a
mov dword [esp + 0x30], eax
mov edi, dword [edi + 0x50]
mov edx, dword [esi]
lea ecx, [esp + 0x2c]
push 0
mov eax, dword [edi - 8]
push ecx
push eax
jmp 0x4a187d
cmp edx, 1
jne 0x4a1803
cmp dword [edi + 0x7c], edx
jne 0x4a17cc
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
sub eax, edx
cdq
sub eax, edx
mov edx, eax
mov eax, ecx
sar edx, 1
mov ecx, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x30]
sar eax, 1
add edx, ecx
mov ecx, dword [esp + 0x30]
add eax, edx
cmp eax, ecx
jge 0x4a17b7
mov dword [esp + 0x30], eax
mov edi, dword [edi + 0x50]
mov edx, dword [esi]
lea ecx, [esp + 0x2c]
push 1
mov eax, dword [edi - 8]
push ecx
push eax
jmp 0x4a187d
cmp edx, 1
jne 0x4a1803
cmp dword [edi + 0x7c], eax
jne 0x4a1803
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
add ecx, edx
cmp eax, ecx
jle 0x4a17e8
mov dword [esp + 0x30], ecx
mov edi, dword [edi + 0x50]
mov eax, dword [esi]
lea edx, [esp + 0x2c]
push 1
mov ecx, dword [edi - 8]
push edx
push ecx
push edi
mov ecx, esi
call dword [eax + 0x70]
jmp 0x4a1883
cmp edx, eax
jne 0x4a1883
cmp dword [edi + 0x7c], 1
jne 0x4a1853
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
sub eax, edx
cdq
sub eax, edx
mov edx, eax
mov eax, ecx
mov ecx, dword [esp + 0x30]
sar edx, 1
mov dword [esp + 0x14], edx
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
sar eax, 1
add ecx, edx
add eax, ecx
mov ecx, dword [esp + 0x30]
cmp eax, ecx
jge 0x4a1841
mov dword [esp + 0x30], eax
mov edi, dword [edi + 0x50]
mov edx, dword [esi]
lea ecx, [esp + 0x2c]
push 2
mov eax, dword [edi - 8]
push ecx
push eax
jmp 0x4a187d
cmp edx, eax
jne 0x4a1883
cmp dword [edi + 0x7c], eax
jne 0x4a1883
mov edx, dword [esp + 0x38]
add ecx, edx
mov edx, dword [esp + 0x30]
cmp edx, ecx
jle 0x4a186e
mov dword [esp + 0x30], ecx
mov edi, dword [edi + 0x50]
mov edx, dword [esi]
push eax
mov ecx, dword [edi - 8]
lea eax, [esp + 0x30]
push eax
push ecx
push edi
mov ecx, esi
call dword [edx + 0x70]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x4a13b9
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4a18b8
mov edi, dword [ebp + 8]
push eax
mov ecx, edi
mov edx, dword [edi]
call dword [edx + 0x30]
lea ecx, [ebx + 0xe8]
call sub.MFC42.DLL_CGdiObject::DeleteObject
jmp 0x4a18bb
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
call fcn.004cc990
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x18], eax
je 0x4a207a
jmp 0x4a18d8
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0x14]
push eax
call fcn.004cc960
mov esi, eax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jne 0x4a1a54
cmp eax, dword [ebx + 0x138]
jg 0x4a1a54
xor eax, eax
mov dword [esp + 0x54], 0x57f4f8
mov dword [esp + 0x58], eax
mov dword [esp + 0x160], eax
mov eax, dword [ebx + 0xa8]
cdq
idiv dword [ebx + 0xac]
mov ecx, dword [esi + 0x18]
push ecx
push eax
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_CGdiObject::Attach
lea edx, [esp + 0x54]
mov ecx, edi
push edx
call sub.MFC42.DLL_CDC::SelectObject
fild dword [esp + 0x1c]
mov ecx, dword [esi + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x350]
sub esp, 8
fstp qword [esp + 0x54]
fild dword [esp + 0x30]
sub eax, ecx
mov dword [esp + 0x18], eax
fstp qword [esp + 0x44]
fild dword [esp + 0x18]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fsub qword [esp + 0x54]
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 4]
add esp, 8
fdiv qword [ebx + 0x100]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x48]
fstp qword [esp]
call fcn.004bd890
add esp, 8
lea ecx, [esp + 0xe0]
push eax
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [ebx + 0x350]
mov ecx, dword [esi + 8]
sub edx, ecx
sub esp, 8
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fsub qword [esp + 0x54]
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 0xc]
add esp, 8
fdiv qword [ebx + 0x100]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x48]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, edi
push eax
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x14]
mov ecx, edi
push eax
call sub.MFC42.DLL_CDC::SelectObject
mov dword [esp + 0x54], 0x57f4d8
lea ecx, [esp + 0x54]
mov dword [esp + 0x160], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x160], 0xffffffff
mov dword [esp + 0x54], 0x57f4c4
jmp 0x4a2067
mov edx, dword [esi + 4]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jne 0x4a1d43
mov ecx, dword [ebx + 0x138]
cmp eax, ecx
jge 0x4a1d3a
cmp dword [esi + 0x10], ecx
jge 0x4a1bd8
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0x57f4f8
mov eax, dword [ebx + 0xa8]
mov ecx, dword [esi + 0x18]
cdq
idiv dword [ebx + 0xac]
push ecx
mov dword [esp + 0x164], 2
push eax
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CGdiObject::Attach
lea ecx, [esp + 0x44]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::SelectObject
fild dword [esp + 0x1c]
mov edx, dword [ebx + 0x350]
mov ecx, dword [esi + 8]
sub edx, ecx
sub esp, 8
fstp qword [esp + 0x54]
fild dword [esp + 0x30]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
fstp qword [esp + 0x44]
fild dword [esp + 0x18]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fsub qword [esp + 0x54]
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 4]
add esp, 8
fdiv qword [ebx + 0x100]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x48]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, edi
push eax
lea eax, [esp + 0xdc]
push eax
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esi + 0x10]
mov edx, dword [ebx + 0x350]
sub ecx, edx
sub esp, 8
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fadd qword [esp + 0x54]
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 0xc]
add esp, 8
fdiv qword [ebx + 0x100]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x48]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, edi
push eax
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esp + 0x14]
mov ecx, edi
push edx
call sub.MFC42.DLL_CDC::SelectObject
mov dword [esp + 0x44], 0x57f4d8
lea ecx, [esp + 0x44]
mov dword [esp + 0x160], 3
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x160], 0xffffffff
mov dword [esp + 0x44], 0x57f4c4
jmp 0x4a2067
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0x57f4f8
mov eax, dword [ebx + 0xa8]
mov ecx, dword [esi + 0x18]
cdq
idiv dword [ebx + 0xac]
push ecx
mov dword [esp + 0x164], 4
push eax
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CGdiObject::Attach
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call sub.MFC42.DLL_CDC::SelectObject
fild dword [esp + 0x1c]
mov ecx, dword [ebx + 0x350]
mov edx, dword [esi + 8]
sub ecx, edx
sub esp, 8
fstp qword [esp + 0x54]
fild dword [esp + 0x30]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
fstp qword [esp + 0x44]
fild dword [esp + 0x18]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fsub qword [esp + 0x54]
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 4]
add esp, 8
fdiv qword [ebx + 0x100]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x48]
fstp qword [esp]
call fcn.004bd890
add esp, 8
lea edx, [esp + 0xd0]
mov ecx, edi
push eax
push edx
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [ebx + 0x138]
mov ecx, dword [ebx + 0x350]
sub eax, ecx
sub esp, 8
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fadd qword [esp + 0x54]
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 0xc]
add esp, 8
fdiv qword [ebx + 0x100]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x48]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, edi
push eax
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::SelectObject
mov dword [esp + 0x20], 0x57f4d8
lea ecx, [esp + 0x20]
mov dword [esp + 0x160], 5
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x160], 0xffffffff
mov dword [esp + 0x20], 0x57f4c4
jmp 0x4a2067
cmp edx, dword [esi + 0xc]
je 0x4a2067
mov edx, dword [esi + 0x10]
cmp eax, edx
je 0x4a2067
mov ecx, dword [ebx + 0x138]
cmp eax, ecx
jge 0x4a2067
cmp edx, ecx
jg 0x4a1ec3
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0x57f4f8
mov eax, dword [ebx + 0xa8]
mov ecx, dword [esi + 0x18]
cdq
idiv dword [ebx + 0xac]
push ecx
mov dword [esp + 0x164], 6
push eax
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x60]
call sub.MFC42.DLL_CGdiObject::Attach
lea edx, [esp + 0x5c]
mov ecx, edi
push edx
call sub.MFC42.DLL_CDC::SelectObject
fild dword [esp + 0x28]
mov ecx, dword [esi + 8]
mov edx, dword [ebx + 0x350]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
fstp qword [esp + 0x3c]
neg eax
mov dword [esp + 0x10], eax
sub ecx, edx
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
sub esp, 8
fild dword [esp + 0x18]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 4]
add esp, 8
fdiv qword [ebx + 0x100]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x48]
fstp qword [esp]
call fcn.004bd890
add esp, 8
lea edx, [esp + 0x30]
mov ecx, edi
push eax
push edx
call sub.MFC42.DLL_CDC::MoveTo
fild dword [esi + 8]
sub esp, 8
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fild dword [esi + 0x10]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fiadd dword [esp + 0x24]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 0xc]
add esp, 8
fdiv qword [ebx + 0x100]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x48]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, edi
push eax
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x14]
mov ecx, edi
push eax
call sub.MFC42.DLL_CDC::SelectObject
mov dword [esp + 0x5c], 0x57f4d8
lea ecx, [esp + 0x5c]
mov dword [esp + 0x160], 7
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x160], 0xffffffff
mov dword [esp + 0x5c], 0x57f4c4
jmp 0x4a2067
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0x57f4f8
mov eax, dword [ebx + 0xa8]
mov ecx, dword [esi + 0x18]
cdq
idiv dword [ebx + 0xac]
push ecx
mov dword [esp + 0x164], 8
push eax
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x68]
call sub.MFC42.DLL_CGdiObject::Attach
lea ecx, [esp + 0x64]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::SelectObject
mov ecx, dword [esi + 8]
mov dword [esp + 0x14], eax
fild dword [esi + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x6c], 0
fild dword [esp + 0x10]
fild dword [esi + 0xc]
fild dword [esi + 0x10]
mov dword [esp + 0x70], 0
fsub st(2)
fcom qword [0x57f4f0]
fnstsw ax
test ah, 0x40
jne 0x4a1f5f
fild dword [ebx + 0x138]
fsub st(3)
fxch st(2)
fsub st(4)
fmulp st(2)
fxch st(1)
fdiv st(1)
fadd st(3)
fstp qword [esp + 0x6c]
jmp 0x4a1f61
fstp st(0)
mov edx, dword [esp + 0x1c]
sub esp, 8
fstp st(0)
fstp st(0)
fstp st(0)
fild dword [esp + 0x30]
neg edx
mov dword [esp + 0x18], edx
mov edx, dword [ebx + 0x350]
fstp qword [esp + 0x44]
fild dword [esp + 0x18]
sub ecx, edx
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 4]
add esp, 8
fdiv qword [ebx + 0x100]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x48]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, edi
push eax
lea eax, [esp + 0xcc]
push eax
call sub.MFC42.DLL_CDC::MoveTo
fild dword [ebx + 0x348]
sub esp, 8
fdiv qword [ebx + 0x100]
fmul qword [0x57f530]
fiadd dword [esp + 0x24]
fchs
fstp qword [esp]
call fcn.004bd890
fld qword [esp + 0x74]
fdiv qword [ebx + 0x100]
add esp, 8
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x48]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, edi
push eax
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::SelectObject
mov dword [esp + 0x64], 0x57f4d8
lea ecx, [esp + 0x64]
mov dword [esp + 0x160], 9
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x160], 0xffffffff
mov dword [esp + 0x64], 0x57f4c4
mov eax, dword [esp + 0x18]
mov edx, eax
dec eax
test edx, edx
mov dword [esp + 0x18], eax
jne 0x4a18d4
mov ecx, dword [esp + 0x158]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10