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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5594ee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1ac
mov eax, dword [ebp + 0xc]
push ebx
push esi
cmp eax, 1
push edi
mov ebx, ecx
jne 0x4127e7
mov eax, dword [ebx + 0xcc]
mov ecx, dword [ebx + 0x70]
mov edx, dword [ebx + 0x78]
mov dword [esp + 0x4c], 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 + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fmul qword [0x57f568]
fild dword [esp + 0x54]
fdiv qword [ebx + 0xd0]
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 0x41282a
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 + 0x70]
fdiv qword [ebx + 0xd0]
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
mov ecx, dword [ebp + 0x10]
xor esi, esi
mov dword [esp + 0x4c], esi
call fcn.004ccdc0
mov ecx, dword [0x5b62c4]
mov edx, eax
mov al, byte [0x5b62c8]
mov dword [esp + 0x90], ecx
mov byte [esp + 0x94], al
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x95]
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov byte [esp + 0x88], 0
mov byte [esp + 0x89], 1
mov byte [esp + 0x8a], 0
mov byte [esp + 0x8b], 0x86
mov byte [esp + 0x8c], 0
mov byte [esp + 0x8d], 0
mov byte [esp + 0x8e], 0
mov byte [esp + 0x8f], 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 0x413026
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, dword [ebp + 0x10]
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 0x41290f
test al, al
je 0x41290b
mov dl, byte [esi + 1]
mov al, dl
cmp dl, byte [edi + 1]
jne 0x41290f
add esi, 2
add edi, 2
test al, al
jne 0x4128eb
xor eax, eax
jmp 0x412914
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x412984
mov edi, 0x5b6314
mov esi, ecx
mov dl, byte [esi]
mov al, dl
cmp dl, byte [edi]
jne 0x412943
test al, al
je 0x41293f
mov dl, byte [esi + 1]
mov al, dl
cmp dl, byte [edi + 1]
jne 0x412943
add esi, 2
add edi, 2
test al, al
jne 0x41291f
xor eax, eax
jmp 0x412948
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x412984
mov edi, 0x5b630c
mov esi, ecx
mov dl, byte [esi]
mov al, dl
cmp dl, byte [edi]
jne 0x412977
test al, al
je 0x412973
mov dl, byte [esi + 1]
mov al, dl
cmp dl, byte [edi + 1]
jne 0x412977
add esi, 2
add edi, 2
test al, al
jne 0x412953
xor eax, eax
jmp 0x41297c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x412ff5
mov edi, 0x5b62bc
mov esi, ecx
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x4129b3
test al, al
je 0x4129af
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x4129b3
add esi, 2
add edi, 2
test al, al
jne 0x41298b
xor eax, eax
jmp 0x4129b8
sbb eax, eax
sbb eax, 0xffffffff
mov ecx, dword [ebp + 8]
test eax, eax
jne 0x412b3d
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 + 0x180]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.004c2960
mov eax, dword [esp + 0x184]
add esp, 0x40
lea edx, [esp + 0x144]
lea esi, [ebx + 0xac]
lea ecx, [eax + eax*2]
push edx
mov dword [esp + 0x148], ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
mov ecx, esi
call sub.MFC42.DLL_CGdiObject::Attach
mov edi, dword [ebp + 8]
push esi
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x30]
mov edx, dword [edi + 8]
lea ecx, [esp + 0x180]
push ecx
push edx
mov dword [esp + 0x14], eax
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
cmp dword [ebp + 0xc], 1
jne 0x412a6b
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x368]
mov eax, dword [ebx + 0xcc]
mov ecx, dword [ecx - 8]
lea eax, [eax + eax*4]
imul ecx, dword [esp + 0x194]
shl eax, 1
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
jmp 0x412acd
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebx + 0x78]
sub esp, 8
mov eax, dword [edx + 0x368]
mov edx, dword [ebx + 0x70]
sub ecx, edx
mov dword [esp + 0x4c], ecx
mov eax, dword [eax - 8]
fild dword [esp + 0x4c]
imul eax, dword [esp + 0x19c]
fdiv qword [ebx + 0xd0]
mov dword [esp + 0x4c], eax
mov eax, dword [0x5c0274]
lea edx, [eax + eax*4]
shl edx, 1
fmul qword [0x57f530]
fild dword [esp + 0x4c]
mov dword [esp + 0x4c], edx
fsubp st(1)
fmul qword [0x57f568]
fild dword [esp + 0x4c]
faddp st(1)
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x14]
sub esp, 8
mov ecx, dword [eax + 8]
neg ecx
mov dword [esp + 0x4c], ecx
fild dword [esp + 0x4c]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fisub dword [esp + 0x38]
fstp qword [esp]
call fcn.004bd890
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
add esp, 8
mov ecx, dword [edx + 0x368]
mov edx, dword [ecx - 8]
mov dword [esp + 0x44], edx
push dword [esp + 0x44]
mov edx, dword [edi]
push ecx
push eax
mov eax, dword [esp + 0x78]
mov ecx, edi
push eax
call dword [edx + 0x64]
mov eax, dword [esp + 0xc]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x30]
mov ecx, esi
call sub.MFC42.DLL_CGdiObject::DeleteObject
jmp 0x412ff5
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 + 0xec]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.004c29f0
add esp, 0x78
test eax, eax
jne 0x412c32
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x412b98
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 + 0x14]
sub esp, 0x3c
mov ecx, 0xf
mov edi, esp
lea esi, [eax + 0x14]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x144]
push ecx
call fcn.004c2960
fild dword [esp + 0x148]
add esp, 0x38
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
add esp, 8
lea edx, [esp + 0x108]
mov dword [esp + 0x108], 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 + 0x14]
sub esp, 0x3c
mov ecx, 0xf
mov edi, esp
lea esi, [eax + 0x14]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xb0]
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 + 0x1c], eax
mov esi, dword [esp + 0x14]
sub esp, 8
fild dword [esp + 0x38]
mov eax, dword [esi + 0x10]
neg eax
fstp qword [esp + 0x3c]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsub qword [esp + 0x3c]
fstp qword [esp]
call fcn.004bd890
fild dword [esp + 0x48]
mov edi, eax
fstp qword [esp + 0x1c]
fild dword [esi + 0xc]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [esp + 0x1c]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [esi + 8]
mov dword [esp + 0x4c], eax
neg ecx
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsub qword [esp + 0x3c]
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 + 0x1c]
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 + 0xd0]
mov edx, dword [edi + 8]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
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 + 0xd0]
fmul qword [0x57f530]
fidiv dword [esp + 0xec]
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 0x412d72
mov ecx, dword [esp + 0x14]
cmp byte [eax + ecx], 0xd
jne 0x412d5f
cmp byte [eax + ecx + 1], 0xa
jne 0x412d5f
inc edx
inc ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xc]
cmp dword [esp + 0x14], ecx
jl 0x412d4d
test edx, edx
jne 0x412d77
mov edx, 1
mov eax, dword [esp + 0xd0]
lea ecx, [edx - 1]
imul ecx, dword [esp + 0xe0]
imul eax, edx
add ecx, eax
mov eax, dword [esi + 0x80]
test eax, eax
mov dword [esp + 0x14], ecx
je 0x412ddf
cmp edx, 1
jg 0x412ddf
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.00413800
jmp 0x412ff5
mov eax, dword [esi + 0x84]
test eax, eax
je 0x412e3b
cmp edx, 1
jg 0x412e3b
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 + 0x100]
mov ecx, dword [ebx + 0xf0]
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 0x412ff5
mov eax, dword [esi + 0x78]
test eax, eax
jne 0x412e58
mov edx, dword [esi + 0x7c]
test edx, edx
jne 0x412e58
mov esi, dword [esi + 0x50]
mov edx, dword [edi]
push 0
mov eax, dword [esi - 8]
jmp 0x412fe9
cmp eax, 2
jne 0x412e68
mov edx, dword [esi + 0x7c]
test edx, edx
je 0x412fdf
mov edx, 1
cmp eax, edx
jne 0x412e93
cmp dword [esi + 0x7c], 0
jne 0x412e93
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 0x412ff5
test eax, eax
jne 0x412f0a
cmp dword [esi + 0x7c], edx
jne 0x412edf
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 0x412ed0
mov dword [esp + 0x24], eax
mov esi, dword [esi + 0x50]
mov edx, dword [edi]
push 0
mov eax, dword [esi - 8]
jmp 0x412fe9
test eax, eax
jne 0x412f0a
cmp dword [esi + 0x7c], 2
jne 0x412f0a
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
add ecx, edx
cmp eax, ecx
jle 0x412efb
mov dword [esp + 0x24], ecx
mov esi, dword [esi + 0x50]
mov edx, dword [edi]
push 0
mov eax, dword [esi - 8]
jmp 0x412fe9
cmp eax, edx
jne 0x412f85
cmp dword [esi + 0x7c], edx
jne 0x412f50
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 0x412f41
mov dword [esp + 0x24], eax
mov esi, dword [esi + 0x50]
mov edx, dword [edi]
push 1
mov eax, dword [esi - 8]
jmp 0x412fe9
cmp eax, edx
jne 0x412f85
cmp dword [esi + 0x7c], 2
jne 0x412f85
mov eax, dword [esp + 0x2c]
add ecx, eax
mov eax, dword [esp + 0x24]
cmp eax, ecx
jle 0x412f6c
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 0x412ff5
cmp eax, 2
jne 0x412ff5
cmp dword [esi + 0x7c], edx
jne 0x412fc1
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 0x412fdf
jmp 0x412fdb
cmp eax, 2
jne 0x412ff5
cmp dword [esi + 0x7c], 2
jne 0x412ff5
mov edx, dword [esp + 0x2c]
lea eax, [edx + ecx]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
jle 0x412fdf
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 + 0x4c]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x4c], eax
jl 0x4128d0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x413026
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 ecx, dword [ebp + 0x10]
call fcn.004cc990
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x1c], eax
je 0x4137e3
mov edi, dword [ebp + 8]
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x10]
push edx
call fcn.004cc960
mov esi, eax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jne 0x4131cc
cmp eax, dword [ebx + 0x108]
jg 0x4131cc
xor eax, eax
mov dword [esp + 0x44], 0x57f4f8
mov dword [esp + 0x48], eax
fild dword [esi + 0x14]
mov dword [esp + 0x1c0], eax
mov eax, dword [esi + 0x18]
sub esp, 8
mov dword [esp + 0x18], eax
fdiv qword [ebx + 0xd0]
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 + 0x48]
call sub.MFC42.DLL_CGdiObject::Attach
lea edx, [esp + 0x44]
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 + 0x34]
fild dword [esp + 0x40]
mov dword [esp + 0x10], eax
sub esp, 8
fstp qword [esp + 0x1c]
fild dword [esp + 0x18]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsub qword [esp + 0x3c]
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 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 + 0xcc]
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 + 0xd0]
fmul qword [0x57f530]
fsub qword [esp + 0x3c]
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 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, 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 + 0x44], 0x57f4d8
lea ecx, [esp + 0x44]
mov dword [esp + 0x1c0], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x1c0], 0xffffffff
mov dword [esp + 0x44], 0x57f4c4
jmp 0x4137d0
mov edx, dword [esi + 4]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jne 0x4134af
mov ecx, dword [ebx + 0x108]
cmp eax, ecx
jge 0x4134a6
cmp dword [esi + 0x10], ecx
jge 0x41334a
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0x57f4f8
fild dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
sub esp, 8
mov dword [esp + 0x1c8], 2
mov dword [esp + 0x18], ecx
fdiv qword [ebx + 0xd0]
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 + 0x50]
call sub.MFC42.DLL_CGdiObject::Attach
lea eax, [esp + 0x4c]
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 + 0x3c]
fild dword [esp + 0x48]
fstp qword [esp + 0x1c]
fild dword [esi + 8]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [esp + 0x3c]
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 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 + 0xbc]
push eax
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::MoveTo
fild dword [esi + 0x10]
sub esp, 8
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [esp + 0x3c]
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 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, 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 + 0x4c], 0x57f4d8
lea ecx, [esp + 0x4c]
mov dword [esp + 0x1c0], 3
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x1c0], 0xffffffff
mov dword [esp + 0x4c], 0x57f4c4
jmp 0x4137d0
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 + 0x1c8], 4
mov dword [esp + 0x18], eax
fdiv qword [ebx + 0xd0]
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 + 0x3c]
fild dword [esp + 0x48]
fstp qword [esp + 0x1c]
fild dword [esi + 8]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [esp + 0x3c]
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 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, edi
push eax
lea eax, [esp + 0xc8]
push eax
call sub.MFC42.DLL_CDC::MoveTo
fild dword [ebx + 0x108]
sub esp, 8
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [esp + 0x3c]
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 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, 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 + 0x1c0], 5
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x1c0], 0xffffffff
mov dword [esp + 0x64], 0x57f4c4
jmp 0x4137d0
cmp edx, dword [esi + 0xc]
je 0x4137d0
mov edx, dword [esi + 0x10]
cmp eax, edx
je 0x4137d0
mov ecx, dword [ebx + 0x108]
cmp eax, ecx
jge 0x4137d0
cmp edx, ecx
jg 0x413626
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 + 0x1c8], 6
mov dword [esp + 0x18], edx
fdiv qword [ebx + 0xd0]
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 + 0x3c]
fild dword [esp + 0x48]
fstp qword [esp + 0x1c]
fild dword [esi + 8]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [esp + 0x3c]
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 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, 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 + 0xd0]
fmul qword [0x57f530]
fadd qword [esp + 0x3c]
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 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, 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 + 0x1c0], 7
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x1c0], 0xffffffff
mov dword [esp + 0x5c], 0x57f4c4
jmp 0x4137d0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0x57f4f8
fild dword [esi + 0x14]
mov edx, dword [esi + 0x18]
sub esp, 8
mov dword [esp + 0x1c8], 8
mov dword [esp + 0x18], edx
fdiv qword [ebx + 0xd0]
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 [esi + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 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 0x4136dc
fild dword [ebx + 0x108]
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 + 0x6c]
jmp 0x4136de
fstp st(0)
fstp st(0)
fstp st(0)
fild dword [esp + 0x30]
sub esp, 8
fstp qword [esp + 0x3c]
fild dword [esp + 0x48]
fstp qword [esp + 0x1c]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [esp + 0x3c]
fchs
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 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, edi
push eax
lea eax, [esp + 0xb8]
push eax
call sub.MFC42.DLL_CDC::MoveTo
fild dword [ebx + 0x108]
sub esp, 8
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [esp + 0x3c]
fchs
fstp qword [esp]
call fcn.004bd890
fld qword [esp + 0x74]
fdiv qword [ebx + 0xd0]
add esp, 8
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x20]
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 + 0x54], 0x57f4d8
lea ecx, [esp + 0x54]
mov dword [esp + 0x1c0], 9
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x1c0], 0xffffffff
mov dword [esp + 0x54], 0x57f4c4
mov eax, dword [esp + 0x1c]
mov edx, eax
dec eax
test edx, edx
mov dword [esp + 0x1c], eax
jne 0x413040
mov ecx, dword [esp + 0x1b8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc