Function at 0x4017d0
Capabilities:
Check for time delay via gettickcount
Print debug messages

Disassembly:
mov eax, 0x1038
call fcn.0045b190
mov eax, dword [0x483390]
xor eax, esp
mov dword [esp + 0x1034], eax
push ebx
push ebp
mov ebp, dword [esp + 0x1044]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov edi, ecx
mov dword [esp + 0x18], edi
call esi
sub eax, dword [0x4870dc]
cmp eax, 0x2710
ja 0x401838
test ebp, ebp
jne 0x4018bc
cmp dword [esp + 0x1050], ebp
jne 0x401ab0
cmp dword [esp + 0x1054], ebp
jne 0x401ab0
test edi, edi
jne 0x401ab0
push 0
mov edi, str.LEVEL
call fcn.00401480
add esp, 4
push 0xffffffffffffffff
mov edi, 0x4731f0
mov dword [0x4870d4], eax
call fcn.00401480
add esp, 4
push 3
mov edi, str.OUTPUT
mov dword [0x4870d8], eax
call fcn.00401480
add esp, 4
mov dword [0x484c64], eax
call fcn.004013c0
mov dword [0x484c68], eax
call fcn.00402040
test byte [0x484c64], 4
je 0x4018ad
mov eax, dword [0x4870e0]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4018ad
push eax
push str.RS_DEBUG_VIEW
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x4870e0], eax
call esi
mov dword [0x4870dc], eax
test ebp, ebp
je 0x401ab0
mov ecx, dword [0x484c64]
push 0x800
lea edx, [esp + 0x844]
push 0
push edx
mov dword [esp + 0x20], ecx
call fcn.00446e10
add esp, 0xc
lea edi, [esp + 0x840]
call fcn.00401f30
mov eax, edi
push eax
call fcn.00401e40
add esp, 4
mov eax, 0x800
mov ecx, edi
jmp 0x401900
cmp byte [ecx], 0
je 0x40190d
inc ecx
sub eax, 1
jne 0x401900
jmp 0x401954
test eax, eax
je 0x401954
mov edx, 0x800
sub edx, eax
mov ecx, 0x800
sub ecx, edx
lea eax, [esp + edx + 0x840]
je 0x401950
mov edi, 0x473214
lea esi, [ecx + edx + 0x7ffff7ff]
sub edi, eax
test esi, esi
je 0x40194c
mov dl, byte [edi + eax]
test dl, dl
je 0x40194c
mov byte [eax], dl
dec ecx
inc eax
dec esi
test ecx, ecx
jne 0x401936
jmp 0x401950
test ecx, ecx
jne 0x401951
dec eax
mov byte [eax], 0
mov ecx, dword [esp + 0x1050]
push ecx
lea ebx, [esp + 0x844]
call fcn.00401fa0
add esp, 4
push ebp
mov edx, ebx
push edx
mov eax, 0x800
call fcn.00401170
mov eax, 0x800
mov ecx, ebx
cmp byte [ecx], 0
je 0x40198d
inc ecx
sub eax, 1
jne 0x401980
jmp 0x4019d4
test eax, eax
je 0x4019d4
mov edx, 0x800
sub edx, eax
mov ecx, 0x800
sub ecx, edx
lea eax, [esp + edx + 0x840]
je 0x4019d0
mov edi, 0x473218
lea esi, [ecx + edx + 0x7ffff7ff]
sub edi, eax
test esi, esi
je 0x4019cc
mov dl, byte [edi + eax]
test dl, dl
je 0x4019cc
mov byte [eax], dl
dec ecx
inc eax
dec esi
test ecx, ecx
jne 0x4019b6
jmp 0x4019d0
test ecx, ecx
jne 0x4019d1
dec eax
mov byte [eax], 0
mov bl, byte [esp + 0x14]
test bl, 1
je 0x4019fa
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x4019ea
mov ecx, 0x4870e8
lea eax, [esp + 0x840]
push eax
call fcn.00401bb0
add esp, 4
test bl, 2
je 0x401a0d
lea ecx, [esp + 0x840]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test bl, 4
je 0x401ab0
mov edx, dword [0x4870e0]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x401ab0
mov esi, 0x814
push esi
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.00446e10
add esp, 0xc
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [esp + 0x1050]
push 0x800
lea edx, [esp + 0x844]
mov dword [esp + 0x34], eax
push edx
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x40], ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [esp + 0x1054]
lea eax, [esp + 0x1c]
push eax
push 0
mov dword [esp + 0x40], ecx
mov ecx, dword [0x4870e0]
push 0x4a
lea edx, [esp + 0x34]
push ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], 0
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x1044]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004426a0
add esp, 0x1038
ret