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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x12dc
call fcn.00447370
mov eax, dword [0x4899f8]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x58b188]
cmp eax, 0x2710
ja 0x402ebc
cmp dword [ebp + 8], 0
jne 0x402f95
cmp dword [ebp + 0xc], 0
jne 0x402f95
cmp dword [ebp + 0x10], 0
jne 0x402f95
cmp dword [ebp + 0x14], 0
jne 0x402f95
cmp dword [ebp + 0x18], 0
jne 0x402f95
push 0x475878
push str.RAV.INI
push 0
push str.LEVEL
push str.DEBUG
call fcn.00403610
add esp, 0x14
mov dword [0x58b184], eax
push 0x475878
push str.RAV.INI
push 0xffffffffffffffff
push 0x47585c
push str.DEBUG
call fcn.00403610
add esp, 0x14
mov dword [0x58b180], eax
push 0x475878
push str.RAV.INI
push 3
push str.OUTPUT
push str.DEBUG
call fcn.00403610
add esp, 0x14
mov dword [0x4871b4], eax
push 0x475878
push str.RAV.INI
push 0x200
push str.LOGSIZE
push str.DEBUG
call fcn.00403320
add esp, 0x14
mov dword [0x4871b0], eax
push 0x105
push 0x58b078
call fcn.00403cd0
add esp, 8
mov eax, dword [0x4871b4]
and eax, 4
je 0x402f8a
mov ecx, dword [0x58b074]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x402f8a
push 0
push str.RS_DEBUG_VIEW
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x58b074], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x58b188], eax
cmp dword [ebp + 8], 0
jne 0x402fa0
jmp 0x4031ba
cmp dword [ebp + 0x14], 0
jne 0x402fb1
mov edx, dword [0x4871b4]
mov dword [ebp + 0x14], edx
jmp 0x402fdc
mov eax, dword [ebp + 0x14]
and eax, 4
je 0x402fdc
mov ecx, dword [0x58b074]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x402fdc
push 0
push str.RS_DEBUG_VIEW
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x58b074], eax
mov edx, dword [0x58b184]
and edx, dword [ebp + 0xc]
je 0x402ff1
mov eax, dword [0x58b180]
and eax, dword [ebp + 0x10]
jne 0x402ff6
jmp 0x4031ba
mov byte [ebp - 0x808], 0
push 0x7ff
push 0
lea ecx, [ebp - 0x807]
push ecx
call fcn.004472f0
add esp, 0xc
push 0x800
push 0
lea edx, [ebp - 0x808]
push edx
call fcn.004472f0
add esp, 0xc
push 0x800
lea eax, [ebp - 0x808]
push eax
call fcn.00403ba0
add esp, 8
push 0x800
lea ecx, [ebp - 0x808]
push ecx
call fcn.00403a30
add esp, 8
push 0x475838
push 0x800
lea edx, [ebp - 0x808]
push edx
call fcn.004031d0
mov eax, dword [ebp + 0xc]
push eax
push 0x800
lea ecx, [ebp - 0x808]
push ecx
call fcn.00403c10
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 0x800
lea eax, [ebp - 0x808]
push eax
call fcn.004031d0
push 0x475834
push 0x800
lea ecx, [ebp - 0x808]
push ecx
call fcn.004031d0
mov edx, dword [ebp + 0x14]
and edx, 1
je 0x4030ea
cmp dword [ebp + 0x18], 0
je 0x4030c3
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x12dc], eax
jmp 0x4030cd
mov dword [ebp - 0x12dc], 0x58b078
mov ecx, dword [0x4871b0]
push ecx
mov edx, dword [ebp - 0x12dc]
push edx
lea eax, [ebp - 0x808]
push eax
call fcn.00403780
add esp, 0xc
mov ecx, dword [ebp + 0x14]
and ecx, 2
je 0x4030ff
lea edx, [ebp - 0x808]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp + 0x14]
and eax, 4
je 0x4031ba
mov ecx, dword [0x58b074]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4031ba
push 0x814
push 0
lea edx, [ebp - 0x1030]
push edx
call fcn.004472f0
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 eax, dword [ebp + 0xc]
mov dword [ebp - 0x1024], eax
push 0x800
lea ecx, [ebp - 0x808]
push ecx
lea edx, [ebp - 0x101c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1020], eax
mov dword [ebp - 0x810], 0x814
lea ecx, [ebp - 0x1030]
mov dword [ebp - 0x80c], ecx
mov dword [ebp - 0x814], 0
lea edx, [ebp - 0x814]
push edx
push 0
push 0x4a
mov eax, dword [0x58b074]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004472d8
mov esp, ebp
pop ebp
ret