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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56f98e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b4
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
push edi
cmp eax, 1
mov edi, dword [ebx + 0x40]
mov dword [esp + 0x50], edi
jne 0x4e2324
mov eax, dword [ebx + 0x1a0]
mov ecx, dword [ebx + 0xd0]
mov edx, dword [ebx + 0xd8]
mov dword [esp + 0x54], ecx
lea eax, [eax + eax*4]
sub edx, ecx
shl eax, 1
mov dword [esp + 0x1c], eax
sub esp, 8
fild dword [esp + 0x24]
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
fdiv qword [ebx + 0x1a8]
fmul qword [0x57f530]
fsubp st(1)
fmul qword [0x57f568]
fild dword [esp + 0x5c]
fdiv qword [ebx + 0x1a8]
fmul qword [0x57f530]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], 0x3d
jmp 0x4e236a
mov eax, dword [0x5c0274]
sub esp, 8
lea eax, [eax + eax*4]
shl eax, 1
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fild dword [ebx + 0xd0]
fdiv qword [ebx + 0x1a8]
fmul qword [0x57f530]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
mov dword [esp + 0x48], eax
mov eax, dword [0x5c0278]
add esp, 8
lea eax, [eax + eax*4]
shl eax, 1
mov dword [esp + 0x30], eax
xor esi, esi
mov ecx, edi
mov dword [esp + 0x54], esi
call fcn.004ccdc0
mov ecx, dword [0x5b62c4]
mov edx, eax
mov al, byte [0x5b62c8]
mov dword [esp + 0x98], ecx
mov byte [esp + 0x9c], al
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x9d]
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
mov byte [esp + 0x90], 0
mov byte [esp + 0x91], 1
mov byte [esp + 0x92], 0
mov byte [esp + 0x93], 0x86
mov byte [esp + 0x94], 0
mov byte [esp + 0x95], 0
mov byte [esp + 0x96], 0
mov byte [esp + 0x97], 0
cmp edx, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], esi
stosb byte es:[edi], al
jle 0x4e2b80
mov ecx, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x54]
call fcn.004ccd90
mov ecx, dword [eax + 0x54]
mov dword [esp + 0x14], eax
mov edi, 0x5b62bc
mov esi, ecx
mov dl, byte [esi]
mov al, dl
cmp dl, byte [edi]
jne 0x4e2455
test al, al
je 0x4e2451
mov dl, byte [esi + 1]
mov al, dl
cmp dl, byte [edi + 1]
jne 0x4e2455
add esi, 2
add edi, 2
test al, al
jne 0x4e2431
xor eax, eax
jmp 0x4e245a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4e24ca
mov edi, 0x5b6314
mov esi, ecx
mov dl, byte [esi]
mov al, dl
cmp dl, byte [edi]
jne 0x4e2489
test al, al
je 0x4e2485
mov dl, byte [esi + 1]
mov al, dl
cmp dl, byte [edi + 1]
jne 0x4e2489
add esi, 2
add edi, 2
test al, al
jne 0x4e2465
xor eax, eax
jmp 0x4e248e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4e24ca
mov edi, 0x5b630c
mov esi, ecx
mov dl, byte [esi]
mov al, dl
cmp dl, byte [edi]
jne 0x4e24bd
test al, al
je 0x4e24b9
mov dl, byte [esi + 1]
mov al, dl
cmp dl, byte [edi + 1]
jne 0x4e24bd
add esi, 2
add edi, 2
test al, al
jne 0x4e2499
xor eax, eax
jmp 0x4e24c2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4e2b4f
mov edi, 0x5b62bc
mov esi, ecx
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x4e24f9
test al, al
je 0x4e24f5
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x4e24f9
add esi, 2
add edi, 2
test al, al
jne 0x4e24d1
xor eax, eax
jmp 0x4e24fe
sbb eax, eax
sbb eax, 0xffffffff
mov ecx, dword [ebp + 8]
test eax, eax
jne 0x4e2697
mov esi, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [esi + 0x64]
push edx
call dword [eax + 0x38]
sub esp, 0x3c
add esi, 0x14
mov ecx, 0xf
mov edi, esp
lea eax, [esp + 0x188]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.004c2960
mov eax, dword [esp + 0x18c]
add esp, 0x40
lea edx, [esp + 0x14c]
lea edi, [ebx + 0x18c]
lea ecx, [eax + eax*2]
push edx
mov dword [esp + 0x150], ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x30]
mov edx, dword [esi + 8]
lea ecx, [esp + 0x188]
push ecx
push edx
mov dword [esp + 0x14], eax
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
cmp dword [ebp + 0xc], 1
jne 0x4e25b6
mov esi, dword [esp + 0x50]
mov eax, dword [esi + 0x368]
mov ecx, dword [eax - 8]
mov eax, dword [ebx + 0x1a0]
imul ecx, dword [esp + 0x19c]
lea eax, [eax + eax*4]
shl eax, 1
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x74], eax
jmp 0x4e2627
mov ecx, dword [esp + 0x50]
sub esp, 8
mov edx, dword [ecx + 0x368]
mov ecx, dword [ebx + 0xd8]
mov eax, dword [edx - 8]
mov edx, dword [ebx + 0xd0]
sub ecx, edx
imul eax, dword [esp + 0x1a4]
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [0x5c0274]
fdiv qword [ebx + 0x1a8]
lea edx, [eax + eax*4]
shl edx, 1
fmul qword [0x57f530]
fild dword [esp + 0x1c]
mov dword [esp + 0x1c], edx
fsubp st(1)
fmul qword [0x57f568]
fild dword [esp + 0x1c]
faddp st(1)
fstp qword [esp]
call fcn.004bd890
mov esi, dword [esp + 0x58]
add esp, 8
mov dword [esp + 0x74], eax
mov eax, dword [esi + 0x33c]
sub esp, 8
mov eax, dword [eax]
mov ecx, dword [eax + 8]
neg ecx
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
fdiv qword [ebx + 0x1a8]
fmul qword [0x57f530]
fisub dword [esp + 0x38]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [esi + 0x368]
mov esi, dword [ebp + 8]
add esp, 8
mov edx, dword [ecx - 8]
mov dword [esp + 0x14], edx
push dword [esp + 0x14]
mov edx, dword [esi]
push ecx
push eax
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
call dword [edx + 0x64]
mov eax, dword [esp + 0xc]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x30]
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::DeleteObject
jmp 0x4e2b4f
mov esi, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [esi + 0x64]
push eax
call dword [edx + 0x38]
sub esp, 0x3c
add esi, 0x14
mov ecx, 0xf
mov edi, esp
rep movsd dword es:[edi], dword [esi]
sub esp, 0x3c
mov ecx, 0xf
lea esi, [esp + 0xf4]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.004c29f0
add esp, 0x78
test eax, eax
jne 0x4e278c
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4e26f2
mov ecx, dword [ebp + 8]
push eax
mov edx, dword [ecx]
call dword [edx + 0x30]
lea ecx, [ebx + 0x194]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov eax, dword [esp + 0x14]
sub esp, 0x3c
mov ecx, 0xf
mov edi, esp
lea esi, [eax + 0x14]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x14c]
push ecx
call fcn.004c2960
fild dword [esp + 0x150]
add esp, 0x38
fdiv qword [ebx + 0x1a8]
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
add esp, 8
lea edx, [esp + 0x110]
mov dword [esp + 0x110], eax
lea esi, [ebx + 0x194]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
mov ecx, esi
call sub.MFC42.DLL_CGdiObject::Attach
mov eax, dword [esp + 0x14]
sub esp, 0x3c
mov ecx, 0xf
mov edi, esp
lea esi, [eax + 0x14]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xb8]
push ecx
call fcn.004c2960
mov ecx, dword [ebp + 8]
add esp, 0x40
lea eax, [ebx + 0x194]
mov edx, dword [ecx]
push eax
call dword [edx + 0x30]
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x14]
sub esp, 8
fild dword [esp + 0x38]
mov eax, dword [esi + 0x10]
neg eax
fstp qword [esp + 0x4c]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fdiv qword [ebx + 0x1a8]
fmul qword [0x57f530]
fsub qword [esp + 0x4c]
fstp qword [esp]
call fcn.004bd890
fild dword [esp + 0x48]
mov edi, eax
fstp qword [esp + 0x3c]
fild dword [esi + 0xc]
fdiv qword [ebx + 0x1a8]
fmul qword [0x57f530]
fadd qword [esp + 0x3c]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [esi + 8]
mov dword [esp + 0x1c], eax
neg ecx
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fdiv qword [ebx + 0x1a8]
fmul qword [0x57f530]
fsub qword [esp + 0x4c]
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 4]
mov dword [esp + 0x14], eax
fdiv qword [ebx + 0x1a8]
fmul qword [0x57f530]
fadd qword [esp + 0x3c]
fstp qword [esp]
call fcn.004bd890
mov edx, dword [esp + 0x14]
mov dword [esp + 0x34], edi
mov edi, dword [ebp + 8]
add esp, 8
mov dword [esp + 0x24], edx
lea ecx, [esp + 0xd8]
mov edx, dword [edi + 8]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 4]
sub eax, edx
sub esp, 8
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fdiv qword [ebx + 0x1a8]
fmul qword [0x57f530]
fidiv dword [esp + 0xf4]
fstp qword [esp]
call fcn.004bd890
mov eax, dword [esi + 0x50]
add esp, 8
xor edx, edx
mov dword [esp + 0x14], 0
mov ecx, dword [eax - 8]
dec ecx
test ecx, ecx
mov dword [esp + 0xc], ecx
jle 0x4e28cc
mov ecx, dword [esp + 0x14]
cmp byte [eax + ecx], 0xd
jne 0x4e28b9
cmp byte [eax + ecx + 1], 0xa
jne 0x4e28b9
inc edx
inc ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xc]
cmp dword [esp + 0x14], ecx
jl 0x4e28a7
test edx, edx
jne 0x4e28d1
mov edx, 1
mov eax, dword [esp + 0xd8]
lea ecx, [edx - 1]
imul ecx, dword [esp + 0xe8]
imul eax, edx
add ecx, eax
mov eax, dword [esi + 0x80]
test eax, eax
mov dword [esp + 0x14], ecx
je 0x4e2939
cmp edx, 1
jg 0x4e2939
mov eax, dword [esp + 0x20]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x28]
push eax
push ecx
push edx
push esi
push edi
mov ecx, ebx
call fcn.004f2310
jmp 0x4e2b4f
mov eax, dword [esi + 0x84]
test eax, eax
je 0x4e2995
cmp edx, 1
jg 0x4e2995
mov ecx, dword [esp + 0x20]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0xc], ecx
mov eax, dword [ebx + 0x1d0]
mov ecx, dword [ebx + 0x1c0]
push eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x30]
push ecx
push eax
push edx
push esi
push edi
call fcn.004c3cf0
add esp, 0x30
jmp 0x4e2b4f
mov eax, dword [esi + 0x78]
test eax, eax
jne 0x4e29b2
mov edx, dword [esi + 0x7c]
test edx, edx
jne 0x4e29b2
mov esi, dword [esi + 0x50]
mov edx, dword [edi]
push 0
mov eax, dword [esi - 8]
jmp 0x4e2b43
cmp eax, 2
jne 0x4e29c2
mov edx, dword [esi + 0x7c]
test edx, edx
je 0x4e2b39
mov edx, 1
cmp eax, edx
jne 0x4e29ed
cmp dword [esi + 0x7c], 0
jne 0x4e29ed
mov esi, dword [esi + 0x50]
mov ecx, dword [edi]
push edx
lea edx, [esp + 0x24]
mov eax, dword [esi - 8]
push edx
push eax
mov eax, ecx
push esi
mov ecx, edi
call dword [eax + 0x70]
jmp 0x4e2b4f
test eax, eax
jne 0x4e2a64
cmp dword [esi + 0x7c], edx
jne 0x4e2a39
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
sub eax, edx
cdq
sub eax, edx
mov edx, eax
mov eax, ecx
mov ecx, dword [esp + 0x24]
sar edx, 1
mov dword [esp + 0xc], edx
cdq
sub eax, edx
mov edx, dword [esp + 0xc]
sar eax, 1
add ecx, edx
add eax, ecx
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jge 0x4e2a2a
mov dword [esp + 0x24], eax
mov esi, dword [esi + 0x50]
mov edx, dword [edi]
push 0
mov eax, dword [esi - 8]
jmp 0x4e2b43
test eax, eax
jne 0x4e2a64
cmp dword [esi + 0x7c], 2
jne 0x4e2a64
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
add ecx, edx
cmp eax, ecx
jle 0x4e2a55
mov dword [esp + 0x24], ecx
mov esi, dword [esi + 0x50]
mov edx, dword [edi]
push 0
mov eax, dword [esi - 8]
jmp 0x4e2b43
cmp eax, edx
jne 0x4e2adf
cmp dword [esi + 0x7c], edx
jne 0x4e2aaa
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
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 + 0x24]
sar eax, 1
add edx, ecx
mov ecx, dword [esp + 0x24]
add eax, edx
cmp eax, ecx
jge 0x4e2a9b
mov dword [esp + 0x24], eax
mov esi, dword [esi + 0x50]
mov edx, dword [edi]
push 1
mov eax, dword [esi - 8]
jmp 0x4e2b43
cmp eax, edx
jne 0x4e2adf
cmp dword [esi + 0x7c], 2
jne 0x4e2adf
mov eax, dword [esp + 0x2c]
add ecx, eax
mov eax, dword [esp + 0x24]
cmp eax, ecx
jle 0x4e2ac6
mov dword [esp + 0x24], ecx
mov esi, dword [esi + 0x50]
mov ecx, dword [edi]
push edx
lea edx, [esp + 0x24]
mov eax, dword [esi - 8]
push edx
push eax
mov eax, ecx
push esi
mov ecx, edi
call dword [eax + 0x70]
jmp 0x4e2b4f
cmp eax, 2
jne 0x4e2b4f
cmp dword [esi + 0x7c], edx
jne 0x4e2b1b
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
sub eax, edx
cdq
sub eax, edx
mov edx, eax
mov eax, ecx
mov ecx, dword [esp + 0x24]
sar edx, 1
mov dword [esp + 0xc], edx
cdq
sub eax, edx
mov edx, dword [esp + 0xc]
sar eax, 1
add ecx, edx
add eax, ecx
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jge 0x4e2b39
jmp 0x4e2b35
cmp eax, 2
jne 0x4e2b4f
cmp dword [esi + 0x7c], 2
jne 0x4e2b4f
mov edx, dword [esp + 0x2c]
lea eax, [edx + ecx]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
jle 0x4e2b39
mov dword [esp + 0x24], eax
mov esi, dword [esi + 0x50]
mov edx, dword [edi]
push 2
mov eax, dword [esi - 8]
lea ecx, [esp + 0x24]
push ecx
push eax
push esi
mov ecx, edi
call dword [edx + 0x70]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x54], eax
jl 0x4e2415
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4e2b80
mov ecx, dword [ebp + 8]
push eax
mov edx, dword [ecx]
call dword [edx + 0x30]
lea ecx, [ebx + 0x194]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x50]
call fcn.004cc990
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x1c], eax
je 0x4e333f
mov edi, dword [ebp + 8]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x50]
push edx
call fcn.004cc960
mov esi, eax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jne 0x4e2d28
cmp eax, dword [ebx + 0x1d8]
jg 0x4e2d28
xor eax, eax
mov dword [esp + 0x54], 0x57f4f8
mov dword [esp + 0x58], eax
fild dword [esi + 0x14]
mov dword [esp + 0x1c8], eax
mov eax, dword [esi + 0x18]
sub esp, 8
mov dword [esp + 0x18], eax
fdiv qword [ebx + 0x1a8]
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [esp + 0x18]
add esp, 8
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 + 0x30]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 8]
neg eax
fstp qword [esp + 0x44]
fild dword [esp + 0x40]
mov dword [esp + 0x10], eax
sub esp, 8
fstp qword [esp + 0x3c]
fild dword [esp + 0x18]
fdiv qword [ebx + 0x1a8]
fmul qword [0x57f530]
fsub qword [esp + 0x4c]
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 4]
add esp, 8
fdiv qword [ebx + 0x1a8]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x40]
fstp qword [esp]
call fcn.004bd890
add esp, 8
lea ecx, [esp + 0xd4]
push eax
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esi + 0x10]
sub esp, 8
neg edx
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fdiv qword [ebx + 0x1a8]
fmul qword [0x57f530]
fsub qword [esp + 0x4c]
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 0xc]
add esp, 8
fdiv qword [ebx + 0x1a8]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x40]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, edi
push eax
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0xc]
push eax
mov ecx, edi
call sub.MFC42.DLL_CDC::SelectObject
mov dword [esp + 0x54], 0x57f4d8
lea ecx, [esp + 0x54]
mov dword [esp + 0x1c8], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x1c8], 0xffffffff
mov dword [esp + 0x54], 0x57f4c4
jmp 0x4e332c
mov edx, dword [esi + 4]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jne 0x4e300b
mov ecx, dword [ebx + 0x1d8]
cmp eax, ecx
jge 0x4e3002
cmp dword [esi + 0x10], ecx
jge 0x4e2ea6
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x57f4f8
fild dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
sub esp, 8
mov dword [esp + 0x1d0], 2
mov dword [esp + 0x18], ecx
fdiv qword [ebx + 0x1a8]
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
mov edx, dword [esp + 0x18]
add esp, 8
push edx
push eax
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CGdiObject::Attach
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call sub.MFC42.DLL_CDC::SelectObject
fild dword [esp + 0x30]
sub esp, 8
mov dword [esp + 0x18], eax
fstp qword [esp + 0x4c]
fild dword [esp + 0x48]
fstp qword [esp + 0x3c]
fild dword [esi + 8]
fdiv qword [ebx + 0x1a8]
fmul qword [0x57f530]
fadd qword [esp + 0x4c]
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 4]
add esp, 8
fdiv qword [ebx + 0x1a8]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x40]
fstp qword [esp]
call fcn.004bd890
add esp, 8
lea ecx, [esp + 0xc4]
push eax
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::MoveTo
fild dword [esi + 0x10]
sub esp, 8
fdiv qword [ebx + 0x1a8]
fmul qword [0x57f530]
fadd qword [esp + 0x4c]
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 0xc]
add esp, 8
fdiv qword [ebx + 0x1a8]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x40]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, edi
push eax
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esp + 0x10]
mov ecx, edi
push edx
call sub.MFC42.DLL_CDC::SelectObject
mov dword [esp + 0x14], 0x57f4d8
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c8], 3
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x1c8], 0xffffffff
mov dword [esp + 0x14], 0x57f4c4
jmp 0x4e332c
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0x57f4f8
fild dword [esi + 0x14]
mov eax, dword [esi + 0x18]
sub esp, 8
mov dword [esp + 0x1d0], 4
mov dword [esp + 0x18], eax
fdiv qword [ebx + 0x1a8]
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [esp + 0x18]
add esp, 8
push ecx
push eax
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x68]
call sub.MFC42.DLL_CGdiObject::Attach
lea edx, [esp + 0x64]
mov ecx, edi
push edx
call sub.MFC42.DLL_CDC::SelectObject
fild dword [esp + 0x30]
sub esp, 8
mov dword [esp + 0x18], eax
fstp qword [esp + 0x4c]
fild dword [esp + 0x48]
fstp qword [esp + 0x3c]
fild dword [esi + 8]
fdiv qword [ebx + 0x1a8]
fmul qword [0x57f530]
fadd qword [esp + 0x4c]
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 4]
add esp, 8
fdiv qword [ebx + 0x1a8]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x40]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, edi
push eax
lea eax, [esp + 0xd0]
push eax
call sub.MFC42.DLL_CDC::MoveTo
fild dword [ebx + 0x1d8]
sub esp, 8
fdiv qword [ebx + 0x1a8]
fmul qword [0x57f530]
fadd qword [esp + 0x4c]
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 0xc]
add esp, 8
fdiv qword [ebx + 0x1a8]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x40]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, edi
push eax
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::SelectObject
mov dword [esp + 0x64], 0x57f4d8
lea ecx, [esp + 0x64]
mov dword [esp + 0x1c8], 5
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x1c8], 0xffffffff
mov dword [esp + 0x64], 0x57f4c4
jmp 0x4e332c
cmp edx, dword [esi + 0xc]
je 0x4e332c
mov edx, dword [esi + 0x10]
cmp eax, edx
je 0x4e332c
mov ecx, dword [ebx + 0x1d8]
cmp eax, ecx
jge 0x4e332c
cmp edx, ecx
jg 0x4e3182
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0x57f4f8
fild dword [esi + 0x14]
mov edx, dword [esi + 0x18]
sub esp, 8
mov dword [esp + 0x1d0], 6
mov dword [esp + 0x18], edx
fdiv qword [ebx + 0x1a8]
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [esp + 0x18]
add esp, 8
push ecx
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 + 0x30]
sub esp, 8
mov dword [esp + 0x18], eax
fstp qword [esp + 0x4c]
fild dword [esp + 0x48]
fstp qword [esp + 0x3c]
fild dword [esi + 8]
fdiv qword [ebx + 0x1a8]
fmul qword [0x57f530]
fadd qword [esp + 0x4c]
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 4]
add esp, 8
fdiv qword [ebx + 0x1a8]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x40]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, edi
push eax
lea eax, [esp + 0x28]
push eax
call sub.MFC42.DLL_CDC::MoveTo
fild dword [esi + 0x10]
sub esp, 8
fdiv qword [ebx + 0x1a8]
fmul qword [0x57f530]
fadd qword [esp + 0x4c]
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 0xc]
add esp, 8
fdiv qword [ebx + 0x1a8]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x40]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, edi
push eax
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::SelectObject
mov dword [esp + 0x5c], 0x57f4d8
lea ecx, [esp + 0x5c]
mov dword [esp + 0x1c8], 7
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x1c8], 0xffffffff
mov dword [esp + 0x5c], 0x57f4c4
jmp 0x4e332c
mov dword [esp + 0x70], 0
mov dword [esp + 0x6c], 0x57f4f8
fild dword [esi + 0x14]
mov edx, dword [esi + 0x18]
sub esp, 8
mov dword [esp + 0x1d0], 8
mov dword [esp + 0x18], edx
fdiv qword [ebx + 0x1a8]
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [esp + 0x18]
add esp, 8
push ecx
push eax
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x70]
call sub.MFC42.DLL_CGdiObject::Attach
lea edx, [esp + 0x6c]
mov ecx, edi
push edx
call sub.MFC42.DLL_CDC::SelectObject
fild dword [esi + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
fstp qword [esp + 0x34]
fild dword [esi + 8]
fld st(0)
fild dword [esi + 0xc]
fild dword [esi + 0x10]
fsub st(2)
fcom qword [0x57f4f0]
fnstsw ax
test ah, 0x40
jne 0x4e3238
fild dword [ebx + 0x1d8]
fsub st(3)
fxch st(2)
fsub qword [esp + 0x34]
fmulp st(2)
fxch st(1)
fdiv st(1)
fadd qword [esp + 0x34]
fstp qword [esp + 0x74]
jmp 0x4e323a
fstp st(0)
fstp st(0)
fstp st(0)
fild dword [esp + 0x30]
sub esp, 8
fstp qword [esp + 0x4c]
fild dword [esp + 0x48]
fstp qword [esp + 0x3c]
fdiv qword [ebx + 0x1a8]
fmul qword [0x57f530]
fadd qword [esp + 0x4c]
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 4]
add esp, 8
fdiv qword [ebx + 0x1a8]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x40]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, edi
push eax
lea eax, [esp + 0xc0]
push eax
call sub.MFC42.DLL_CDC::MoveTo
fild dword [ebx + 0x1d8]
sub esp, 8
fdiv qword [ebx + 0x1a8]
fmul qword [0x57f530]
fadd qword [esp + 0x4c]
fchs
fstp qword [esp]
call fcn.004bd890
fld qword [esp + 0x7c]
fdiv qword [ebx + 0x1a8]
add esp, 8
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x40]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, edi
push eax
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::SelectObject
mov dword [esp + 0x6c], 0x57f4d8
lea ecx, [esp + 0x6c]
mov dword [esp + 0x1c8], 9
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x1c8], 0xffffffff
mov dword [esp + 0x6c], 0x57f4c4
mov eax, dword [esp + 0x1c]
mov edx, eax
dec eax
test edx, edx
mov dword [esp + 0x1c], eax
jne 0x4e2b9b
mov ecx, dword [esp + 0x1c0]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8