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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1034
call fcn.00458c80
mov eax, dword [0x46946c]
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 [0x4695b8]
cmp eax, 0x2710
ja 0x40e5f1
test ebx, ebx
jne 0x40e6bf
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x40e8a0
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x40e8a0
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x40e8a0
test esi, esi
jne 0x40e8a0
push str.RAV.INI
push 0
push str.LEVEL
mov edx, 0x45c2fc
mov ecx, str.DEBUG
call fcn.0040df10
push str.RAV.INI
push 0xffffffffffffffff
push 0x45c324
mov edx, 0x45c2fc
mov ecx, str.DEBUG
mov dword [0x4695b4], eax
call fcn.0040df10
push str.RAV.INI
push 3
push str.OUTPUT
mov edx, 0x45c2fc
mov ecx, str.DEBUG
mov dword [0x4695b0], eax
call fcn.0040df10
push 0x200
push str.LOGSIZE
mov edx, 0x45c2fc
mov ecx, str.RAV.INI
mov esi, str.DEBUG
mov dword [0x46916c], eax
call fcn.0040de80
push 0x105
push 0x4694a8
mov dword [0x469168], eax
call fcn.0040e520
mov al, byte [0x46916c]
add esp, 0x34
test al, 4
je 0x40e6b0
mov eax, dword [0x4694a0]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40e6b0
push eax
push str.RS_DEBUG_VIEW
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x4694a0], eax
call edi
test ebx, ebx
mov dword [0x4695b8], eax
je 0x40e8a0
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x40e6d1
mov ecx, dword [0x46916c]
mov dword [ebp + 0x14], ecx
jmp 0x40e6f7
test al, 4
je 0x40e6f7
mov edx, dword [0x4694a0]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40e6f7
push eax
push str.RS_DEBUG_VIEW
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x4694a0], eax
mov eax, dword [ebp + 0xc]
test dword [0x4695b4], eax
je 0x40e8a0
mov ecx, dword [ebp + 0x10]
test dword [0x4695b0], ecx
je 0x40e8a0
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.0040e0f0
lea eax, [esp + 0x840]
push 0x800
push eax
call fcn.0040e380
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 0x45c300
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.0040e470
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 0x45bb28
lea edx, [esp + eax + 0x840]
push edx
call esi
mov bl, byte [ebp + 0x14]
test bl, 1
je 0x40e7fd
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40e7e5
mov eax, 0x4694a8
mov ecx, dword [0x469168]
push ecx
push eax
lea edx, [esp + 0x840]
push edx
call fcn.0040e160
add esp, 0xc
test bl, 2
je 0x40e810
lea eax, [esp + 0x838]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test bl, 4
je 0x40e8a0
mov ecx, dword [0x4694a0]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40e8a0
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 [0x4694a0]
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.00458c53
mov esp, ebp
pop ebp
ret