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

Disassembly:
mov eax, 0x2034
call fcn.004112c0
mov eax, dword [0x41c040]
xor eax, esp
mov dword [esp + 0x202c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x2040]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
sub eax, dword [0x41e2dc]
cmp eax, 0x2710
ja 0x402245
test ebp, ebp
jne 0x4022c9
jmp 0x4024b3
push 0
mov ebx, str.LEVEL
call fcn.00401470
add esp, 4
push 0xffffffffffffffff
mov ebx, 0x41a250
mov dword [0x41e2d4], eax
call fcn.00401470
add esp, 4
push 3
mov ebx, str.OUTPUT
mov dword [0x41e2d8], eax
call fcn.00401470
add esp, 4
mov dword [0x41d3c8], eax
call fcn.00401610
mov dword [0x41d3cc], eax
call fcn.00401930
test byte [0x41d3c8], 4
je 0x4022ba
mov eax, dword [0x41e2e0]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4022ba
push eax
push str.RS_DEBUG_VIEW
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [0x41e2e0], eax
call esi
mov dword [0x41e2dc], eax
test ebp, ebp
je 0x4024b3
mov esi, dword [esp + 0x204c]
mov ecx, dword [0x41d3c8]
mov dword [esp + 0x10], ecx
test dword [0x41e2d4], esi
je 0x4024b3
test byte [0x41e2d8], 1
je 0x4024b3
push 0x1000
lea edx, [esp + 0x103c]
push 0
push edx
call fcn.00406ac0
add esp, 0xc
lea edi, [esp + 0x1038]
call fcn.00401a50
mov ebx, edi
call fcn.00401b20
mov ecx, 0x1000
mov eax, edi
cmp word [eax], 0
je 0x402334
add eax, 2
sub ecx, 1
jne 0x402324
jmp 0x402357
test ecx, ecx
je 0x402357
mov eax, 0x1000
sub eax, ecx
mov edx, 0x1000
sub edx, eax
lea ecx, [esp + eax*2 + 0x1038]
mov eax, 0x41a294
call fcn.00401cd0
push esi
lea edi, [esp + 0x103c]
call fcn.00401c10
add esp, 4
mov ecx, 0x1000
mov eax, edi
mov edi, edi
cmp word [eax], 0
je 0x402380
add eax, 2
sub ecx, 1
jne 0x402370
jmp 0x4023a0
test ecx, ecx
je 0x4023a0
mov eax, 0x1000
sub eax, ecx
mov edx, 0x1000
sub edx, eax
lea ecx, [esp + eax*2 + 0x1038]
mov eax, ebp
call fcn.00401cd0
mov ecx, 0x1000
lea eax, [esp + 0x1038]
lea esp, [esp]
cmp word [eax], 0
je 0x4023c0
add eax, 2
sub ecx, 1
jne 0x4023b0
jmp 0x4023e3
test ecx, ecx
je 0x4023e3
mov eax, 0x1000
sub eax, ecx
mov edx, 0x1000
sub edx, eax
lea ecx, [esp + eax*2 + 0x1038]
mov eax, 0x41a29c
call fcn.00401cd0
mov bl, byte [esp + 0x10]
test bl, 1
je 0x402401
lea eax, [esp + 0x1038]
push eax
mov ecx, 0x41e2e8
call fcn.00401f20
add esp, 4
test bl, 2
je 0x402414
lea ecx, [esp + 0x1038]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test bl, 4
je 0x4024b3
mov edx, dword [0x41e2e0]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4024b3
mov esi, 0x1014
push esi
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00406ac0
add esp, 0xc
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [esp + 0x204c]
push 0x800
lea edx, [esp + 0x103c]
mov dword [esp + 0x2c], eax
push edx
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x38], ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [0x41e2e0]
lea edx, [esp + 0x14]
push edx
push 0
push 0x4a
lea ecx, [esp + 0x2c]
push eax
mov dword [esp + 0x40], 1
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x203c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040531f
add esp, 0x2034
ret