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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55946c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov ebx, ecx
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 + 0xc], eax
je 0x412046
mov edx, dword [esp + 0xc]
mov ecx, dword [ebp + 0x10]
push edx
call fcn.004cc960
mov edi, eax
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], 0x57f4f8
fild dword [edi + 0x14]
mov dword [esp + 0x108], eax
mov eax, dword [edi + 0x18]
sub esp, 8
mov dword [esp + 0x1c], eax
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [esp + 0x1c]
add esp, 8
push ecx
push eax
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CGdiObject::Attach
lea edx, [esp + 0x2c]
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::SelectObject
mov ecx, dword [ebx + 0x70]
mov edx, dword [ebx + 0x78]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0xcc]
sub edx, ecx
mov dword [esp + 0x18], ecx
lea eax, [eax + eax*4]
sub esp, 8
shl eax, 1
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fmul qword [0x57f568]
fild dword [esp + 0x20]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 8]
fild dword [esp + 0x1c]
neg eax
mov dword [esp + 0x1c], eax
fstp qword [esp + 0x4c]
fild dword [esp + 0x1c]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsub qword [0x57f540]
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 + 0x50]
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
mov edx, dword [edi + 0x10]
sub esp, 8
neg edx
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsub qword [0x57f540]
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 + 0x50]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x38]
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::SelectObject
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x2c], 0x57f4d8
lea ecx, [esp + 0x2c]
mov dword [esp + 0x108], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov eax, dword [esp + 0xc]
mov dword [esp + 0x108], 0xffffffff
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x2c], 0x57f4c4
mov dword [esp + 0xc], eax
jne 0x411e6b
mov eax, dword [0x5b62c4]
mov cl, byte [0x5b62c8]
xor edx, edx
mov dword [esp + 0x6c], eax
mov byte [esp + 0x70], cl
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x71]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], edx
mov byte [esp + 0x64], dl
mov byte [esp + 0x65], 1
mov byte [esp + 0x66], dl
mov byte [esp + 0x67], 0x86
mov byte [esp + 0x68], dl
mov byte [esp + 0x69], dl
mov byte [esp + 0x6a], dl
mov byte [esp + 0x6b], dl
mov dword [esp + 0x14], edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x10]
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x108], 2
call fcn.004ccdc0
mov edx, eax
dec eax
test edx, edx
mov dword [esp + 0x38], eax
je 0x412720
mov eax, dword [esp + 0x38]
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004ccd90
mov esi, dword [eax + 0x54]
mov dword [esp + 0xc], eax
mov edi, 0x5b62bc
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x412111
test al, al
je 0x41210d
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x412111
add esi, 2
add edi, 2
test al, al
jne 0x4120e9
xor eax, eax
jmp 0x412116
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4126f1
mov eax, dword [esp + 0xc]
sub esp, 0x3c
mov ecx, 0xf
mov edi, esp
lea esi, [eax + 0x14]
sub esp, 0x3c
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xf
lea esi, [esp + 0xc8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.004c29f0
add esp, 0x78
test eax, eax
jne 0x41220a
mov eax, dword [esp + 0x14]
test eax, eax
je 0x412170
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 + 0xc]
sub esp, 0x3c
mov ecx, 0xf
mov edi, esp
lea esi, [eax + 0x14]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xc8]
push ecx
call fcn.004c2960
fild dword [esp + 0xcc]
add esp, 0x38
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
add esp, 8
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 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 + 0xc]
sub esp, 0x3c
mov ecx, 0xf
mov edi, esp
lea esi, [eax + 0x14]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x8c]
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 + 0x14], eax
mov eax, dword [ebx + 0xcc]
mov ecx, dword [ebx + 0x70]
mov edx, dword [ebx + 0x78]
mov dword [esp + 0x18], ecx
lea eax, [eax + eax*4]
sub edx, ecx
shl eax, 1
mov dword [esp + 0x3c], eax
sub esp, 8
fild dword [esp + 0x44]
mov dword [esp + 0x44], edx
fild dword [esp + 0x44]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fmul qword [0x57f568]
fild dword [esp + 0x20]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
mov esi, dword [esp + 0x14]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x10]
neg eax
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsub qword [0x57f540]
fstp qword [esp]
call fcn.004bd890
fild dword [esp + 0x44]
mov edi, eax
fstp qword [esp + 0x34]
fild dword [esi + 0xc]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [esp + 0x34]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [esi + 8]
mov dword [esp + 0x20], eax
neg ecx
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsub qword [0x57f540]
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 + 0x34]
fstp qword [esp]
call fcn.004bd890
mov edx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], edx
mov edx, dword [ebp + 8]
add esp, 8
mov dword [esp + 0x24], eax
lea ecx, [esp + 0xc8]
mov eax, dword [edx + 8]
push ecx
push eax
mov dword [esp + 0x30], edi
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov eax, dword [esi + 0x50]
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov edx, dword [eax - 8]
dec edx
test edx, edx
jle 0x41235e
mov edi, ecx
cmp byte [eax + ecx], 0xd
jne 0x412351
cmp byte [eax + ecx + 1], 0xa
jne 0x412351
inc edi
inc ecx
cmp ecx, edx
jl 0x412343
test edi, edi
mov dword [esp + 0xc], edi
jne 0x412366
mov dword [esp + 0xc], 1
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x64]
push eax
mov edx, dword [ecx]
call dword [edx + 0x38]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0xc8]
imul edx, ecx
lea eax, [ecx - 1]
lea ecx, [esp + 0x10]
imul eax, dword [esp + 0xd8]
add eax, edx
mov dword [esp + 0x18], 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 0x4123ca
test cl, cl
je 0x4123c6
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x4123ca
add edi, 2
add eax, 2
test cl, cl
jne 0x4123a6
xor eax, eax
jmp 0x4123cf
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x412478
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, ebx
call fcn.004054e0
test eax, eax
je 0x412478
mov eax, dword [ebx + 0x2f0]
test eax, eax
jne 0x41242e
push 0x32
lea ecx, [esp + 0x14]
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 0x41242e
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Empty
jmp 0x412478
mov eax, dword [ebx + 0x2ec]
test eax, eax
je 0x412478
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x48]
mov ecx, ebx
push eax
call fcn.00405650
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x10c], 3
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x44]
mov byte [esp + 0x108], 2
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 0x4124a4
test cl, cl
je 0x4124a0
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x4124a4
add edi, 2
add eax, 2
test cl, cl
jne 0x412480
xor eax, eax
jmp 0x4124a9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4124fe
mov eax, dword [esi + 0x80]
test eax, eax
je 0x4124fe
mov eax, dword [esp + 0xc]
cmp eax, 1
jg 0x4124fe
mov edx, dword [esp + 0x1c]
sub esp, 0x10
mov ecx, esp
push 0x3d
mov dword [ecx], edx
mov edx, dword [esp + 0x34]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x3c]
mov dword [ecx + 0xc], edx
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x2c]
push ecx
push edx
push eax
mov eax, dword [ebp + 8]
push esi
push eax
mov ecx, ebx
call fcn.00413800
jmp 0x4126f1
mov edi, dword [esi + 0x54]
mov eax, 0x5b62bc
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x41252a
test cl, cl
je 0x412526
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x41252a
add edi, 2
add eax, 2
test cl, cl
jne 0x412506
xor eax, eax
jmp 0x41252f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x412597
mov eax, dword [esi + 0x84]
test eax, eax
je 0x412597
mov eax, dword [esp + 0xc]
mov edi, 1
cmp eax, edi
jg 0x41259c
mov edx, dword [esp + 0x1c]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x30]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x34]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 0xc], edx
mov ecx, dword [ebx + 0x100]
mov edx, dword [ebx + 0xf0]
push ecx
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x30]
push 0x3d
push ecx
push edx
push eax
mov eax, dword [ebp + 8]
push esi
push eax
call fcn.004c3cf0
add esp, 0x30
jmp 0x4126f1
mov edi, 1
mov eax, dword [esi + 0x78]
test eax, eax
jne 0x4125aa
mov ecx, dword [esi + 0x7c]
test ecx, ecx
je 0x41261b
mov ecx, 2
cmp eax, ecx
jne 0x4125be
mov edx, dword [esi + 0x7c]
test edx, edx
je 0x4126d9
cmp eax, edi
jne 0x4125cd
mov edx, dword [esi + 0x7c]
test edx, edx
je 0x41267c
test eax, eax
jne 0x41262e
cmp dword [esi + 0x7c], edi
jne 0x4125fc
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
sub eax, ecx
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x18]
cdq
sub eax, edx
mov edx, ecx
sar esi, 1
sar eax, 1
add edx, esi
add eax, edx
cmp eax, ecx
jge 0x41261b
jmp 0x412617
test eax, eax
jne 0x41262e
cmp dword [esi + 0x7c], ecx
jne 0x41262e
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
add eax, ecx
mov ecx, dword [esp + 0x20]
cmp ecx, eax
jle 0x41261b
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
push 0
mov edx, dword [eax - 8]
mov esi, dword [ecx]
jmp 0x4126e7
cmp eax, edi
jne 0x41268b
cmp dword [esi + 0x7c], edi
jne 0x41265d
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
sub eax, ecx
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x18]
cdq
sub eax, edx
mov edx, ecx
sar esi, 1
sar eax, 1
add edx, esi
add eax, edx
cmp eax, ecx
jge 0x41267c
jmp 0x412678
cmp eax, edi
jne 0x41268b
cmp dword [esi + 0x7c], ecx
jne 0x41268b
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
add eax, ecx
mov ecx, dword [esp + 0x20]
cmp ecx, eax
jle 0x41267c
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
push edi
mov edx, dword [eax - 8]
mov esi, dword [ecx]
jmp 0x4126e7
cmp eax, ecx
jne 0x4126f1
cmp dword [esi + 0x7c], edi
jne 0x4126ba
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
sub eax, ecx
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x18]
cdq
sub eax, edx
mov edx, ecx
sar esi, 1
sar eax, 1
add edx, esi
add eax, edx
cmp eax, ecx
jge 0x4126d9
jmp 0x4126d5
cmp eax, ecx
jne 0x4126f1
cmp dword [esi + 0x7c], ecx
jne 0x4126f1
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
add eax, ecx
mov ecx, dword [esp + 0x20]
cmp ecx, eax
jle 0x4126d9
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
push 2
mov edx, dword [eax - 8]
mov esi, dword [ecx]
lea edi, [esp + 0x20]
push edi
push edx
push eax
call dword [esi + 0x70]
mov eax, dword [esp + 0x38]
mov edx, eax
dec eax
test edx, edx
mov dword [esp + 0x38], eax
jne 0x4120d0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x412720
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
lea ecx, [esp + 0x10]
mov dword [esp + 0x108], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x100]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc