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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1034
call fcn.004156d0
mov eax, dword [0x42a390]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x18]
xor eax, ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x103c], eax
mov dword [esp + 0x10], esi
call edi
sub eax, dword [0x42b138]
cmp eax, 0x2710
ja 0x40f321
test ebx, ebx
jne 0x40f3e0
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x40f5c1
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x40f5c1
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x40f5c1
test esi, esi
jne 0x40f5c1
push 0
push str.LEVEL
mov edx, 0x4256a0
mov ecx, str.RAV.INI
mov esi, str.DEBUG
call fcn.0040e570
push 0xffffffffffffffff
push 0x4256cc
mov edx, 0x4256a0
mov ecx, str.RAV.INI
mov dword [0x42b134], eax
call fcn.0040e570
push 3
push str.OUTPUT
mov edx, 0x4256a0
mov ecx, str.RAV.INI
mov dword [0x42b130], eax
call fcn.0040e570
push 0x200
push str.LOGSIZE
mov edx, 0x4256a0
mov ecx, str.RAV.INI
mov dword [0x42a33c], eax
call fcn.0040e4e0
push 0x105
push 0x42b028
mov dword [0x42a338], eax
call fcn.0040f1d0
mov al, byte [0x42a33c]
add esp, 0x28
test al, 4
je 0x40f3d1
mov eax, dword [0x42b024]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40f3d1
push eax
push str.RS_DEBUG_VIEW
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x42b024], eax
call edi
test ebx, ebx
mov dword [0x42b138], eax
je 0x40f5c1
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x40f3f2
mov ecx, dword [0x42a33c]
mov dword [ebp + 0x14], ecx
jmp 0x40f418
test al, 4
je 0x40f418
mov edx, dword [0x42b024]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40f418
push eax
push str.RS_DEBUG_VIEW
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x42b024], eax
mov eax, dword [ebp + 0xc]
test dword [0x42b134], eax
je 0x40f5c1
mov ecx, dword [ebp + 0x10]
test dword [0x42b130], ecx
je 0x40f5c1
lea edx, [esp + 0x838]
xor eax, eax
push 0x800
mov ecx, 0x200
lea edi, [esp + 0x83c]
push edx
rep stosd dword es:[edi], eax
call fcn.0040e750
lea eax, [esp + 0x840]
push 0x800
push eax
call fcn.0040f030
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0x10
lea ecx, [esp + 0x838]
push ecx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edx, 0x800
sub edx, eax
push edx
push 0x4256a8
lea eax, [esp + eax + 0x840]
push eax
call esi
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [esp + 0x83c]
push 0x800
push edx
call fcn.0040f120
add esp, 0xc
lea eax, [esp + 0x838]
push eax
call edi
mov ecx, 0x800
sub ecx, eax
push ecx
push ebx
lea edx, [esp + eax + 0x840]
push edx
call esi
lea eax, [esp + 0x838]
push eax
call edi
mov ecx, 0x800
sub ecx, eax
push ecx
push 0x4256a4
lea edx, [esp + eax + 0x840]
push edx
call esi
mov bl, byte [ebp + 0x14]
test bl, 1
je 0x40f51e
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40f506
mov eax, 0x42b028
mov ecx, dword [0x42a338]
push ecx
push eax
lea edx, [esp + 0x840]
push edx
call fcn.0040ee10
add esp, 0xc
test bl, 2
je 0x40f531
lea eax, [esp + 0x838]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test bl, 4
je 0x40f5c1
mov ecx, dword [0x42b024]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40f5c1
xor eax, eax
mov ecx, 0x205
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov edi, 0x814
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x28], eax
push 0x800
lea eax, [esp + 0x83c]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x38], edx
call esi
mov edx, dword [ebp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 0
mov dword [esp + 0x38], edx
mov edx, dword [0x42b024]
push 0x4a
lea eax, [esp + 0x2c]
push edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], 0
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x103c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041413a
mov esp, ebp
pop ebp
ret