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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.00417120
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x531978]
xor esi, esi
cmp eax, 0x2710
ja 0x4030b7
cmp dword [ebp + 8], esi
jne 0x40316d
cmp dword [ebp + 0xc], esi
jne 0x403322
cmp dword [ebp + 0x10], esi
jne 0x403322
cmp dword [ebp + 0x14], esi
jne 0x403322
cmp dword [ebp + 0x18], esi
jne 0x403322
mov ebx, 0x4286e8
push ebx
mov edi, 0x4286e0
push edi
push esi
push 0x42874c
mov esi, 0x4286d0
push esi
call fcn.0040287e
push ebx
push edi
push 0xffffffffffffffff
push 0x428748
push esi
mov dword [0x531974], eax
call fcn.0040287e
push ebx
push edi
push 3
push 0x428740
push esi
mov dword [0x531970], eax
call fcn.0040287e
push ebx
push edi
push 0x200
push 0x428738
push esi
mov dword [0x42f2ec], eax
call fcn.0040281e
add esp, 0x50
push 0x105
push 0x531868
mov dword [0x42f2e8], eax
call fcn.00402cff
test byte [0x42f2ec], 4
pop ecx
pop ecx
je 0x403156
push dword [0x531860]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x403156
push eax
push 0x428728
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x531860], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp + 8], 0
mov dword [0x531978], eax
je 0x403322
xor esi, esi
cmp dword [ebp + 0x14], esi
jne 0x40317c
mov eax, dword [0x42f2ec]
mov dword [ebp + 0x14], eax
jmp 0x4031a3
test byte [ebp + 0x14], 4
je 0x4031a3
push dword [0x531860]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4031a3
push esi
push 0x428728
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x531860], eax
mov ebx, dword [ebp + 0xc]
test dword [0x531974], ebx
je 0x403322
mov eax, dword [ebp + 0x10]
test dword [0x531970], eax
je 0x403322
xor eax, eax
mov byte [ebp - 0x80c], 0
mov ecx, 0x1ff
lea edi, [ebp - 0x80b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x800
push esi
stosb byte es:[edi], al
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.00416850
lea eax, [ebp - 0x80c]
push esi
push eax
call fcn.0040235f
lea eax, [ebp - 0x80c]
push esi
push eax
call fcn.00402bcc
add esp, 0x1c
push 0x428724
push esi
lea eax, [ebp - 0x80c]
push eax
call fcn.0040232e
push ebx
lea eax, [ebp - 0x80c]
push esi
push eax
call fcn.00402c85
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x80c]
push esi
push eax
call fcn.0040232e
push 0x428720
push esi
lea eax, [ebp - 0x80c]
push eax
call fcn.0040232e
test byte [ebp + 0x14], 1
je 0x403278
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x403262
mov eax, 0x531868
push dword [0x42f2e8]
push eax
lea eax, [ebp - 0x80c]
push eax
call fcn.00402a2d
add esp, 0xc
test byte [ebp + 0x14], 2
je 0x40328b
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test byte [ebp + 0x14], 4
je 0x403322
push dword [0x531860]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403322
mov edi, 0x814
push edi
lea eax, [ebp - 0x1020]
push 0
push eax
call fcn.00416850
add esp, 0xc
mov dword [ebp - 0x1020], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x101c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x1018], eax
push esi
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x100c]
push eax
mov dword [ebp - 0x1014], ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp + 0x10]
and dword [ebp - 0xc], 0
mov dword [ebp - 0x1010], eax
lea eax, [ebp - 0x1020]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x4a
push dword [0x531860]
mov dword [ebp - 8], edi
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebx
leave
ret