Function at 0x408929
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea111
mov eax, dword fs:[0]
push eax
mov eax, 0x20e4
call fcn.00495d00
mov eax, dword [0x536260]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20d8], edi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00432abe
mov ecx, eax
call fcn.00456f97
push str.DoPaint___n
mov dword [ebp - 0x20d0], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [esi + 0x10884], 1
mov ecx, esi
je 0x40899c
call fcn.0040ad32
jmp 0x4089a1
call fcn.0040b497
push dword [esi + 0x3e0]
mov ecx, esi
lea ebx, [esi + 0x784]
call fcn.0043d94a
push eax
push ebx
push edi
call fcn.00442939
mov eax, dword [ebp - 0x20d0]
push 0x64
pop ecx
cdq
idiv ecx
push 0
push dword [esi + 0x76c]
mov dword [ebp - 0x20e8], eax
push eax
push ebx
push edi
call fcn.0044669d
cvttss2si edx, dword [esi + 0x778]
mov eax, dword [esi + 0x107c0]
add eax, dword [ebx]
mov ecx, dword [esi + 0x794]
push 0
mov dword [ebp - 0x2028], eax
lea eax, [ebp - 0x2030]
mov dword [ebp - 0x2030], ecx
push dword [esi + 0x76c]
mov dword [ebp - 0x202c], edx
push dword [ebp - 0x20e8]
mov dword [ebp - 0x2024], edx
push eax
push edi
call fcn.004465aa
lea eax, [esi + 0x10870]
mov dword [ebp - 0x20cc], 5
add esp, 0x34
mov dword [ebp - 0x20b8], eax
movd xmm0, dword [eax]
cvtdq2ps xmm0, xmm0
push ecx
mov ecx, esi
movss dword [esp], xmm0
call fcn.0040ac95
mov ecx, dword [ebx]
push 2
push dword [esi + 0x76c]
movd xmm0, eax
mov eax, dword [esi + 0x78c]
push dword [ebp - 0x20e8]
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x2018], eax
lea eax, [ebp - 0x2020]
push eax
push edi
mov dword [ebp - 0x2020], ecx
cvttss2si edx, xmm0
mov dword [ebp - 0x201c], edx
mov dword [ebp - 0x2014], edx
call fcn.004465aa
mov eax, dword [ebp - 0x20b8]
add esp, 0x14
add eax, 4
sub dword [ebp - 0x20cc], 1
mov dword [ebp - 0x20b8], eax
jne 0x408a40
push 0x1c
pop eax
lea ebx, [esi + 0x10800]
mov dword [ebp - 0x20b8], eax
cmp dword [ebx], 0x4e20
je 0x408b33
movd xmm0, dword [ebx]
cvtdq2ps xmm0, xmm0
push ecx
mov ecx, esi
movss dword [esp], xmm0
call fcn.0040abe2
mov ecx, dword [esi + 0x79c]
push 0
push dword [esi + 0x76c]
movd xmm0, eax
mov eax, dword [esi + 0x7a0]
push dword [ebp - 0x20e8]
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x201c], eax
lea eax, [ebp - 0x2020]
push eax
push edi
mov dword [ebp - 0x2014], ecx
cvttss2si edx, xmm0
mov dword [ebp - 0x2020], edx
mov dword [ebp - 0x2018], edx
call fcn.004465aa
mov eax, dword [ebp - 0x20b8]
add esp, 0x14
add ebx, 4
sub eax, 1
mov dword [ebp - 0x20b8], eax
jne 0x408ac4
lea ecx, [esi + 0x11c30]
call fcn.0042fcb7
or ebx, 0xffffffff
cmp al, 1
je 0x408b6e
push 0
lea ecx, [esi + 0x11c30]
call fcn.0042f4fb
push eax
push edi
mov ecx, esi
call fcn.0043d84c
jmp 0x408c06
cmp byte [esi + 0x11cd4], 0
je 0x408c06
mov eax, dword [esi + 0x784]
mov dword [ebp - 0x2020], eax
mov eax, dword [esi + 0x788]
add eax, 0x28
mov dword [ebp - 0x201c], eax
mov eax, dword [esi + 0x78c]
mov dword [ebp - 0x2018], eax
mov eax, dword [esi + 0x790]
push 0
mov dword [ebp - 0x2014], eax
lea eax, [ebp - 0x20b4]
push str._all_bypass
push eax
call fcn.00403cdb
mov ecx, eax
call fcn.0043045b
push dword [esi + 0x750]
and dword [ebp - 4], 0
mov ecx, eax
push dword [esi + 0x107c8]
push 0x77777777
call fcn.0042fad9
push eax
lea eax, [ebp - 0x2020]
push eax
push dword [esi + 0x44]
push edi
call fcn.00446b82
add esp, 0x1c
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x20b4]
call fcn.0042f32e
xor eax, eax
mov ecx, 0x200
mov dword [ebp - 0x20cc], eax
cmp dword [esi + 0x107b4], eax
jle 0x409030
lea ebx, [esi + 0x107d0]
lea edx, [esi + 0x17a0]
mov dword [ebp - 0x20d4], ebx
mov dword [ebp - 0x20b8], edx
cmp eax, dword [esi + 0x780]
je 0x409008
cmp byte [esi + eax + 0x107a8], 0
je 0x409008
movd xmm0, dword [0x53507c]
mov edx, ecx
mov eax, dword [esi + 0x794]
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x20ec], eax
xor eax, eax
mov dword [ebp - 0x20e0], eax
lea eax, [ebp - 0x2010]
movss dword [ebp - 0x20e4], xmm0
movss dword [ebp - 0x20c8], xmm0
and dword [eax + 4], 0
and dword [eax], 0
lea eax, [eax + 8]
sub edx, 1
jne 0x408c88
lea eax, [ebp - 0x1010]
and dword [eax + 4], 0
and dword [eax], 0
lea eax, [eax + 8]
sub ecx, 1
jne 0x408c9d
mov ecx, dword [ebp - 0x20b8]
mov edx, 0x1ff
mov edi, dword [0x53507c]
mov ebx, dword [ebp - 0x20e0]
mov dword [ebp - 0x20dc], edx
mov dword [ebp - 0x20c4], ecx
mov eax, dword [0x535080]
xorps xmm3, xmm3
movsd xmm1, qword [ecx]
add eax, 0xfffffff6
movd xmm2, eax
lea eax, [edi + 0x64]
movd xmm0, eax
cvtdq2pd xmm2, xmm2
cvtdq2pd xmm0, xmm0
maxsd xmm2, qword [ecx]
minsd xmm1, xmm0
ucomisd xmm2, xmm1
lahf
test ah, 0x44
jp 0x408d07
movsd xmm3, qword [ecx]
ucomisd xmm3, qword [0x4f5a00]
movsd xmm0, qword [ecx + 0x1000]
movsd qword [ebp - 0x2018], xmm0
lahf
test ah, 0x44
jnp 0x408e8c
cvtpd2ps xmm0, xmm3
push ecx
mov ecx, esi
movss dword [esp], xmm0
call fcn.0040abe2
push ecx
mov ecx, esi
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x20e0], xmm0
movsd xmm0, qword [ebp - 0x2018]
cvtpd2ps xmm0, xmm0
movss dword [esp], xmm0
call fcn.0040ac95
movd xmm0, dword [ebp - 0x20ec]
movss xmm3, dword [ebp - 0x20e0]
cvtdq2ps xmm0, xmm0
movd xmm4, eax
comiss xmm3, xmm0
cvtdq2ps xmm4, xmm4
movss dword [ebp - 0x2014], xmm4
jb 0x408df9
movd xmm0, dword [0x53507c]
movss xmm1, dword [ebp - 0x20e4]
movss xmm2, dword [ebp - 0x20c8]
cvtdq2ps xmm0, xmm0
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x408dcb
ucomiss xmm2, xmm0
lahf
test ah, 0x44
jp 0x408dcb
movaps xmm0, xmm3
movss dword [ebp - 0x20c8], xmm4
movss dword [ebp - 0x20e4], xmm0
jmp 0x408e01
movaps xmm0, xmm3
addss xmm0, xmm1
mulss xmm0, dword [0x4f5a08]
movss dword [ebp - 0x20e4], xmm0
movaps xmm0, xmm4
addss xmm0, xmm2
mulss xmm0, dword [0x4f5a08]
movss dword [ebp - 0x20c8], xmm0
movss xmm0, dword [ebp - 0x20e4]
push ecx
movss dword [esp], xmm0
call fcn.004b8d4a
call fcn.00495d30
movss xmm0, dword [ebp - 0x20c8]
mov dword [ebp + ebx*8 - 0x1010], eax
movss dword [esp], xmm0
call fcn.004b8d4a
call fcn.00495d30
movss xmm0, dword [ebp - 0x20e0]
mov dword [ebp + ebx*8 - 0x100c], eax
inc ebx
movss dword [esp], xmm0
call fcn.004b8d4a
call fcn.00495d30
mov ecx, dword [ebp - 0x20dc]
movss xmm0, dword [ebp - 0x2014]
movss dword [esp], xmm0
mov dword [ebp + ecx*8 - 0x2010], eax
call fcn.004b8d4a
pop ecx
call fcn.00495d30
mov edx, dword [ebp - 0x20dc]
mov ecx, dword [ebp - 0x20c4]
mov edi, dword [0x53507c]
mov dword [ebp + edx*8 - 0x200c], eax
dec edx
sub ecx, 8
mov dword [ebp - 0x20dc], edx
mov dword [ebp - 0x20c4], ecx
test edx, edx
jns 0x408ccf
mov edi, dword [ebp - 0x20d8]
lea eax, [ebp - 0x20c4]
push eax
mov dword [ebp - 0x20e0], ebx
xor ebx, ebx
push edi
mov dword [ebp - 0x20c4], ebx
call sub.gdiplus.dll_GdipCreateFromHDC
mov eax, dword [ebp - 0x20c4]
push 4
push eax
mov dword [ebp - 0x20dc], eax
call sub.gdiplus.dll_GdipSetSmoothingMode
lea eax, [ebp - 0x20c0]
mov dword [ebp - 0x20c0], ebx
push eax
push ebx
push ecx
mov eax, 0xffff0000
mov dword [esp], 0x40000000
push eax
call sub.gdiplus.dll_GdipCreatePen1
mov ebx, dword [ebp - 0x20d4]
mov dword [ebp - 0x20bc], eax
mov eax, dword [ebp - 0x20cc]
cmp dword [esi + 0x107cc], eax
jle 0x408f2d
push dword [ebx]
push dword [ebp - 0x20c0]
call sub.gdiplus.dll_GdipSetPenColor
test eax, eax
je 0x408f4e
mov dword [ebp - 0x20bc], eax
jmp 0x408f4e
push 0xff646464
push dword [ebp - 0x20c0]
call sub.gdiplus.dll_GdipSetPenColor
mov ecx, dword [ebp - 0x20bc]
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0x20bc], ecx
mov eax, dword [esi + 0x107cc]
movd xmm0, dword [ebp - 0x20d0]
push ecx
cvtdq2ps xmm0, xmm0
cmp eax, dword [esi + 0x780]
jle 0x408f90
addss xmm0, xmm0
divss xmm0, dword [0x4f5a3c]
movss dword [esp], xmm0
push dword [ebp - 0x20c0]
call sub.gdiplus.dll_GdipSetPenWidth
test eax, eax
je 0x408fc1
mov dword [ebp - 0x20bc], eax
jmp 0x408fc1
mulss xmm0, dword [0x4f5a28]
divss xmm0, dword [0x4f5a3c]
movss dword [esp], xmm0
push dword [ebp - 0x20c0]
call sub.gdiplus.dll_GdipSetPenWidth
mov ecx, dword [ebp - 0x20bc]
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0x20bc], ecx
mov eax, dword [ebp - 0x20e0]
dec eax
push eax
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x20c0]
push dword [ebp - 0x20dc]
call sub.gdiplus.dll_GdipDrawBeziersI
push dword [ebp - 0x20c0]
call sub.gdiplus.dll_GdipDeletePen
push dword [ebp - 0x20dc]
call sub.gdiplus.dll_GdipDeleteGraphics
mov eax, dword [ebp - 0x20cc]
mov ecx, 0x200
mov edx, dword [ebp - 0x20b8]
inc eax
add ebx, 4
add edx, 0x2000
mov dword [ebp - 0x20cc], eax
mov dword [ebp - 0x20d4], ebx
mov dword [ebp - 0x20b8], edx
cmp eax, dword [esi + 0x107b4]
jl 0x408c37
movd xmm0, dword [0x53507c]
mov edx, ecx
mov eax, dword [esi + 0x794]
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x2014], eax
xor eax, eax
mov dword [ebp - 0x20cc], eax
lea eax, [ebp - 0x2010]
movss dword [ebp - 0x20b8], xmm0
movss dword [ebp - 0x20c8], xmm0
and dword [eax + 4], 0
and dword [eax], 0
lea eax, [eax + 8]
sub edx, 1
jne 0x409067
lea eax, [ebp - 0x1010]
and dword [eax + 4], 0
and dword [eax], 0
lea eax, [eax + 8]
sub ecx, 1
jne 0x40907c
mov ebx, dword [0x53507c]
mov edi, 0x1ff
mov eax, dword [0x535080]
xorps xmm3, xmm3
mov ecx, dword [esi + 0x780]
add eax, 0xfffffff6
shl ecx, 0xa
add ecx, edi
movd xmm2, eax
lea eax, [ebx + 0x64]
movd xmm0, eax
movsd xmm4, qword [esi + ecx*8 + 0x7a8]
cvtdq2pd xmm2, xmm2
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm4
maxsd xmm2, xmm4
minsd xmm1, xmm0
ucomisd xmm2, xmm1
lahf
test ah, 0x44
jp 0x4090e0
movaps xmm3, xmm4
ucomisd xmm3, qword [0x4f5a00]
movsd xmm0, qword [esi + ecx*8 + 0x17a8]
movsd qword [ebp - 0x20f0], xmm0
lahf
test ah, 0x44
jnp 0x409247
cvtpd2ps xmm0, xmm3
push ecx
mov ecx, esi
movss dword [esp], xmm0
call fcn.0040abe2
push ecx
mov ecx, esi
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x20d4], xmm0
movsd xmm0, qword [ebp - 0x20f0]
cvtpd2ps xmm0, xmm0
movss dword [esp], xmm0
call fcn.0040ac95
movd xmm0, dword [ebp - 0x2014]
movss xmm2, dword [ebp - 0x20d4]
cvtdq2ps xmm0, xmm0
movd xmm4, eax
comiss xmm2, xmm0
cvtdq2ps xmm4, xmm4
movss dword [ebp - 0x20c4], xmm4
jb 0x4091d0
movd xmm0, dword [0x53507c]
movss xmm1, dword [ebp - 0x20b8]
movss xmm3, dword [ebp - 0x20c8]
cvtdq2ps xmm0, xmm0
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x4091a2
ucomiss xmm3, xmm0
lahf
test ah, 0x44
jp 0x4091a2
movss dword [ebp - 0x20b8], xmm2
movss dword [ebp - 0x20c8], xmm4
jmp 0x4091d0
movaps xmm0, xmm2
addss xmm0, xmm1
mulss xmm0, dword [0x4f5a08]
movss dword [ebp - 0x20b8], xmm0
movaps xmm0, xmm4
addss xmm0, xmm3
mulss xmm0, dword [0x4f5a08]
movss dword [ebp - 0x20c8], xmm0
push ecx
movss dword [esp], xmm2
call fcn.004b8d4a
call fcn.00495d30
mov ebx, dword [ebp - 0x20cc]
movss xmm0, dword [ebp - 0x20c4]
movss dword [esp], xmm0
mov dword [ebp + ebx*8 - 0x1010], eax
call fcn.004b8d4a
call fcn.00495d30
movss xmm0, dword [ebp - 0x20d4]
mov dword [ebp + ebx*8 - 0x100c], eax
inc ebx
mov dword [ebp - 0x20cc], ebx
movss dword [esp], xmm0
call fcn.004b8d4a
call fcn.00495d30
movss xmm0, dword [ebp - 0x20c4]
movss dword [esp], xmm0
call fcn.004b8d4a
pop ecx
call fcn.00495d30
mov ebx, dword [0x53507c]
sub edi, 1
jns 0x409096
mov edi, dword [ebp - 0x20d8]
lea eax, [ebp - 0x20d4]
push eax
xor ebx, ebx
push edi
mov dword [ebp - 0x20d4], ebx
call sub.gdiplus.dll_GdipCreateFromHDC
mov eax, dword [ebp - 0x20d4]
push 4
push eax
mov dword [ebp - 0x20d8], eax
call sub.gdiplus.dll_GdipSetSmoothingMode
movd xmm0, dword [ebp - 0x20d0]
lea eax, [ebp - 0x20c0]
cvtdq2ps xmm0, xmm0
push eax
push ebx
push ecx
mov dword [ebp - 0x20c0], ebx
addss xmm0, xmm0
divss xmm0, dword [0x4f5a3c]
movss dword [esp], xmm0
push 0xff00ff00
movss dword [ebp - 0x2014], xmm0
call sub.gdiplus.dll_GdipCreatePen1
mov dword [ebp - 0x20bc], eax
mov eax, dword [esi + 0x780]
cmp dword [esi + 0x107cc], eax
jle 0x4092ee
push dword [esi + eax*4 + 0x107d0]
push dword [ebp - 0x20c0]
call sub.gdiplus.dll_GdipSetPenColor
test eax, eax
je 0x40930f
mov dword [ebp - 0x20bc], eax
jmp 0x40930f
push 0xff00c000
push dword [ebp - 0x20c0]
call sub.gdiplus.dll_GdipSetPenColor
mov ecx, dword [ebp - 0x20bc]
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0x20bc], ecx
movss xmm0, dword [ebp - 0x2014]
push ecx
movss dword [esp], xmm0
push dword [ebp - 0x20c0]
call sub.gdiplus.dll_GdipSetPenWidth
mov ecx, dword [ebp - 0x20bc]
test eax, eax
cmovne ecx, eax
mov eax, dword [ebp - 0x20cc]
dec eax
mov dword [ebp - 0x20bc], ecx
push eax
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x20c0]
push dword [ebp - 0x20d8]
call sub.gdiplus.dll_GdipDrawBeziersI
push dword [ebp - 0x20c0]
call sub.gdiplus.dll_GdipDeletePen
push dword [ebp - 0x20d8]
call sub.gdiplus.dll_GdipDeleteGraphics
cmp dword [esi + 0x10888], ebx
mov ecx, ebx
push 0xffffffffffffffff
mov dword [ebp - 0x20d8], ecx
pop ebx
jle 0x4093fd
lea eax, [esi + 0x10984]
mov dword [ebp - 0x20d0], eax
lea eax, [esi + 0x10b74]
mov dword [ebp - 0x20c4], eax
push dword [esi + 0x750]
cmp dword [esi + 0x11c28], ecx
mov ecx, eax
push dword [esi + 0x74c]
jne 0x4093b7
push 0xffff0000
jmp 0x4093b8
push ebx
call fcn.0042f4fb
push eax
push dword [ebp - 0x20d0]
push dword [esi + 0x44]
push edi
call fcn.00446b82
mov ecx, dword [ebp - 0x20d8]
add esp, 0x1c
mov eax, dword [ebp - 0x20c4]
inc ecx
add dword [ebp - 0x20d0], 0x10
add eax, 0x84
mov dword [ebp - 0x20d8], ecx
mov dword [ebp - 0x20c4], eax
cmp ecx, dword [esi + 0x10888]
jl 0x40939a
cmp dword [esi + 0x11c28], ebx
je 0x409480
push dword [esi + 0x750]
mov eax, 0xffff0000
lea ecx, [esi + 0x11b80]
push dword [esi + 0x74c]
push eax
call fcn.0042f4fb
push eax
lea eax, [esi + 0x11b70]
push eax
push dword [esi + 0x44]
push edi
call fcn.00446b82
add esp, 0x1c
cmp dword [esi + 0x11c28], ebx
je 0x409480
cmp byte [esi + 0x11c2c], 1
jne 0x409480
push 0
mov eax, 0xffff0000
push eax
push dword [ebp - 0x20e8]
lea eax, [esi + 0x11c04]
push eax
push edi
call fcn.0044669d
push 0
mov eax, 0xffff0000
push eax
push dword [ebp - 0x20e8]
lea eax, [esi + 0x11c14]
push eax
push edi
call fcn.0044669d
add esp, 0x28
cmp dword [esi + 0x740], ebx
je 0x4094be
push dword [esi + 0x750]
cmp dword [esi + 0x11c24], 3
mov ecx, 0xffff0000
push dword [esi + 0x74c]
mov eax, ebx
cmove eax, ecx
push eax
push 0x4f5924
lea eax, [esi + 0x11cb4]
push eax
push dword [esi + 0x44]
push edi
call fcn.00446b82
add esp, 0x1c
cmp dword [esi + 0x744], ebx
je 0x4094fa
push dword [esi + 0x750]
cmp dword [esi + 0x11c24], 4
mov eax, 0xffff0000
push dword [esi + 0x74c]
cmove ebx, eax
lea eax, [esi + 0x11cc4]
push ebx
push 0x4f5928
push eax
push dword [esi + 0x44]
push edi
call fcn.00446b82
add esp, 0x1c
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00495b3a
mov esp, ebp
pop ebp
ret 0xc