Function at 0x40ae00
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5591b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1cc
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
lea eax, [esp + 0xc8]
mov ebx, ecx
push eax
push edi
call fcn.004c56f0
mov ecx, dword [esp + 0xd4]
mov edx, dword [esp + 0xdc]
mov eax, dword [esp + 0xd8]
mov dword [ebx + 0x74], ecx
mov ecx, dword [esp + 0xd0]
mov dword [ebx + 0x7c], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x70], ecx
xor esi, esi
mov eax, dword [edx + 0x14]
add esp, 8
mov dword [ebx + 0xec], eax
mov ecx, dword [ebx + 0xec]
mov eax, dword [ebx + eax*4 + 0x108]
mov dword [esp + 0x30], esi
mov dword [ebx + 0x100], eax
mov edx, dword [ebx + ecx*4 + 0x1f8]
mov ecx, edi
mov dword [ebx + 0x104], edx
call fcn.004cc990
test eax, eax
jle 0x40aef9
push esi
mov ecx, edi
call fcn.004cc960
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0x10]
cmp ecx, edx
jne 0x40aebd
cmp ecx, dword [ebx + 0x74]
jne 0x40aebd
mov esi, dword [eax + 0x18]
mov dword [esp + 0x34], esi
mov esi, dword [eax + 4]
cmp esi, dword [eax + 0xc]
jne 0x40aed1
cmp esi, dword [ebx + 0x70]
jne 0x40aed1
mov eax, dword [eax + 0x18]
mov dword [esp + 0x5c], eax
cmp ecx, edx
jne 0x40aee5
cmp esi, dword [ebx + 0x108]
jne 0x40aee5
mov dword [esp + 0x14], 0
mov esi, dword [esp + 0x30]
mov ecx, edi
inc esi
mov dword [esp + 0x30], esi
call fcn.004cc990
cmp esi, eax
jl 0x40ae9f
mov ecx, dword [esp + 0x5c]
mov eax, 0xffffff
cmp ecx, eax
je 0x40af0f
mov esi, dword [ebp + 8]
mov eax, ecx
mov edx, dword [esi]
jmp 0x40af22
mov ecx, dword [esp + 0x34]
mov esi, dword [ebp + 8]
cmp ecx, eax
mov eax, ecx
mov edx, dword [esi]
jne 0x40af22
mov eax, dword [esp + 0x14]
push eax
mov ecx, esi
call dword [edx + 0x38]
xor edi, edi
mov dword [esp + 0x34], eax
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], 0x57f4b0
mov eax, dword [ebx + 0xcc]
mov ecx, dword [ebx + 0x70]
mov dword [esp + 0x10], ecx
sub esp, 8
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x78]
shl edx, 1
mov dword [esp + 0x1c], edx
sub eax, ecx
fild dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x1e8], edi
fild dword [esp + 0x1c]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fmul qword [0x57f568]
fild dword [esp + 0x18]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov dword [esp + 0x14], eax
push str.Arial
push 0x30
push edi
push 0x30
push edi
push 1
push edi
push edi
push edi
push 0x12c
push edi
push 0x384
push edi
push 0x1c
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
lea ecx, [esp + 0xa4]
call sub.MFC42.DLL_CGdiObject::Attach
mov edx, dword [esi]
lea eax, [esp + 0xa0]
push eax
mov ecx, esi
call dword [edx + 0x30]
fild dword [esp + 0x14]
sub esp, 8
mov dword [esp + 0x14], eax
fstp qword [esp + 0x5c]
fild dword [ebx + 0x70]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsub qword [0x57f560]
fadd qword [esp + 0x5c]
fstp qword [esp]
call fcn.004bd890
fild dword [ebx + 0x70]
mov dword [esp + 0xb0], eax
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [esp + 0x5c]
fadd qword [0x57f558]
fstp qword [esp]
call fcn.004bd890
fld qword [ebx + 0x418]
fcomp qword [0x57f518]
mov dword [esp + 0xb8], eax
add esp, 8
fnstsw ax
test ah, 1
jne 0x40b0bb
mov ecx, dword [ebx + 0x100]
mov edi, dword [ebx + 0xf0]
sub ecx, edi
sub esp, 8
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
fdiv qword [ebx + 0xd0]
fild dword [ebx + 0x104]
fdiv qword [ebx + 0xd0]
fsubp st(1)
fmul qword [0x57f530]
fadd qword [0x57f550]
fstp qword [esp]
call fcn.004bd890
mov edx, dword [ebx + 0x100]
mov edi, dword [ebx + 0xf0]
sub edx, edi
mov dword [esp + 0xb4], eax
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
jmp 0x40b119
mov eax, dword [ebx + 0x100]
mov edi, dword [ebx + 0xf0]
sub eax, edi
sub esp, 8
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fdiv qword [ebx + 0xd0]
fild dword [ebx + 0x104]
fdiv qword [ebx + 0xd0]
fsubp st(1)
fmul qword [0x57f530]
fadd qword [0x57f548]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [ebx + 0x100]
mov edi, dword [ebx + 0xf0]
sub ecx, edi
mov dword [esp + 0xb4], eax
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
fdiv qword [ebx + 0xd0]
fild dword [ebx + 0x104]
fdiv qword [ebx + 0xd0]
fsubp st(1)
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
mov edx, dword [ebp + 0x10]
add esp, 8
mov dword [esp + 0xb4], eax
lea eax, [esp + 0x10]
lea edi, [edx + 0x370]
push 2
push 4
push eax
mov ecx, edi
call sub.MFC42.DLL_CString::Mid_1
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x1c]
push 4
push ecx
mov ecx, edi
mov byte [esp + 0x1e8], 1
call sub.MFC42.DLL_CString::Left
push eax
lea edx, [esp + 0x60]
push 0x5c0338
push edx
mov byte [esp + 0x1ec], 2
call sub.MFC42.DLL_operator_3
push 0x5b6368
push eax
lea eax, [esp + 0x38]
mov byte [esp + 0x1e8], 3
push eax
call sub.MFC42.DLL_operator_4
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
push eax
push edx
mov byte [esp + 0x1ec], 4
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
mov edx, dword [esi]
lea edi, [esp + 0xa8]
push 0x25
mov ecx, dword [eax - 8]
push edi
push ecx
push eax
mov ecx, esi
mov byte [esp + 0x1f0], 5
call dword [edx + 0x70]
lea ecx, [esp + 0x24]
mov byte [esp + 0x1e0], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x1e0], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1e0], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1e0], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x1e0], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov edx, dword [esi]
mov eax, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [edx + 0x38]
lea ecx, [esp + 0xa0]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov edi, dword [ebp + 0x10]
mov ecx, ebx
push edi
push 1
push esi
call fcn.00412750
mov ecx, edi
call fcn.004cc990
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x34], eax
je 0x40ca6f
mov edx, dword [esp + 0x34]
mov ecx, dword [ebp + 0x10]
push edx
call fcn.004cc960
mov edi, eax
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0x10]
cmp eax, ecx
jne 0x40b8c4
cmp eax, dword [ebx + 0x104]
jge 0x40b4a4
cmp eax, dword [ebx + 0x100]
jle 0x40b4a4
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0x57f4f8
fild dword [edi + 0x14]
mov eax, dword [edi + 0x18]
sub esp, 8
mov byte [esp + 0x1e8], 6
mov dword [esp + 0x14], eax
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [esp + 0x14]
add esp, 8
push ecx
push eax
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CGdiObject::Attach
lea edx, [esp + 0x4c]
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::SelectObject
mov ecx, dword [ebx + 0x70]
mov edx, dword [ebx + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0xcc]
sub edx, ecx
mov dword [esp + 0x10], ecx
lea eax, [eax + eax*4]
sub esp, 8
shl eax, 1
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fmul qword [0x57f568]
fild dword [esp + 0x18]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [ebx + 0xf0]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov eax, dword [ebx + 0x100]
sub eax, ecx
fstp qword [esp + 0x2c]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fild dword [edi + 8]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [0x57f540]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
fild dword [edi + 4]
add esp, 8
fdiv qword [ebx + 0xd0]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x30]
fstp qword [esp]
call fcn.004bd890
add esp, 8
lea ecx, [esp + 0x164]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [ebx + 0x100]
mov ecx, dword [ebx + 0xf0]
sub edx, ecx
sub esp, 8
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fild dword [edi + 0x10]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [0x57f540]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
fild dword [edi + 0xc]
add esp, 8
fdiv qword [ebx + 0xd0]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x30]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x14]
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::SelectObject
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x4c], 0x57f4d8
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1e0], 7
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov byte [esp + 0x1e0], 0
mov dword [esp + 0x4c], 0x57f4c4
jmp 0x40ca5c
cmp eax, ecx
jne 0x40b8c4
cmp eax, dword [ebx + 0x104]
jne 0x40b8c4
mov eax, dword [edi + 0x14]
mov ecx, dword [ebx + 0x40c]
cmp eax, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], ecx
jne 0x40b6c7
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x57f4f8
fild dword [esp + 0xc]
mov ecx, dword [ebx + 0x410]
sub esp, 8
mov byte [esp + 0x1e8], 8
mov dword [esp + 0x1c], ecx
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
mov edx, dword [esp + 0x1c]
add esp, 8
push edx
push eax
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CGdiObject::Attach
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::SelectObject
mov ecx, dword [ebx + 0x70]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0xcc]
mov dword [esp + 0x10], ecx
sub esp, 8
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x78]
shl edx, 1
mov dword [esp + 0x14], edx
sub eax, ecx
fild dword [esp + 0x14]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fmul qword [0x57f568]
fild dword [esp + 0x18]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [ebx + 0x100]
mov edx, dword [ebx + 0xf0]
mov dword [esp + 0x14], eax
sub ecx, edx
fild dword [esp + 0x14]
mov dword [esp + 0x14], ecx
fstp qword [esp + 0x2c]
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fild dword [edi + 8]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [0x57f540]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
fild dword [edi + 4]
add esp, 8
fdiv qword [ebx + 0xd0]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x30]
fstp qword [esp]
call fcn.004bd890
add esp, 8
lea edx, [esp + 0x17c]
mov ecx, esi
push eax
push edx
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [ebx + 0x100]
mov ecx, dword [ebx + 0xf0]
sub eax, ecx
sub esp, 8
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fild dword [edi + 0x10]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [0x57f540]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
fild dword [edi + 0xc]
add esp, 8
fdiv qword [ebx + 0xd0]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x30]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x1c], 0x57f4d8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1e0], 9
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov byte [esp + 0x1e0], 0
mov dword [esp + 0x1c], 0x57f4c4
jmp 0x40ca5c
mov dword [esp + 0x94], 0
mov dword [esp + 0x90], 0x57f4f8
fild dword [esp + 0x14]
mov edx, dword [ebx + 0x410]
sub esp, 8
mov byte [esp + 0x1e8], 0xa
mov dword [esp + 0x14], edx
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [esp + 0x14]
add esp, 8
push ecx
push eax
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x94]
call sub.MFC42.DLL_CGdiObject::Attach
lea edx, [esp + 0x90]
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::SelectObject
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0xcc]
mov ecx, dword [ebx + 0x78]
sub esp, 8
lea eax, [eax + eax*4]
shl eax, 1
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x70]
fild dword [esp + 0x14]
sub ecx, eax
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fmul qword [0x57f568]
fstp qword [esp]
call fcn.004bd890
mov edx, dword [ebx + 0x78]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x70]
sub edx, eax
mov eax, dword [ebx + 0xcc]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
lea eax, [eax + eax*4]
shl eax, 1
fdiv qword [ebx + 0xd0]
mov dword [esp + 0x14], eax
fmul qword [0x57f530]
fild dword [esp + 0x14]
fsub st(1)
fmul qword [0x57f568]
fadd st(1)
fstp qword [esp]
fstp st(0)
call fcn.004bd890
mov ecx, dword [ebx + 0x100]
mov edx, dword [ebx + 0xf0]
sub ecx, edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fild dword [edi + 8]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [0x57f540]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
add esp, 8
push eax
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x15c]
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [ebx + 0x100]
mov eax, dword [ebx + 0xf0]
sub ecx, eax
sub esp, 8
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fild dword [edi + 0x10]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [0x57f540]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
mov edx, dword [esp + 0x2c]
add esp, 8
mov ecx, esi
push eax
push edx
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x30]
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::SelectObject
lea ecx, [esp + 0x90]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x90], 0x57f4d8
lea ecx, [esp + 0x90]
mov byte [esp + 0x1e0], 0xb
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov byte [esp + 0x1e0], 0
mov dword [esp + 0x90], 0x57f4c4
jmp 0x40ca5c
mov ecx, dword [edi + 4]
mov edx, dword [edi + 0xc]
cmp ecx, edx
jne 0x40c121
mov edx, dword [edi + 0x10]
cmp edx, dword [ebx + 0x104]
jg 0x40bcfe
mov ecx, dword [ebx + 0x100]
cmp eax, ecx
jl 0x40bafb
mov dword [esp + 0x9c], 0
mov dword [esp + 0x98], 0x57f4f8
fild dword [edi + 0x14]
mov ecx, dword [edi + 0x18]
sub esp, 8
mov byte [esp + 0x1e8], 0xc
mov dword [esp + 0x14], ecx
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
mov edx, dword [esp + 0x14]
add esp, 8
push edx
push eax
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x9c]
call sub.MFC42.DLL_CGdiObject::Attach
lea eax, [esp + 0x98]
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::SelectObject
mov ecx, dword [ebx + 0x70]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0xcc]
mov dword [esp + 0x10], ecx
sub esp, 8
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x78]
shl edx, 1
mov dword [esp + 0x14], edx
sub eax, ecx
fild dword [esp + 0x14]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fmul qword [0x57f568]
fild dword [esp + 0x18]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
mov dword [esp + 0x14], eax
mov ecx, dword [ebx + 0x100]
fild dword [esp + 0x14]
sub ecx, dword [ebx + 0xf0]
fstp qword [esp + 0x2c]
fild dword [edi + 8]
mov dword [esp + 0x14], ecx
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [0x57f540]
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [edi + 4]
add esp, 8
fdiv qword [ebx + 0xd0]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x30]
fstp qword [esp]
call fcn.004bd890
add esp, 8
lea edx, [esp + 0x154]
push eax
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
fild dword [edi + 0x10]
mov eax, dword [ebx + 0x100]
mov ecx, dword [ebx + 0xf0]
sub eax, ecx
sub esp, 8
fdiv qword [ebx + 0xd0]
mov dword [esp + 0x14], eax
fmul qword [0x57f530]
fadd qword [0x57f540]
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [edi + 0xc]
add esp, 8
fdiv qword [ebx + 0xd0]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x30]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject
lea ecx, [esp + 0x98]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x98], 0x57f4d8
lea ecx, [esp + 0x98]
mov byte [esp + 0x1e0], 0xd
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov byte [esp + 0x1e0], 0
mov dword [esp + 0x98], 0x57f4c4
jmp 0x40ca5c
cmp edx, ecx
jle 0x40ca5c
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0x57f4f8
fild dword [edi + 0x14]
mov edx, dword [edi + 0x18]
sub esp, 8
mov byte [esp + 0x1e8], 0xe
mov dword [esp + 0x14], edx
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [esp + 0x14]
add esp, 8
push ecx
push eax
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x64]
call sub.MFC42.DLL_CGdiObject::Attach
lea edx, [esp + 0x60]
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::SelectObject
mov ecx, dword [ebx + 0x70]
mov edx, dword [ebx + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0xcc]
sub edx, ecx
mov dword [esp + 0x10], ecx
lea eax, [eax + eax*4]
sub esp, 8
shl eax, 1
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fmul qword [0x57f568]
fild dword [esp + 0x18]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x100]
fild dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov ecx, dword [ebx + 0xf0]
sub eax, ecx
fstp qword [esp + 0x2c]
fild dword [esp + 0x18]
mov dword [esp + 0x14], eax
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [0x57f540]
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [edi + 4]
add esp, 8
fdiv qword [ebx + 0xd0]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x30]
fstp qword [esp]
call fcn.004bd890
add esp, 8
push eax
lea eax, [esp + 0x178]
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
fild dword [edi + 0x10]
mov ecx, dword [ebx + 0x100]
mov edx, dword [ebx + 0xf0]
sub ecx, edx
sub esp, 8
fdiv qword [ebx + 0xd0]
mov dword [esp + 0x14], ecx
fmul qword [0x57f530]
fadd qword [0x57f540]
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [edi + 0xc]
add esp, 8
fdiv qword [ebx + 0xd0]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x30]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esp + 0x14]
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::SelectObject
lea ecx, [esp + 0x60]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x60], 0x57f4d8
lea ecx, [esp + 0x60]
mov byte [esp + 0x1e0], 0xf
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov byte [esp + 0x1e0], 0
mov dword [esp + 0x60], 0x57f4c4
jmp 0x40ca5c
cmp ecx, dword [edi + 0xc]
jne 0x40c121
mov ecx, dword [ebx + 0x104]
mov edx, dword [edi + 0x10]
cmp edx, ecx
jle 0x40c121
cmp eax, dword [ebx + 0x100]
jg 0x40bf22
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0x57f4f8
fild dword [edi + 0x14]
mov eax, dword [edi + 0x18]
sub esp, 8
mov byte [esp + 0x1e8], 0x10
mov dword [esp + 0x14], eax
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [esp + 0x14]
add esp, 8
push ecx
push eax
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x6c]
call sub.MFC42.DLL_CGdiObject::Attach
lea edx, [esp + 0x68]
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::SelectObject
mov ecx, dword [ebx + 0x70]
mov edx, dword [ebx + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0xcc]
sub edx, ecx
mov dword [esp + 0x10], ecx
lea eax, [eax + eax*4]
sub esp, 8
shl eax, 1
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fmul qword [0x57f568]
fild dword [esp + 0x18]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x100]
fild dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov ecx, dword [ebx + 0xf0]
sub eax, ecx
fstp qword [esp + 0x2c]
fild dword [esp + 0x18]
mov dword [esp + 0x14], eax
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [0x57f540]
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [edi + 4]
add esp, 8
fdiv qword [ebx + 0xd0]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x30]
fstp qword [esp]
call fcn.004bd890
add esp, 8
push eax
lea eax, [esp + 0x1a0]
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
fild dword [ebx + 0x104]
mov ecx, dword [ebx + 0x100]
mov edx, dword [ebx + 0xf0]
sub ecx, edx
sub esp, 8
fdiv qword [ebx + 0xd0]
mov dword [esp + 0x14], ecx
fmul qword [0x57f530]
fadd qword [0x57f540]
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [edi + 0xc]
add esp, 8
fdiv qword [ebx + 0xd0]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x30]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esp + 0x14]
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::SelectObject
lea ecx, [esp + 0x68]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x68], 0x57f4d8
lea ecx, [esp + 0x68]
mov byte [esp + 0x1e0], 0x11
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov byte [esp + 0x1e0], 0
mov dword [esp + 0x68], 0x57f4c4
jmp 0x40ca5c
cmp eax, ecx
jge 0x40ca5c
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0x57f4f8
fild dword [edi + 0x14]
mov eax, dword [edi + 0x18]
sub esp, 8
mov byte [esp + 0x1e8], 0x12
mov dword [esp + 0x14], eax
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [esp + 0x14]
add esp, 8
push ecx
push eax
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x7c]
call sub.MFC42.DLL_CGdiObject::Attach
lea edx, [esp + 0x78]
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::SelectObject
mov ecx, dword [ebx + 0x70]
mov edx, dword [ebx + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0xcc]
sub edx, ecx
mov dword [esp + 0x10], ecx
lea eax, [eax + eax*4]
sub esp, 8
shl eax, 1
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fmul qword [0x57f568]
fild dword [esp + 0x18]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x100]
fild dword [esp + 0x14]
sub eax, dword [ebx + 0xf0]
fstp qword [esp + 0x2c]
fild dword [edi + 8]
mov dword [esp + 0x14], eax
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [0x57f540]
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [edi + 4]
add esp, 8
fdiv qword [ebx + 0xd0]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x30]
fstp qword [esp]
call fcn.004bd890
add esp, 8
lea ecx, [esp + 0x194]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
fild dword [ebx + 0x104]
mov edx, dword [ebx + 0x100]
mov ecx, dword [ebx + 0xf0]
sub edx, ecx
sub esp, 8
fdiv qword [ebx + 0xd0]
mov dword [esp + 0x14], edx
fmul qword [0x57f530]
fadd qword [0x57f540]
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [edi + 0xc]
add esp, 8
fdiv qword [ebx + 0xd0]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x30]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x14]
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::SelectObject
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x78], 0x57f4d8
lea ecx, [esp + 0x78]
mov byte [esp + 0x1e0], 0x13
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov byte [esp + 0x1e0], 0
mov dword [esp + 0x78], 0x57f4c4
jmp 0x40ca5c
mov edx, dword [edi + 4]
mov ecx, dword [edi + 0xc]
cmp edx, ecx
je 0x40c5bb
mov ecx, dword [edi + 0x10]
cmp eax, ecx
je 0x40c5bb
cmp ecx, dword [ebx + 0x104]
jg 0x40c5bb
mov edx, dword [ebx + 0x100]
cmp eax, edx
jl 0x40c360
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0x57f4f8
fild dword [edi + 0x14]
mov ecx, dword [edi + 0x18]
sub esp, 8
mov byte [esp + 0x1e8], 0x14
mov dword [esp + 0x14], ecx
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
mov edx, dword [esp + 0x14]
add esp, 8
push edx
push eax
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x84]
call sub.MFC42.DLL_CGdiObject::Attach
lea eax, [esp + 0x80]
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::SelectObject
mov ecx, dword [ebx + 0x70]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0xcc]
mov dword [esp + 0x10], ecx
sub esp, 8
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x78]
shl edx, 1
mov dword [esp + 0x14], edx
sub eax, ecx
fild dword [esp + 0x14]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fmul qword [0x57f568]
fild dword [esp + 0x18]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
mov dword [esp + 0x14], eax
mov ecx, dword [ebx + 0x100]
fild dword [esp + 0x14]
sub ecx, dword [ebx + 0xf0]
fstp qword [esp + 0x2c]
fild dword [edi + 8]
mov dword [esp + 0x14], ecx
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [0x57f540]
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [edi + 4]
add esp, 8
fdiv qword [ebx + 0xd0]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x30]
fstp qword [esp]
call fcn.004bd890
add esp, 8
lea edx, [esp + 0x184]
push eax
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
fild dword [edi + 0x10]
mov eax, dword [ebx + 0x100]
mov ecx, dword [ebx + 0xf0]
sub eax, ecx
sub esp, 8
fdiv qword [ebx + 0xd0]
mov dword [esp + 0x14], eax
fmul qword [0x57f530]
fadd qword [0x57f540]
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [edi + 0xc]
add esp, 8
fdiv qword [ebx + 0xd0]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x30]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject
lea ecx, [esp + 0x80]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x80], 0x57f4d8
lea ecx, [esp + 0x80]
mov byte [esp + 0x1e0], 0x15
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov byte [esp + 0x1e0], 0
mov dword [esp + 0x80], 0x57f4c4
jmp 0x40ca5c
cmp ecx, edx
jle 0x40ca5c
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], 0x57f4f8
fild dword [edi + 0x14]
mov edx, dword [edi + 0x18]
sub esp, 8
mov byte [esp + 0x1e8], 0x16
mov dword [esp + 0x14], edx
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [esp + 0x14]
add esp, 8
push ecx
push eax
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x8c]
call sub.MFC42.DLL_CGdiObject::Attach
lea edx, [esp + 0x88]
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::SelectObject
mov ecx, dword [ebx + 0x70]
mov edx, dword [ebx + 0x78]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0xcc]
sub edx, ecx
mov dword [esp + 0x10], ecx
lea eax, [eax + eax*4]
sub esp, 8
shl eax, 1
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fmul qword [0x57f568]
fild dword [esp + 0x18]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x10]
add esp, 8
sub eax, ecx
mov dword [esp + 0x30], 0
mov dword [esp + 0xc], eax
je 0x40c470
mov eax, edx
mov edx, dword [edi + 4]
sub eax, edx
mov edx, dword [ebx + 0x100]
sub edx, ecx
mov ecx, dword [edi + 4]
imul eax, edx
cdq
idiv dword [esp + 0xc]
add eax, ecx
mov dword [esp + 0x30], eax
fild dword [esp + 0x14]
mov eax, dword [ebx + 0x100]
mov ecx, dword [ebx + 0xf0]
mov dword [esp + 0x10], eax
sub eax, ecx
fstp qword [esp + 0x14]
fild dword [esp + 0x10]
mov dword [esp + 0xc], eax
sub esp, 8
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [0x57f540]
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [esp + 0x38]
add esp, 8
fdiv qword [ebx + 0xd0]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x20]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, esi
push eax
lea eax, [esp + 0x170]
push eax
call sub.MFC42.DLL_CDC::MoveTo
fild dword [edi + 0x10]
mov ecx, dword [ebx + 0x100]
mov edx, dword [ebx + 0xf0]
sub ecx, edx
sub esp, 8
fdiv qword [ebx + 0xd0]
mov dword [esp + 0x14], ecx
fmul qword [0x57f530]
fadd qword [0x57f540]
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [edi + 0xc]
add esp, 8
fdiv qword [ebx + 0xd0]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x20]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esp + 0x24]
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::SelectObject
lea ecx, [esp + 0x88]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x88], 0x57f4d8
lea ecx, [esp + 0x88]
mov byte [esp + 0x1e0], 0x17
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov byte [esp + 0x1e0], 0
mov dword [esp + 0x88], 0x57f4c4
jmp 0x40ca5c
cmp eax, dword [edi + 0x10]
je 0x40ca5c
cmp edx, dword [edi + 0xc]
je 0x40ca5c
mov ecx, dword [ebx + 0x104]
mov edx, dword [edi + 0x10]
cmp edx, ecx
jle 0x40ca5c
cmp eax, dword [ebx + 0x100]
jg 0x40c823
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 0x57f4f8
fild dword [edi + 0x14]
mov eax, dword [edi + 0x18]
sub esp, 8
mov byte [esp + 0x1e8], 0x18
mov dword [esp + 0x14], eax
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [esp + 0x14]
add esp, 8
push ecx
push eax
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x74]
call sub.MFC42.DLL_CGdiObject::Attach
lea edx, [esp + 0x70]
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::SelectObject
mov ecx, dword [ebx + 0x70]
mov edx, dword [ebx + 0x78]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0xcc]
sub edx, ecx
mov dword [esp + 0x10], ecx
lea eax, [eax + eax*4]
sub esp, 8
shl eax, 1
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fmul qword [0x57f568]
fild dword [esp + 0x18]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x10]
add esp, 8
sub eax, ecx
mov dword [esp + 0x30], 0
mov dword [esp + 0xc], eax
je 0x40c6e1
mov eax, dword [ebx + 0x104]
sub eax, ecx
mov ecx, dword [edi + 4]
sub edx, ecx
imul eax, edx
cdq
idiv dword [esp + 0xc]
add eax, ecx
mov dword [esp + 0x30], eax
fild dword [esp + 0x14]
mov eax, dword [ebx + 0x100]
mov ecx, dword [ebx + 0xf0]
mov dword [esp + 0x10], eax
sub eax, ecx
fstp qword [esp + 0x14]
fild dword [esp + 0x10]
mov dword [esp + 0xc], eax
sub esp, 8
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [0x57f540]
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [edi + 4]
add esp, 8
fdiv qword [ebx + 0xd0]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x20]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, esi
push eax
lea eax, [esp + 0x190]
push eax
call sub.MFC42.DLL_CDC::MoveTo
fild dword [ebx + 0x104]
mov ecx, dword [ebx + 0x100]
mov eax, dword [ebx + 0xf0]
sub ecx, eax
sub esp, 8
fdiv qword [ebx + 0xd0]
mov dword [esp + 0x14], ecx
fmul qword [0x57f530]
fadd qword [0x57f540]
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [esp + 0x38]
add esp, 8
fdiv qword [ebx + 0xd0]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x20]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esp + 0x24]
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::SelectObject
lea ecx, [esp + 0x70]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x70], 0x57f4d8
lea ecx, [esp + 0x70]
mov byte [esp + 0x1e0], 0x19
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov byte [esp + 0x1e0], 0
mov dword [esp + 0x70], 0x57f4c4
jmp 0x40ca5c
cmp eax, ecx
jge 0x40ca5c
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0x57f4f8
fild dword [edi + 0x14]
mov eax, dword [edi + 0x18]
sub esp, 8
mov byte [esp + 0x1e8], 0x1a
mov dword [esp + 0x14], eax
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [esp + 0x14]
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, esi
push edx
call sub.MFC42.DLL_CDC::SelectObject
mov ecx, dword [ebx + 0x70]
mov edx, dword [ebx + 0x78]
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0xcc]
sub edx, ecx
mov dword [esp + 0x10], ecx
lea eax, [eax + eax*4]
sub esp, 8
shl eax, 1
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fmul qword [0x57f568]
fild dword [esp + 0x18]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x10]
add esp, 8
sub eax, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], 0
mov dword [esp + 0xc], eax
je 0x40c926
mov eax, dword [ebx + 0x104]
sub eax, ecx
mov ecx, dword [edi + 4]
sub edx, ecx
imul eax, edx
cdq
idiv dword [esp + 0xc]
add eax, ecx
mov dword [esp + 0x30], eax
fild dword [esp + 0x14]
mov eax, dword [ebx + 0x100]
mov ecx, dword [ebx + 0xf0]
sub eax, ecx
sub esp, 8
fstp qword [esp + 0x1c]
fild dword [esp + 0x2c]
mov dword [esp + 0x14], eax
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [0x57f540]
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [edi + 4]
add esp, 8
fdiv qword [ebx + 0xd0]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x20]
fstp qword [esp]
call fcn.004bd890
add esp, 8
lea ecx, [esp + 0x40]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
fild dword [ebx + 0x104]
mov edx, dword [ebx + 0x100]
mov eax, dword [ebx + 0xf0]
sub edx, eax
sub esp, 8
fdiv qword [ebx + 0xd0]
mov dword [esp + 0x14], edx
fmul qword [0x57f530]
fadd qword [0x57f540]
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [esp + 0x38]
add esp, 8
fdiv qword [ebx + 0xd0]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x20]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x5c]
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::SelectObject
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x54], 0x57f4d8
lea ecx, [esp + 0x54]
mov byte [esp + 0x1e0], 0x1b
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov byte [esp + 0x1e0], 0
mov dword [esp + 0x54], 0x57f4c4
mov eax, dword [esp + 0x34]
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x34], eax
jne 0x40b27d
mov eax, dword [0x5b62c4]
mov cl, byte [0x5b62c8]
xor edx, edx
mov dword [esp + 0xf4], eax
mov byte [esp + 0xf8], cl
mov ecx, 6
xor eax, eax
lea edi, [esp + 0xf9]
mov dword [esp + 0xd8], edx
mov dword [esp + 0xdc], edx
mov dword [esp + 0xe0], edx
mov dword [esp + 0xe4], edx
mov dword [esp + 0xe8], edx
mov byte [esp + 0xec], dl
mov byte [esp + 0xed], 1
mov byte [esp + 0xee], dl
mov byte [esp + 0xef], 0x86
mov byte [esp + 0xf0], dl
mov byte [esp + 0xf1], dl
mov byte [esp + 0xf2], dl
mov byte [esp + 0xf3], dl
mov dword [esp + 0x30], edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x38]
mov dword [esp + 0x14], edx
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [ebp + 0x10]
mov byte [esp + 0x1e0], 0x1c
call fcn.004ccdc0
mov edx, eax
dec eax
test edx, edx
mov dword [esp + 0x5c], eax
je 0x40d60f
mov eax, dword [esp + 0x5c]
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004ccd90
mov edx, eax
mov eax, dword [ebx + 0x104]
mov dword [esp + 0x1c], edx
mov ecx, dword [edx + 0x10]
add ecx, 3
cmp ecx, eax
mov dword [esp + 0x10], ecx
jg 0x40cb61
mov ecx, dword [edx + 8]
mov esi, dword [ebx + 0x100]
sub ecx, 3
cmp ecx, esi
jge 0x40cbd0
mov esi, dword [edx + 0x54]
mov edi, 0x5b62b4
mov dl, byte [esi]
mov cl, dl
cmp dl, byte [edi]
jne 0x40cb8d
test cl, cl
je 0x40cb89
mov dl, byte [esi + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x40cb8d
add esi, 2
add edi, 2
test cl, cl
jne 0x40cb69
xor ecx, ecx
jmp 0x40cb92
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
je 0x40cbcc
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jle 0x40cbac
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 8]
sub esi, 3
cmp esi, eax
jl 0x40cbd0
mov eax, dword [ebx + 0x100]
cmp ecx, eax
jle 0x40d5e0
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 8]
sub edx, 3
cmp edx, eax
jge 0x40d5e0
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x54]
mov edi, 0x5b62b4
mov al, byte [esi]
mov cl, al
cmp al, byte [edi]
jne 0x40cbfc
test cl, cl
je 0x40cbf8
mov al, byte [esi + 1]
mov cl, al
cmp al, byte [edi + 1]
jne 0x40cbfc
add esi, 2
add edi, 2
test cl, cl
jne 0x40cbd8
xor ecx, ecx
jmp 0x40cc01
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x40cc09
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x1c]
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 + 0x150]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.004c29f0
add esp, 0x78
test eax, eax
jne 0x40ccf5
mov eax, dword [esp + 0x30]
test eax, eax
je 0x40cc5b
mov ecx, dword [ebp + 8]
push eax
mov edx, dword [ecx]
call dword [edx + 0x30]
lea ecx, [ebx + 0xb4]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov eax, dword [esp + 0x1c]
sub esp, 0x3c
mov ecx, 0xf
mov edi, esp
lea esi, [eax + 0x14]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x150]
push ecx
call fcn.004c2960
fild dword [esp + 0x154]
add esp, 0x38
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
add esp, 8
lea edx, [esp + 0x114]
mov dword [esp + 0x114], eax
lea esi, [ebx + 0xb4]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
mov ecx, esi
call sub.MFC42.DLL_CGdiObject::Attach
mov eax, dword [esp + 0x1c]
sub esp, 0x3c
mov ecx, 0xf
mov edi, esp
lea esi, [eax + 0x14]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x114]
push ecx
call fcn.004c2960
mov ecx, dword [ebp + 8]
add esp, 0x40
lea eax, [ebx + 0xb4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x30]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0xcc]
mov ecx, dword [ebx + 0x70]
mov edx, dword [ebx + 0x78]
mov dword [esp + 0x10], ecx
lea eax, [eax + eax*4]
sub edx, ecx
shl eax, 1
mov dword [esp + 0xc], eax
sub esp, 8
fild dword [esp + 0x14]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fmul qword [0x57f568]
fild dword [esp + 0x18]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
mov esi, dword [esp + 0x24]
mov ecx, dword [ebx + 0x104]
mov dword [esp + 0x3c], eax
add esp, 8
mov eax, dword [esi + 0x10]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], eax
add eax, 3
cmp eax, ecx
mov dword [esp + 0x10], eax
jg 0x40cd84
mov eax, dword [esi + 8]
mov ecx, dword [ebx + 0x100]
sub eax, 3
cmp eax, ecx
jge 0x40cdd1
mov edi, dword [esi + 0x54]
mov eax, 0x5b62b4
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x40cdb0
test cl, cl
je 0x40cdac
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x40cdb0
add edi, 2
add eax, 2
test cl, cl
jne 0x40cd8c
xor eax, eax
jmp 0x40cdb5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40ceb9
mov eax, dword [ebx + 0xec]
mov ecx, dword [ebx + 0xe8]
cmp eax, ecx
jne 0x40ceb9
mov ecx, dword [ebx + 0x100]
mov edx, dword [ebx + 0xf0]
sub ecx, edx
sub esp, 8
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fild dword [esp + 0x2c]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [0x57f540]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
fild dword [esp + 0x3c]
mov edi, eax
fstp qword [esp + 0x24]
fild dword [esi + 0xc]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [esp + 0x24]
fstp qword [esp]
call fcn.004bd890
mov edx, dword [ebx + 0x100]
mov dword [esp + 0x2c], eax
sub edx, dword [ebx + 0xf0]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fild dword [esi + 8]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [0x57f540]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 4]
mov dword [esp + 0x14], eax
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [esp + 0x24]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x14]
add esp, 8
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
jmp 0x40d206
mov edi, dword [esi + 0x54]
mov eax, 0x5b62b4
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x40cee5
test cl, cl
je 0x40cee1
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x40cee5
add edi, 2
add eax, 2
test cl, cl
jne 0x40cec1
xor eax, eax
jmp 0x40ceea
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40d018
mov eax, dword [ebx + 0xec]
mov ecx, dword [ebx + 0xe8]
cmp eax, ecx
je 0x40d018
mov edx, dword [esp + 0x1c]
mov eax, dword [0x5c01a4]
mov ecx, 0xfffffffd
mov edi, dword [ebx + 0xf0]
sub ecx, edx
mov edx, dword [ebx + 0x100]
sub ecx, eax
sub edx, edi
mov dword [esp + 0xc], ecx
sub esp, 8
fild dword [esp + 0x14]
mov dword [esp + 0x14], edx
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsub qword [0x57f540]
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
faddp st(1)
fstp qword [esp]
call fcn.004bd890
fild dword [esp + 0x3c]
mov edi, eax
fstp qword [esp + 0x24]
fild dword [esi + 0xc]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [esp + 0x24]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [ebx + 0x104]
mov dword [esp + 0x2c], eax
mov eax, 0xfffffffd
sub eax, ecx
mov ecx, dword [ebx + 0x100]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0xf0]
fild dword [esp + 0x14]
sub ecx, eax
mov dword [esp + 0x14], ecx
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsub qword [0x57f540]
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
faddp st(1)
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 4]
mov dword [esp + 0x14], eax
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [esp + 0x24]
fstp qword [esp]
call fcn.004bd890
mov edx, dword [esp + 0x14]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x2c]
add esp, 8
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
jmp 0x40d206
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jle 0x40d11c
mov ecx, dword [esi + 8]
sub ecx, 3
cmp ecx, eax
jge 0x40d11c
mov edx, dword [ebx + 0x100]
mov edi, dword [ebx + 0xf0]
sub edx, edi
sub esp, 8
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fild dword [esp + 0x24]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [0x57f540]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
fild dword [esp + 0x3c]
mov edi, eax
fstp qword [esp + 0x24]
fild dword [esi + 0xc]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [esp + 0x24]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [ebx + 0xf0]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x100]
sub eax, ecx
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fild dword [esi + 8]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [0x57f540]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 4]
mov dword [esp + 0x14], eax
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [esp + 0x24]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
add esp, 8
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
jmp 0x40d202
mov eax, dword [ebx + 0x100]
mov edi, dword [ebx + 0xf0]
sub eax, edi
sub esp, 8
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fild dword [esp + 0x2c]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [0x57f540]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
fild dword [esp + 0x3c]
mov edi, eax
fstp qword [esp + 0x24]
fild dword [esi + 0xc]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [esp + 0x24]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [ebx + 0xf0]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x100]
mov dword [esp + 0x18], eax
sub eax, ecx
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fild dword [esp + 0x18]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [0x57f540]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 4]
mov dword [esp + 0x14], eax
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [esp + 0x24]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
add esp, 8
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x1a0]
push eax
mov dword [esp + 0x4c], edi
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov ecx, dword [esi + 0x50]
xor eax, eax
xor edi, edi
mov edx, dword [ecx - 8]
mov dword [esp + 0x10], edi
dec edx
test edx, edx
jle 0x40d24d
cmp byte [eax + ecx], 0xd
jne 0x40d240
cmp byte [eax + ecx + 1], 0xa
jne 0x40d240
inc edi
inc eax
cmp eax, edx
jl 0x40d232
test edi, edi
mov dword [esp + 0x10], edi
jne 0x40d255
mov dword [esp + 0x10], 1
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0x64]
push edx
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1a0]
imul edx, ecx
lea eax, [ecx - 1]
lea ecx, [esp + 0x38]
imul eax, dword [esp + 0x1b0]
add eax, edx
mov dword [esp + 0x1c], eax
lea eax, [esi + 0x50]
push eax
call sub.MFC42.DLL_CString::operator_2
mov edi, dword [esi + 0x54]
mov eax, 0x5b6224
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x40d2b9
test cl, cl
je 0x40d2b5
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x40d2b9
add edi, 2
add eax, 2
test cl, cl
jne 0x40d295
xor eax, eax
jmp 0x40d2be
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40d367
push ecx
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, ebx
call fcn.004054e0
test eax, eax
je 0x40d367
mov eax, dword [ebx + 0x2f0]
test eax, eax
jne 0x40d31d
push 0x32
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll_atof]
fcomp qword [0x57f4f0]
add esp, 4
fnstsw ax
test ah, 0x40
je 0x40d31d
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::Empty
jmp 0x40d367
mov eax, dword [ebx + 0x2ec]
test eax, eax
je 0x40d367
push ecx
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x50]
mov ecx, ebx
push eax
call fcn.00405650
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1e4], 0x1d
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1e0], 0x1c
call sub.MFC42.DLL_CString::CString
mov edi, dword [esi + 0x54]
mov eax, 0x5b62bc
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x40d393
test cl, cl
je 0x40d38f
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x40d393
add edi, 2
add eax, 2
test cl, cl
jne 0x40d36f
xor eax, eax
jmp 0x40d398
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40d3ed
mov eax, dword [esi + 0x80]
test eax, eax
je 0x40d3ed
mov eax, dword [esp + 0x10]
cmp eax, 1
jg 0x40d3ed
mov edx, dword [esp + 0x3c]
sub esp, 0x10
mov ecx, esp
push 0x3d
mov dword [ecx], edx
mov edx, dword [esp + 0x54]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x58]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x5c]
mov dword [ecx + 0xc], edx
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x30]
push ecx
push edx
push eax
mov eax, dword [ebp + 8]
push esi
push eax
mov ecx, ebx
call fcn.00413800
jmp 0x40d5e0
mov edi, dword [esi + 0x54]
mov eax, 0x5b62bc
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x40d419
test cl, cl
je 0x40d415
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x40d419
add edi, 2
add eax, 2
test cl, cl
jne 0x40d3f5
xor eax, eax
jmp 0x40d41e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40d486
mov eax, dword [esi + 0x84]
test eax, eax
je 0x40d486
mov eax, dword [esp + 0x10]
mov edi, 1
cmp eax, edi
jg 0x40d48b
mov edx, dword [esp + 0x3c]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x50]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x54]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x58]
mov dword [ecx + 0xc], edx
mov ecx, dword [ebx + 0x100]
mov edx, dword [ebx + 0xf0]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x34]
push 0x3d
push ecx
push edx
push eax
mov eax, dword [ebp + 8]
push esi
push eax
call fcn.004c3cf0
add esp, 0x30
jmp 0x40d5e0
mov edi, 1
mov eax, dword [esi + 0x78]
test eax, eax
jne 0x40d499
mov ecx, dword [esi + 0x7c]
test ecx, ecx
je 0x40d50a
mov ecx, 2
cmp eax, ecx
jne 0x40d4ad
mov edx, dword [esi + 0x7c]
test edx, edx
je 0x40d5c8
cmp eax, edi
jne 0x40d4bc
mov edx, dword [esi + 0x7c]
test edx, edx
je 0x40d56b
test eax, eax
jne 0x40d51d
cmp dword [esi + 0x7c], edi
jne 0x40d4eb
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
sub eax, ecx
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x1c]
cdq
sub eax, edx
mov edx, ecx
sar esi, 1
sar eax, 1
add edx, esi
add eax, edx
cmp eax, ecx
jge 0x40d50a
jmp 0x40d506
test eax, eax
jne 0x40d51d
cmp dword [esi + 0x7c], ecx
jne 0x40d51d
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x1c]
add eax, ecx
mov ecx, dword [esp + 0x40]
cmp ecx, eax
jle 0x40d50a
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [ebp + 8]
push 0
mov edx, dword [eax - 8]
mov esi, dword [ecx]
jmp 0x40d5d6
cmp eax, edi
jne 0x40d57a
cmp dword [esi + 0x7c], edi
jne 0x40d54c
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
sub eax, ecx
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x1c]
cdq
sub eax, edx
mov edx, ecx
sar esi, 1
sar eax, 1
add edx, esi
add eax, edx
cmp eax, ecx
jge 0x40d56b
jmp 0x40d567
cmp eax, edi
jne 0x40d57a
cmp dword [esi + 0x7c], ecx
jne 0x40d57a
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x1c]
add eax, ecx
mov ecx, dword [esp + 0x40]
cmp ecx, eax
jle 0x40d56b
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [ebp + 8]
push edi
mov edx, dword [eax - 8]
mov esi, dword [ecx]
jmp 0x40d5d6
cmp eax, ecx
jne 0x40d5e0
cmp dword [esi + 0x7c], edi
jne 0x40d5a9
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
sub eax, ecx
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x1c]
cdq
sub eax, edx
mov edx, ecx
sar esi, 1
sar eax, 1
add edx, esi
add eax, edx
cmp eax, ecx
jge 0x40d5c8
jmp 0x40d5c4
cmp eax, ecx
jne 0x40d5e0
cmp dword [esi + 0x7c], ecx
jne 0x40d5e0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x1c]
add eax, ecx
mov ecx, dword [esp + 0x40]
cmp ecx, eax
jle 0x40d5c8
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [ebp + 8]
push 2
mov edx, dword [eax - 8]
mov esi, dword [ecx]
lea edi, [esp + 0x40]
push edi
push edx
push eax
call dword [esi + 0x70]
mov eax, dword [esp + 0x5c]
mov edx, eax
dec eax
test edx, edx
mov dword [esp + 0x5c], eax
jne 0x40cb2a
mov eax, dword [esp + 0x30]
test eax, eax
je 0x40d60f
mov ecx, dword [ebp + 8]
push eax
mov edx, dword [ecx]
call dword [edx + 0x30]
lea ecx, [ebx + 0xb4]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov eax, dword [ebx + 0xcc]
mov ecx, dword [ebx + 0x70]
mov edx, dword [ebx + 0x78]
mov dword [esp + 0x10], ecx
lea eax, [eax + eax*4]
sub edx, ecx
shl eax, 1
mov dword [esp + 0x4c], eax
sub esp, 8
fild dword [esp + 0x54]
mov dword [esp + 0x54], edx
fild dword [esp + 0x54]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fmul qword [0x57f568]
fild dword [esp + 0x18]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
mov dword [esp + 0x54], eax
fild dword [esp + 0x54]
fstp qword [esp + 0x5c]
fild dword [ebx + 0x78]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsub qword [0x57f538]
fadd qword [esp + 0x5c]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [ebx + 0xf0]
mov dword [esp + 0xc0], eax
mov eax, dword [ebx + 0x100]
sub eax, ecx
mov ecx, 0xffffffe7
mov dword [esp + 0x54], eax
mov eax, dword [0x5c01a4]
fild dword [esp + 0x54]
sub ecx, eax
mov dword [esp + 0x54], ecx
fdiv qword [ebx + 0xd0]
fild dword [esp + 0x54]
fdiv qword [ebx + 0xd0]
faddp st(1)
fild dword [ebx + 0x104]
fdiv qword [ebx + 0xd0]
fsubp st(1)
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
fild dword [ebx + 0x78]
mov dword [esp + 0xc4], eax
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [esp + 0x5c]
fstp qword [esp]
call fcn.004bd890
mov edx, dword [ebx + 0x100]
mov edi, dword [ebx + 0xf0]
mov esi, dword [0x5c01a4]
sub edx, edi
mov dword [esp + 0x54], edx
mov dword [esp + 0xc8], eax
fild dword [esp + 0x54]
mov eax, 0xffffffd3
sub eax, esi
fdiv qword [ebx + 0xd0]
mov dword [esp + 0x54], eax
fild dword [esp + 0x54]
fdiv qword [ebx + 0xd0]
faddp st(1)
fild dword [ebx + 0x104]
fdiv qword [ebx + 0xd0]
fsubp st(1)
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov dword [esp + 0xc4], eax
mov eax, dword [0x5c0288]
cmp eax, 1
jne 0x40d906
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_3
push 0x5b6364
lea ecx, [esp + 0x20]
mov byte [esp + 0x1e4], 0x1e
call sub.MFC42.DLL_CString::operator_1
push 0xa
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebx + 0xe8]
mov edi, dword [sym.imp.MSVCRT.dll__itoa]
mov esi, eax
push 0xa
push esi
push ecx
call edi
add esp, 0x10
lea ecx, [esp + 0x1c]
push esi
call fcn.00557276
push 0x5b635c
lea ecx, [esp + 0x20]
call fcn.00557276
mov edx, dword [ebx + 0xec]
push 0xa
push esi
push edx
call edi
add esp, 0xc
lea ecx, [esp + 0x1c]
push esi
call fcn.00557276
push 0x5b6358
lea ecx, [esp + 0x20]
call fcn.00557276
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0x57f4b0
mov esi, dword [esp + 0x14]
mov ecx, dword [ebp + 8]
mov byte [esp + 0x1e0], 0x1f
mov edx, dword [esi + 0x64]
mov eax, dword [ecx]
push edx
call dword [eax + 0x38]
sub esp, 0x3c
mov dword [esp + 0x88], eax
add esi, 0x14
mov ecx, 0xf
mov edi, esp
lea eax, [esp + 0x150]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.004c2960
fild dword [esp + 0x154]
add esp, 0x38
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
add esp, 8
lea ecx, [esp + 0x114]
mov dword [esp + 0x114], eax
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_CGdiObject::Attach
mov esi, dword [ebp + 8]
lea eax, [esp + 0x54]
push eax
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x30]
mov edx, dword [esi]
mov edi, eax
mov eax, dword [esp + 0x1c]
lea ebx, [esp + 0xb8]
push 0x25
push ebx
mov ecx, dword [eax - 8]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x70]
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x30]
mov eax, dword [esp + 0x4c]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x38]
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x54], 0x57f4d8
lea ecx, [esp + 0x54]
mov byte [esp + 0x1e0], 0x20
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x1c]
mov dword [esp + 0x54], 0x57f4c4
mov byte [esp + 0x1e0], 0x1c
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x1e0], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0xa0], 0x57f4d8
lea ecx, [esp + 0xa0]
mov dword [esp + 0x1e0], 0x21
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x1d8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc