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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1024
call fcn.0042a740
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov edx, dword [0x447fd8]
mov edi, dword [sym.imp.USER32.dll_FindWindowA]
mov ebx, dword [ebp + 8]
sub eax, edx
cmp eax, 0x2710
ja 0x40fde7
test ebx, ebx
jne 0x40feb4
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4100d5
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4100d5
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x4100d5
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x4100d5
push 0x43d888
push str.RAV.INI
push 0
push str.LEVEL
push str.DEBUG
call fcn.0040c290
push 0x43d888
push str.RAV.INI
push 0xffffffffffffffff
push 0x43e8d0
push str.DEBUG
mov dword [0x447fd4], eax
call fcn.0040c290
push 0x43d888
push str.RAV.INI
push 3
push str.OUTPUT
push str.DEBUG
mov dword [0x447fd0], eax
call fcn.0040c290
push 0x43d888
push str.RAV.INI
push 0x200
push str.LOGSIZE
push str.DEBUG
mov dword [0x447134], eax
call fcn.0040c1a0
add esp, 0x50
push 0x105
push 0x447ec8
mov dword [0x447130], eax
call fcn.0040f1f0
mov al, byte [0x447134]
add esp, 8
test al, 4
je 0x40fea5
mov eax, dword [0x447ec4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40fea5
push eax
push str.RS_DEBUG_VIEW
call edi
mov dword [0x447ec4], eax
call esi
test ebx, ebx
mov dword [0x447fd8], eax
je 0x4100d5
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x40fec6
mov ecx, dword [0x447134]
mov dword [ebp + 0x14], ecx
jmp 0x40fee8
test al, 4
je 0x40fee8
mov edx, dword [0x447ec4]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40fee8
push eax
push str.RS_DEBUG_VIEW
call edi
mov dword [0x447ec4], eax
mov esi, dword [ebp + 0xc]
test dword [0x447fd4], esi
je 0x4100d5
mov eax, dword [ebp + 0x10]
test dword [0x447fd0], eax
je 0x4100d5
xor eax, eax
mov ecx, 0x200
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push 0x800
push ecx
call fcn.00409d90
lea edx, [esp + 0x20]
push 0x800
push edx
call fcn.0040f070
add esp, 0x10
mov ecx, 0x800
lea eax, [esp + 0x18]
lea ecx, [ecx]
cmp byte [eax], 0
je 0x40ff4b
inc eax
dec ecx
jne 0x40ff40
jmp 0x40ff6d
test ecx, ecx
je 0x40ff6d
mov eax, 0x800
sub eax, ecx
push 0x43e8ac
mov ecx, 0x800
sub ecx, eax
push ecx
lea edx, [esp + eax + 0x20]
push edx
call fcn.00401710
push esi
lea eax, [esp + 0x1c]
push 0x800
push eax
call fcn.0040f140
add esp, 0xc
mov ecx, 0x800
lea eax, [esp + 0x18]
lea esp, [esp]
cmp byte [eax], 0
je 0x40ff9b
inc eax
dec ecx
jne 0x40ff90
jmp 0x40ffb9
test ecx, ecx
je 0x40ffb9
mov eax, 0x800
sub eax, ecx
push ebx
mov ecx, 0x800
sub ecx, eax
push ecx
lea edx, [esp + eax + 0x20]
push edx
call fcn.00401710
mov ecx, 0x800
lea eax, [esp + 0x18]
cmp byte [eax], 0
je 0x40ffcd
inc eax
dec ecx
jne 0x40ffc2
jmp 0x40ffef
test ecx, ecx
je 0x40ffef
mov eax, 0x800
sub eax, ecx
push 0x43e8a8
mov ecx, 0x800
sub ecx, eax
push ecx
lea edx, [esp + eax + 0x20]
push edx
call fcn.00401710
mov bl, byte [ebp + 0x14]
test bl, 1
je 0x410018
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x410003
mov eax, 0x447ec8
mov ecx, dword [0x447130]
push ecx
push eax
lea edx, [esp + 0x20]
push edx
call fcn.0040ee50
add esp, 0xc
test bl, 2
je 0x410028
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test bl, 4
je 0x4100d5
mov ecx, dword [0x447ec4]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4100d5
xor eax, eax
mov ecx, 0x205
lea edi, [esp + 0x818]
rep stosd dword es:[edi], eax
mov esi, 0x814
mov dword [esp + 0x818], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x81c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x820], eax
push 0x800
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x834]
push ecx
mov dword [esp + 0x830], edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edx, dword [ebp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push 0
mov dword [esp + 0x830], edx
mov edx, dword [0x447ec4]
push 0x4a
lea eax, [esp + 0x824]
push edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret