Function at 0x4027c0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4076e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
fld dword [esi + 0x1c]
fsin
fst dword [esp + 0x10]
fmul dword [0x408268]
call sub.MSVCRT.dll__ftol
xor edx, edx
cmp eax, edx
jge 0x4027fa
neg eax
mov cl, byte [esi + 8]
add eax, 0x96
cmp cl, dl
mov cl, al
jne 0x402823
sub cl, 0x28
and eax, 0xff
and ecx, 0xff
or ch, 0x50
shl ecx, 8
or ecx, eax
mov dword [esi + 0x2c], ecx
jmp 0x40283c
sub cl, 0x28
sub al, 0x14
xor ebx, ebx
and ecx, 0xff
mov bh, al
or ebx, ecx
shl ebx, 8
or ebx, ecx
mov dword [esi + 0x2c], ebx
fld dword [esi + 0x20]
fadd dword [esi + 0x1c]
fcom qword [esi + 0x10]
fst dword [esi + 0x1c]
fnstsw ax
test ah, 0x41
jne 0x402857
fld qword [esi + 0x10]
fsubr st(1)
fstp dword [esi + 0x1c]
fstp st(0)
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 0x408234
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x2c], edx
push eax
push 1
push edx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CGdiObject::Attach
mov edi, dword [esp + 0x34]
lea edx, [esp + 0x14]
push edx
mov ecx, edi
call sub.MFC42.DLL_CDC::SelectObject
fild dword [esi + 0x18]
mov ebx, eax
fadd dword [0x408264]
fmul dword [esp + 0x10]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x30]
sub ecx, eax
lea eax, [esp + 0x1c]
push ecx
push edx
push eax
mov ecx, edi
call sub.MFC42.DLL_CDC::MoveTo
fild dword [esi + 0x18]
fadd dword [0x408260]
fmul dword [esp + 0x10]
call sub.MSVCRT.dll__ftol
mov edx, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
add eax, edx
push eax
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esi + 0x34]
mov eax, dword [esi + 0x30]
push edx
mov edx, dword [esi + 0x18]
sub eax, edx
lea ecx, [esp + 0x20]
dec eax
push eax
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esi + 0x34]
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x18]
push edx
lea edx, [eax + ecx + 2]
mov ecx, edi
push edx
call sub.MFC42.DLL_CDC::LineTo
mov ebp, dword [esi + 0x18]
mov dword [esp + 0x34], ebp
fild dword [esp + 0x34]
fadd dword [0x408264]
fmul dword [esp + 0x10]
call sub.MSVCRT.dll__ftol
mov edx, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
sub edx, ebp
sub ecx, eax
dec edx
push ecx
lea eax, [esp + 0x20]
push edx
push eax
mov ecx, edi
call sub.MFC42.DLL_CDC::MoveTo
mov ebp, dword [esi + 0x18]
mov dword [esp + 0x34], ebp
fild dword [esp + 0x34]
fadd dword [0x408260]
fmul dword [esp + 0x10]
call sub.MSVCRT.dll__ftol
mov edx, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
add eax, edx
lea edx, [ecx + ebp + 2]
push eax
push edx
mov ecx, edi
call sub.MFC42.DLL_CDC::LineTo
mov ebp, dword [esi + 0x18]
mov dword [esp + 0x34], ebp
fild dword [esp + 0x34]
fadd dword [0x408264]
fmul dword [esp + 0x10]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x30]
sub ecx, eax
push ecx
lea eax, [edx + ebp + 1]
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::MoveTo
mov ebp, dword [esi + 0x18]
mov dword [esp + 0x34], ebp
fild dword [esp + 0x34]
fadd dword [0x408260]
fmul dword [esp + 0x10]
call sub.MSVCRT.dll__ftol
mov edx, dword [esi + 0x34]
mov ecx, edi
add eax, edx
mov edx, dword [esi + 0x30]
sub edx, ebp
push eax
sub edx, 2
push edx
call sub.MFC42.DLL_CDC::LineTo
push ebx
mov ecx, edi
call sub.MFC42.DLL_CDC::SelectObject
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x14], 0x408208
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4