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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1034
call fcn.00492060
mov eax, dword [0x4c0c00]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4c2a30]
cmp eax, 0x2710
ja 0x4223bc
cmp dword [ebp + 8], 0
jne 0x422495
cmp dword [ebp + 0xc], 0
jne 0x422495
cmp dword [ebp + 0x10], 0
jne 0x422495
cmp dword [ebp + 0x14], 0
jne 0x422495
cmp dword [ebp + 0x18], 0
jne 0x422495
push 0x4adba8
push str.RAV.INI
push 0
push str.LEVEL
push str.DEBUG
call fcn.00421dd0
add esp, 0x14
mov dword [0x4c2a2c], eax
push 0x4adba8
push str.RAV.INI
push 0xffffffffffffffff
push 0x4adb8c
push str.DEBUG
call fcn.00421dd0
add esp, 0x14
mov dword [0x4c2a28], eax
push 0x4adba8
push str.RAV.INI
push 3
push str.OUTPUT
push str.DEBUG
call fcn.00421dd0
add esp, 0x14
mov dword [0x4bb82c], eax
push 0x4adba8
push str.RAV.INI
push 0x200
push str.LOGSIZE
push str.DEBUG
call fcn.00421cd0
add esp, 0x14
mov dword [0x4bb828], eax
push 0x105
push 0x4c2920
call fcn.00422be0
add esp, 8
mov eax, dword [0x4bb82c]
and eax, 4
je 0x42248a
mov ecx, dword [0x4c2918]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x42248a
push 0
push str.RS_DEBUG_VIEW
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x4c2918], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4c2a30], eax
cmp dword [ebp + 8], 0
jne 0x4224a0
jmp 0x4226c3
cmp dword [ebp + 0x14], 0
jne 0x4224b1
mov edx, dword [0x4bb82c]
mov dword [ebp + 0x14], edx
jmp 0x4224dc
mov eax, dword [ebp + 0x14]
and eax, 4
je 0x4224dc
mov ecx, dword [0x4c2918]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4224dc
push 0
push str.RS_DEBUG_VIEW
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x4c2918], eax
mov edx, dword [0x4c2a2c]
and edx, dword [ebp + 0xc]
je 0x4224f1
mov eax, dword [0x4c2a28]
and eax, dword [ebp + 0x10]
jne 0x4224f6
jmp 0x4226c3
mov byte [ebp - 0x808], 0
push 0x7ff
push 0
lea ecx, [ebp - 0x807]
push ecx
call fcn.0048e260
add esp, 0xc
push 0x800
push 0
lea edx, [ebp - 0x808]
push edx
call fcn.0048e260
add esp, 0xc
push 0x800
lea eax, [ebp - 0x808]
push eax
call fcn.00422ad0
add esp, 8
push 0x800
lea ecx, [ebp - 0x808]
push ecx
call fcn.00422990
add esp, 8
push 0x4adb68
push 0x800
lea edx, [ebp - 0x808]
push edx
call fcn.00422d00
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
push 0x800
lea ecx, [ebp - 0x808]
push ecx
call fcn.00422b40
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 0x800
lea eax, [ebp - 0x808]
push eax
call fcn.00422d00
add esp, 0xc
push 0x4adb64
push 0x800
lea ecx, [ebp - 0x808]
push ecx
call fcn.00422d00
add esp, 0xc
mov edx, dword [ebp + 0x14]
and edx, 1
je 0x4225f3
cmp dword [ebp + 0x18], 0
je 0x4225cc
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1034], eax
jmp 0x4225d6
mov dword [ebp - 0x1034], 0x4c2920
mov ecx, dword [0x4bb828]
push ecx
mov edx, dword [ebp - 0x1034]
push edx
lea eax, [ebp - 0x808]
push eax
call fcn.00422720
add esp, 0xc
mov ecx, dword [ebp + 0x14]
and ecx, 2
je 0x422608
lea edx, [ebp - 0x808]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp + 0x14]
and eax, 4
je 0x4226c3
mov ecx, dword [0x4c2918]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4226c3
push 0x814
push 0
lea edx, [ebp - 0x1030]
push edx
call fcn.0048e260
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 [0x4c2918]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e19e
mov esp, ebp
pop ebp
ret