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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1034
call fcn.0041add0
mov eax, dword [0x42f4cc]
push ebx
mov ebx, dword [ebp + 8]
xor eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x1038], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [esp + 0x10], eax
call esi
mov edx, dword [0x430528]
mov edi, dword [sym.imp.USER32.dll_FindWindowA]
sub eax, edx
cmp eax, 0x2710
ja 0x40975d
test ebx, ebx
jne 0x409828
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x409a34
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x409a34
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x409a34
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x409a34
push str.RAV.INI
push 0
push str.DEBUG
mov edx, 0x428e04
mov ecx, str.LEVEL
call fcn.00408b30
push str.RAV.INI
push 0xffffffffffffffff
push str.DEBUG
mov edx, 0x428e04
mov ecx, 0x428e48
mov dword [0x430524], eax
call fcn.00408b30
push str.RAV.INI
push 3
push str.DEBUG
mov edx, 0x428e04
mov ecx, str.OUTPUT
mov dword [0x430520], eax
call fcn.00408b30
push str.RAV.INI
push 0x200
push str.DEBUG
mov edx, 0x428e04
mov ecx, str.LOGSIZE
mov dword [0x42f218], eax
call fcn.00408a00
push 0x105
push 0x430418
mov dword [0x42f214], eax
call fcn.004092e0
mov al, byte [0x42f218]
add esp, 0x38
test al, 4
je 0x409819
mov ecx, dword [0x430410]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x409819
push eax
push str.RS_DEBUG_VIEW
call edi
mov dword [0x430410], eax
call esi
test ebx, ebx
mov dword [0x430528], eax
je 0x409a34
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x40983a
mov edx, dword [0x42f218]
mov dword [ebp + 0x14], edx
jmp 0x40985b
test al, 4
je 0x40985b
mov eax, dword [0x430410]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40985b
push eax
push str.RS_DEBUG_VIEW
call edi
mov dword [0x430410], eax
xor eax, eax
mov ecx, 0x200
lea edi, [esp + 0x838]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x838]
push 0x800
push ecx
call fcn.00408060
lea edx, [esp + 0x840]
push 0x800
push edx
call fcn.00409140
add esp, 0x10
mov ecx, 0x800
lea eax, [esp + 0x838]
mov edi, edi
cmp byte [eax], 0
je 0x4098ab
inc eax
dec ecx
jne 0x4098a0
jmp 0x4098d0
test ecx, ecx
je 0x4098d0
mov eax, 0x800
sub eax, ecx
push 0x428e24
mov ecx, 0x800
sub ecx, eax
push ecx
lea edx, [esp + eax + 0x840]
push edx
call fcn.004030a0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x83c]
push 0x800
push ecx
call fcn.00409230
add esp, 0xc
mov ecx, 0x800
lea eax, [esp + 0x838]
cmp byte [eax], 0
je 0x409900
inc eax
dec ecx
jne 0x4098f5
jmp 0x409921
test ecx, ecx
je 0x409921
mov eax, 0x800
sub eax, ecx
push ebx
mov edx, 0x800
sub edx, eax
push edx
lea eax, [esp + eax + 0x840]
push eax
call fcn.004030a0
mov ecx, 0x800
lea eax, [esp + 0x838]
lea ecx, [ecx]
cmp byte [eax], 0
je 0x40993b
inc eax
dec ecx
jne 0x409930
jmp 0x409960
test ecx, ecx
je 0x409960
mov eax, 0x800
sub eax, ecx
push 0x428e20
mov ecx, 0x800
sub ecx, eax
push ecx
lea edx, [esp + eax + 0x840]
push edx
call fcn.004030a0
mov bl, byte [ebp + 0x14]
test bl, 1
je 0x40998d
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x409975
mov eax, 0x430418
mov ecx, dword [0x42f214]
push ecx
push eax
lea edx, [esp + 0x840]
push edx
call fcn.00408ef0
add esp, 0xc
test bl, 2
je 0x4099a0
lea eax, [esp + 0x838]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test bl, 4
je 0x409a34
mov ecx, dword [0x430410]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x409a34
xor eax, eax
mov ecx, 0x205
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov esi, 0x814
mov dword [esp + 0x20], esi
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 dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edx, dword [ebp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 0
mov dword [esp + 0x38], edx
mov edx, dword [0x430410]
push 0x4a
lea eax, [esp + 0x2c]
push edx
mov dword [esp + 0x28], esi
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.004199fa
mov esp, ebp
pop ebp
ret