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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x12dc
call fcn.004425c0
mov eax, dword [0x465b00]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x467188]
cmp eax, 0x2710
ja 0x40661c
cmp dword [ebp + 8], 0
jne 0x4066f5
cmp dword [ebp + 0xc], 0
jne 0x4066f5
cmp dword [ebp + 0x10], 0
jne 0x4066f5
cmp dword [ebp + 0x14], 0
jne 0x4066f5
cmp dword [ebp + 0x18], 0
jne 0x4066f5
push 0x457bcc
push str.RAV.INI
push 0
push str.LEVEL
push str.DEBUG
call fcn.00406da0
add esp, 0x14
mov dword [0x467184], eax
push 0x457bcc
push str.RAV.INI
push 0xffffffffffffffff
push 0x457bb0
push str.DEBUG
call fcn.00406da0
add esp, 0x14
mov dword [0x467180], eax
push 0x457bcc
push str.RAV.INI
push 3
push str.OUTPUT
push str.DEBUG
call fcn.00406da0
add esp, 0x14
mov dword [0x464268], eax
push 0x457bcc
push str.RAV.INI
push 0x200
push str.LOGSIZE
push str.DEBUG
call fcn.00406a60
add esp, 0x14
mov dword [0x464264], eax
push 0x105
push 0x467078
call fcn.00407460
add esp, 8
mov eax, dword [0x464268]
and eax, 4
je 0x4066ea
mov ecx, dword [0x467074]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4066ea
push 0
push str.RS_DEBUG_VIEW
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x467074], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x467188], eax
cmp dword [ebp + 8], 0
jne 0x406700
jmp 0x406901
cmp dword [ebp + 0x14], 0
jne 0x406711
mov edx, dword [0x464268]
mov dword [ebp + 0x14], edx
jmp 0x40673c
mov eax, dword [ebp + 0x14]
and eax, 4
je 0x40673c
mov ecx, dword [0x467074]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40673c
push 0
push str.RS_DEBUG_VIEW
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x467074], eax
mov byte [ebp - 0x808], 0
push 0x7ff
push 0
lea edx, [ebp - 0x807]
push edx
call fcn.004401c0
add esp, 0xc
push 0x800
push 0
lea eax, [ebp - 0x808]
push eax
call fcn.004401c0
add esp, 0xc
push 0x800
lea ecx, [ebp - 0x808]
push ecx
call fcn.00407330
add esp, 8
push 0x800
lea edx, [ebp - 0x808]
push edx
call fcn.004071c0
add esp, 8
push 0x457b8c
push 0x800
lea eax, [ebp - 0x808]
push eax
call fcn.00406910
mov ecx, dword [ebp + 0xc]
push ecx
push 0x800
lea edx, [ebp - 0x808]
push edx
call fcn.004073a0
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 0x800
lea ecx, [ebp - 0x808]
push ecx
call fcn.00406910
push 0x457b88
push 0x800
lea edx, [ebp - 0x808]
push edx
call fcn.00406910
mov eax, dword [ebp + 0x14]
and eax, 1
je 0x406830
cmp dword [ebp + 0x18], 0
je 0x406809
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x12dc], ecx
jmp 0x406813
mov dword [ebp - 0x12dc], 0x467078
mov edx, dword [0x464264]
push edx
mov eax, dword [ebp - 0x12dc]
push eax
lea ecx, [ebp - 0x808]
push ecx
call fcn.00406f10
add esp, 0xc
mov edx, dword [ebp + 0x14]
and edx, 2
je 0x406845
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp + 0x14]
and ecx, 4
je 0x406901
mov edx, dword [0x467074]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x406901
push 0x814
push 0
lea eax, [ebp - 0x1030]
push eax
call fcn.004401c0
add esp, 0xc
mov dword [ebp - 0x1030], 0x814
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x102c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x1028], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1024], ecx
push 0x800
lea edx, [ebp - 0x808]
push edx
lea eax, [ebp - 0x101c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1020], ecx
mov dword [ebp - 0x810], 0x814
lea edx, [ebp - 0x1030]
mov dword [ebp - 0x80c], edx
mov dword [ebp - 0x814], 0
lea eax, [ebp - 0x814]
push eax
push 0
push 0x4a
mov ecx, dword [0x467074]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004401a3
mov esp, ebp
pop ebp
ret