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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55958e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
lea eax, [esp + 0x78]
mov ebx, ecx
push eax
push edi
call fcn.004c56f0
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x88]
mov dword [ebx + 0x74], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebx + 0x7c], edx
mov edx, dword [esp + 0x80]
add esp, 8
cmp ecx, 1
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x70], edx
jne 0x413d98
mov ecx, dword [ebx + 0xcc]
sub eax, edx
sub esp, 8
lea ecx, [ecx + ecx*4]
shl ecx, 1
mov dword [esp + 0x20], ecx
fild dword [esp + 0x20]
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fmul qword [0x57f568]
fild dword [esp + 0x80]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
mov edx, dword [ebp + 0x10]
add esp, 8
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], edx
jmp 0x413ddf
mov eax, dword [0x5c0274]
sub esp, 8
lea eax, [eax + eax*4]
shl eax, 1
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fild dword [esp + 0x80]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
mov dword [esp + 0x30], eax
mov eax, dword [0x5c0278]
add esp, 8
lea eax, [eax + eax*4]
shl eax, 1
mov dword [esp + 0x1c], eax
xor esi, esi
mov ecx, edi
mov dword [esp + 0x18], esi
call fcn.004ccdc0
mov ecx, dword [0x5b62c4]
mov edx, eax
mov al, byte [0x5b62c8]
mov dword [esp + 0xa4], ecx
mov byte [esp + 0xa8], al
mov ecx, 6
xor eax, eax
lea edi, [esp + 0xa9]
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], esi
mov byte [esp + 0x9c], 0
mov byte [esp + 0x9d], 1
mov byte [esp + 0x9e], 0
mov byte [esp + 0x9f], 0x86
mov byte [esp + 0xa0], 0
mov byte [esp + 0xa1], 0
mov byte [esp + 0xa2], 0
mov byte [esp + 0xa3], 0
cmp edx, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x10], edx
mov dword [esp + 0x44], esi
stosb byte es:[edi], al
jle 0x414386
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.004ccd90
mov esi, dword [eax + 0x54]
mov dword [esp + 0x20], eax
mov edi, 0x5b630c
mov dl, byte [esi]
mov cl, dl
cmp dl, byte [edi]
jne 0x413eca
test cl, cl
je 0x413ec6
mov dl, byte [esi + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x413eca
add esi, 2
add edi, 2
test cl, cl
jne 0x413ea6
xor ecx, ecx
jmp 0x413ecf
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x414351
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 0x64]
push eax
mov edx, dword [ecx]
call dword [edx + 0x38]
mov ecx, dword [esp + 0x20]
sub esp, 0x3c
mov edi, esp
sub esp, 0x3c
lea esi, [ecx + 0x14]
mov ecx, 0xf
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xf
lea esi, [esp + 0x100]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.004c29f0
add esp, 0x78
test eax, eax
jne 0x413fd3
mov eax, dword [esp + 0x44]
test eax, eax
je 0x413f35
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 + 0x20]
sub esp, 0x3c
mov ecx, 0xf
mov edi, esp
lea esi, [eax + 0x14]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x158]
push ecx
call fcn.004c2960
fild dword [esp + 0x15c]
add esp, 0x38
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
add esp, 8
lea edx, [esp + 0x11c]
mov dword [esp + 0x11c], 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 + 0x20]
sub esp, 0x3c
mov ecx, 0xf
mov edi, esp
lea esi, [eax + 0x14]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xc4]
push ecx
call fcn.004c2960
mov esi, dword [ebp + 8]
add esp, 0x40
lea eax, [ebx + 0xb4]
mov ecx, esi
mov edx, dword [esi]
push eax
call dword [edx + 0x30]
mov dword [esp + 0x44], eax
jmp 0x413fd6
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x20]
mov eax, dword [ebx + 0x74]
fild dword [esp + 0x1c]
mov edx, dword [edi + 0x10]
sub esp, 8
sub eax, edx
fstp qword [esp + 0x54]
sub eax, 3
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsub qword [esp + 0x54]
fstp qword [esp]
call fcn.004bd890
fild dword [esp + 0x30]
mov dword [esp + 0x1c], eax
fstp qword [esp + 0x44]
fild dword [edi + 0xc]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [esp + 0x44]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [ebx + 0x74]
mov edx, dword [edi + 8]
sub ecx, edx
mov dword [esp + 0x5c], eax
sub ecx, 3
mov dword [esp + 0x28], ecx
fild dword [esp + 0x28]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsub qword [esp + 0x54]
fstp qword [esp]
call fcn.004bd890
fild dword [edi + 4]
mov dword [esp + 0x28], eax
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [esp + 0x44]
fstp qword [esp]
call fcn.004bd890
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x5c]
add esp, 8
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov eax, dword [esi + 8]
lea edx, [esp + 0xe4]
mov dword [esp + 0x38], ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 4]
sub ecx, edx
sub esp, 8
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fidiv dword [esp + 0x100]
fstp qword [esp]
call fcn.004bd890
mov eax, dword [edi + 0x50]
add esp, 8
xor edx, edx
mov dword [esp + 0x20], 0
mov ecx, dword [eax - 8]
dec ecx
test ecx, ecx
mov dword [esp + 0x14], ecx
jle 0x414125
mov ecx, dword [esp + 0x20]
cmp byte [eax + ecx], 0xd
jne 0x414112
cmp byte [eax + ecx + 1], 0xa
jne 0x414112
inc edx
inc ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x20], ecx
jl 0x414100
test edx, edx
jne 0x41412a
mov edx, 1
mov eax, dword [esp + 0xe4]
lea ecx, [edx - 1]
imul ecx, dword [esp + 0xf4]
imul eax, edx
add ecx, eax
mov eax, dword [edi + 0x80]
test eax, eax
je 0x41416a
cmp edx, 1
jg 0x41416a
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
push edx
push edi
push esi
mov ecx, ebx
call fcn.00414b50
jmp 0x414351
mov eax, dword [edi + 0x84]
test eax, eax
je 0x4141a1
cmp edx, 1
jg 0x4141a1
mov eax, dword [ebx + 0x100]
push eax
mov eax, dword [ebx + 0xf0]
push eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x34]
push eax
push ecx
push edx
push edi
push esi
mov ecx, ebx
call fcn.00415040
jmp 0x414351
mov edx, dword [edi + 0x78]
test edx, edx
jne 0x4141b3
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x414238
mov eax, 2
cmp edx, eax
jne 0x4141c6
cmp dword [edi + 0x7c], 0
je 0x41433c
cmp edx, 1
jne 0x4141e0
cmp dword [edi + 0x7c], 0
jne 0x4141e0
mov edi, dword [edi + 0x50]
mov edx, dword [esi]
push 1
mov ecx, dword [edi - 8]
jmp 0x414345
test edx, edx
jne 0x41424d
cmp dword [edi + 0x7c], 1
jne 0x41421c
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
sub eax, edx
cdq
sub eax, edx
mov edx, eax
mov eax, ecx
mov ecx, dword [esp + 0x30]
sar edx, 1
mov dword [esp + 0x14], edx
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
sar eax, 1
add ecx, edx
add eax, ecx
mov ecx, dword [esp + 0x30]
cmp eax, ecx
jge 0x414238
jmp 0x414234
test edx, edx
jne 0x41424d
cmp dword [edi + 0x7c], eax
jne 0x41424d
mov edx, dword [esp + 0x38]
lea eax, [edx + ecx]
mov ecx, dword [esp + 0x30]
cmp ecx, eax
jle 0x414238
mov dword [esp + 0x30], eax
mov edi, dword [edi + 0x50]
mov edx, dword [esi]
lea ecx, [esp + 0x2c]
push 0
mov eax, dword [edi - 8]
push ecx
push eax
jmp 0x41434b
cmp edx, 1
jne 0x4142d1
cmp dword [edi + 0x7c], edx
jne 0x41429a
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
sub eax, edx
cdq
sub eax, edx
mov edx, eax
mov eax, ecx
sar edx, 1
mov ecx, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x30]
sar eax, 1
add edx, ecx
mov ecx, dword [esp + 0x30]
add eax, edx
cmp eax, ecx
jge 0x414285
mov dword [esp + 0x30], eax
mov edi, dword [edi + 0x50]
mov edx, dword [esi]
lea ecx, [esp + 0x2c]
push 1
mov eax, dword [edi - 8]
push ecx
push eax
jmp 0x41434b
cmp edx, 1
jne 0x4142d1
cmp dword [edi + 0x7c], eax
jne 0x4142d1
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
add ecx, edx
cmp eax, ecx
jle 0x4142b6
mov dword [esp + 0x30], ecx
mov edi, dword [edi + 0x50]
mov eax, dword [esi]
lea edx, [esp + 0x2c]
push 1
mov ecx, dword [edi - 8]
push edx
push ecx
push edi
mov ecx, esi
call dword [eax + 0x70]
jmp 0x414351
cmp edx, eax
jne 0x414351
cmp dword [edi + 0x7c], 1
jne 0x414321
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
sub eax, edx
cdq
sub eax, edx
mov edx, eax
mov eax, ecx
mov ecx, dword [esp + 0x30]
sar edx, 1
mov dword [esp + 0x14], edx
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
sar eax, 1
add ecx, edx
add eax, ecx
mov ecx, dword [esp + 0x30]
cmp eax, ecx
jge 0x41430f
mov dword [esp + 0x30], eax
mov edi, dword [edi + 0x50]
mov edx, dword [esi]
lea ecx, [esp + 0x2c]
push 2
mov eax, dword [edi - 8]
push ecx
push eax
jmp 0x41434b
cmp edx, eax
jne 0x414351
cmp dword [edi + 0x7c], eax
jne 0x414351
mov edx, dword [esp + 0x38]
add ecx, edx
mov edx, dword [esp + 0x30]
cmp edx, ecx
jle 0x41433c
mov dword [esp + 0x30], ecx
mov edi, dword [edi + 0x50]
mov edx, dword [esi]
push eax
mov ecx, dword [edi - 8]
lea eax, [esp + 0x30]
push eax
push ecx
push edi
mov ecx, esi
call dword [edx + 0x70]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x413e8d
mov eax, dword [esp + 0x44]
test eax, eax
je 0x414386
mov edi, dword [ebp + 8]
push eax
mov ecx, edi
mov edx, dword [edi]
call dword [edx + 0x30]
lea ecx, [ebx + 0xb4]
call sub.MFC42.DLL_CGdiObject::DeleteObject
jmp 0x414389
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
call fcn.004cc990
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x18], eax
je 0x414b30
jmp 0x4143a6
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0x14]
push eax
call fcn.004cc960
mov esi, eax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jne 0x41451c
cmp eax, dword [ebx + 0x108]
jg 0x41451c
xor eax, eax
mov dword [esp + 0x54], 0x57f4f8
mov dword [esp + 0x58], eax
mov dword [esp + 0x160], eax
mov eax, dword [ebx + 0x350]
cdq
idiv dword [ebx + 0x354]
mov ecx, dword [esi + 0x18]
push ecx
push eax
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_CGdiObject::Attach
lea edx, [esp + 0x54]
mov ecx, edi
push edx
call sub.MFC42.DLL_CDC::SelectObject
fild dword [esp + 0x1c]
mov ecx, dword [esi + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x74]
sub esp, 8
fstp qword [esp + 0x54]
fild dword [esp + 0x30]
sub eax, ecx
mov dword [esp + 0x18], eax
fstp qword [esp + 0x44]
fild dword [esp + 0x18]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsub qword [esp + 0x54]
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 + 0x48]
fstp qword [esp]
call fcn.004bd890
add esp, 8
lea ecx, [esp + 0xe0]
push eax
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [ebx + 0x74]
mov ecx, dword [esi + 8]
sub edx, ecx
sub esp, 8
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsub qword [esp + 0x54]
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 + 0x48]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, edi
push eax
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x14]
mov ecx, edi
push eax
call sub.MFC42.DLL_CDC::SelectObject
mov dword [esp + 0x54], 0x57f4d8
lea ecx, [esp + 0x54]
mov dword [esp + 0x160], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x160], 0xffffffff
mov dword [esp + 0x54], 0x57f4c4
jmp 0x414b1d
mov edx, dword [esi + 4]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jne 0x4147ff
mov ecx, dword [ebx + 0x108]
cmp eax, ecx
jge 0x4147f6
cmp dword [esi + 0x10], ecx
jge 0x41469a
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0x57f4f8
mov eax, dword [ebx + 0x350]
mov ecx, dword [esi + 0x18]
cdq
idiv dword [ebx + 0x354]
push ecx
mov dword [esp + 0x164], 2
push eax
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CGdiObject::Attach
lea ecx, [esp + 0x44]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::SelectObject
fild dword [esp + 0x1c]
mov edx, dword [ebx + 0x74]
mov ecx, dword [esi + 8]
sub edx, ecx
sub esp, 8
fstp qword [esp + 0x54]
fild dword [esp + 0x30]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
fstp qword [esp + 0x44]
fild dword [esp + 0x18]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsub qword [esp + 0x54]
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 + 0x48]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, edi
push eax
lea eax, [esp + 0xdc]
push eax
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esi + 0x10]
mov edx, dword [ebx + 0x74]
sub ecx, edx
sub esp, 8
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [esp + 0x54]
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 + 0x48]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, edi
push eax
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esp + 0x14]
mov ecx, edi
push edx
call sub.MFC42.DLL_CDC::SelectObject
mov dword [esp + 0x44], 0x57f4d8
lea ecx, [esp + 0x44]
mov dword [esp + 0x160], 3
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x160], 0xffffffff
mov dword [esp + 0x44], 0x57f4c4
jmp 0x414b1d
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0x57f4f8
mov eax, dword [ebx + 0x350]
mov ecx, dword [esi + 0x18]
cdq
idiv dword [ebx + 0x354]
push ecx
mov dword [esp + 0x164], 4
push eax
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CGdiObject::Attach
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call sub.MFC42.DLL_CDC::SelectObject
fild dword [esp + 0x1c]
mov ecx, dword [ebx + 0x74]
mov edx, dword [esi + 8]
sub ecx, edx
sub esp, 8
fstp qword [esp + 0x54]
fild dword [esp + 0x30]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
fstp qword [esp + 0x44]
fild dword [esp + 0x18]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsub qword [esp + 0x54]
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 + 0x48]
fstp qword [esp]
call fcn.004bd890
add esp, 8
lea edx, [esp + 0xd0]
mov ecx, edi
push eax
push edx
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [ebx + 0x108]
mov ecx, dword [ebx + 0x74]
sub eax, ecx
sub esp, 8
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fadd qword [esp + 0x54]
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 + 0x48]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, edi
push eax
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::SelectObject
mov dword [esp + 0x20], 0x57f4d8
lea ecx, [esp + 0x20]
mov dword [esp + 0x160], 5
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x160], 0xffffffff
mov dword [esp + 0x20], 0x57f4c4
jmp 0x414b1d
cmp edx, dword [esi + 0xc]
je 0x414b1d
mov edx, dword [esi + 0x10]
cmp eax, edx
je 0x414b1d
mov ecx, dword [ebx + 0x108]
cmp eax, ecx
jge 0x414b1d
cmp edx, ecx
jg 0x41497c
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0x57f4f8
mov eax, dword [ebx + 0x350]
mov ecx, dword [esi + 0x18]
cdq
idiv dword [ebx + 0x354]
push ecx
mov dword [esp + 0x164], 6
push eax
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x60]
call sub.MFC42.DLL_CGdiObject::Attach
lea edx, [esp + 0x5c]
mov ecx, edi
push edx
call sub.MFC42.DLL_CDC::SelectObject
fild dword [esp + 0x28]
mov ecx, dword [esi + 8]
mov edx, dword [ebx + 0x74]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
fstp qword [esp + 0x3c]
neg eax
mov dword [esp + 0x10], eax
sub ecx, edx
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
sub esp, 8
fild dword [esp + 0x18]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
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 + 0x48]
fstp qword [esp]
call fcn.004bd890
add esp, 8
lea edx, [esp + 0x30]
mov ecx, edi
push eax
push edx
call sub.MFC42.DLL_CDC::MoveTo
fild dword [esi + 8]
sub esp, 8
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fild dword [esi + 0x10]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fiadd dword [esp + 0x24]
fsubp st(1)
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 0xc]
add esp, 8
fdiv qword [ebx + 0xd0]
push eax
sub esp, 8
fmul qword [0x57f530]
fadd qword [esp + 0x48]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, edi
push eax
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x14]
mov ecx, edi
push eax
call sub.MFC42.DLL_CDC::SelectObject
mov dword [esp + 0x5c], 0x57f4d8
lea ecx, [esp + 0x5c]
mov dword [esp + 0x160], 7
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x160], 0xffffffff
mov dword [esp + 0x5c], 0x57f4c4
jmp 0x414b1d
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0x57f4f8
mov eax, dword [ebx + 0x350]
mov ecx, dword [esi + 0x18]
cdq
idiv dword [ebx + 0x354]
push ecx
mov dword [esp + 0x164], 8
push eax
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x68]
call sub.MFC42.DLL_CGdiObject::Attach
lea ecx, [esp + 0x64]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::SelectObject
mov ecx, dword [esi + 8]
mov dword [esp + 0x14], eax
fild dword [esi + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x6c], 0
fild dword [esp + 0x10]
fild dword [esi + 0xc]
fild dword [esi + 0x10]
mov dword [esp + 0x70], 0
fsub st(2)
fcom qword [0x57f4f0]
fnstsw ax
test ah, 0x40
jne 0x414a18
fild dword [ebx + 0x108]
fsub st(3)
fxch st(2)
fsub st(4)
fmulp st(2)
fxch st(1)
fdiv st(1)
fadd st(3)
fstp qword [esp + 0x6c]
jmp 0x414a1a
fstp st(0)
mov edx, dword [esp + 0x1c]
sub esp, 8
fstp st(0)
fstp st(0)
fstp st(0)
fild dword [esp + 0x30]
neg edx
mov dword [esp + 0x18], edx
mov edx, dword [ebx + 0x74]
fstp qword [esp + 0x44]
fild dword [esp + 0x18]
sub ecx, edx
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
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 + 0x48]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, edi
push eax
lea eax, [esp + 0xcc]
push eax
call sub.MFC42.DLL_CDC::MoveTo
fild dword [ebx + 0x318]
sub esp, 8
fdiv qword [ebx + 0xd0]
fmul qword [0x57f530]
fiadd dword [esp + 0x24]
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 + 0x48]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov ecx, edi
push eax
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::SelectObject
mov dword [esp + 0x64], 0x57f4d8
lea ecx, [esp + 0x64]
mov dword [esp + 0x160], 9
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x160], 0xffffffff
mov dword [esp + 0x64], 0x57f4c4
mov eax, dword [esp + 0x18]
mov edx, eax
dec eax
test edx, edx
mov dword [esp + 0x18], eax
jne 0x4143a2
mov ecx, dword [esp + 0x158]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10