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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.00417640
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x532978]
xor esi, esi
cmp eax, 0x2710
ja 0x40326c
cmp dword [ebp + 8], esi
jne 0x403322
cmp dword [ebp + 0xc], esi
jne 0x4034d7
cmp dword [ebp + 0x10], esi
jne 0x4034d7
cmp dword [ebp + 0x14], esi
jne 0x4034d7
cmp dword [ebp + 0x18], esi
jne 0x4034d7
mov ebx, 0x429724
push ebx
mov edi, 0x42971c
push edi
push esi
push 0x429788
mov esi, 0x42970c
push esi
call fcn.004029cd
push ebx
push edi
push 0xffffffffffffffff
push 0x429784
push esi
mov dword [0x532974], eax
call fcn.004029cd
push ebx
push edi
push 3
push 0x42977c
push esi
mov dword [0x532970], eax
call fcn.004029cd
push ebx
push edi
push 0x200
push 0x429774
push esi
mov dword [0x4302ec], eax
call fcn.0040296d
add esp, 0x50
push 0x105
push 0x532868
mov dword [0x4302e8], eax
call fcn.00402eb4
test byte [0x4302ec], 4
pop ecx
pop ecx
je 0x40330b
push dword [0x532860]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40330b
push eax
push 0x429764
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x532860], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp + 8], 0
mov dword [0x532978], eax
je 0x4034d7
xor esi, esi
cmp dword [ebp + 0x14], esi
jne 0x403331
mov eax, dword [0x4302ec]
mov dword [ebp + 0x14], eax
jmp 0x403358
test byte [ebp + 0x14], 4
je 0x403358
push dword [0x532860]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x403358
push esi
push 0x429764
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x532860], eax
mov ebx, dword [ebp + 0xc]
test dword [0x532974], ebx
je 0x4034d7
mov eax, dword [ebp + 0x10]
test dword [0x532970], eax
je 0x4034d7
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.00416d70
lea eax, [ebp - 0x80c]
push esi
push eax
call fcn.00402413
lea eax, [ebp - 0x80c]
push esi
push eax
call fcn.00402d81
add esp, 0x1c
push 0x429760
push esi
lea eax, [ebp - 0x80c]
push eax
call fcn.004023e2
push ebx
lea eax, [ebp - 0x80c]
push esi
push eax
call fcn.00402e3a
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x80c]
push esi
push eax
call fcn.004023e2
push 0x42975c
push esi
lea eax, [ebp - 0x80c]
push eax
call fcn.004023e2
test byte [ebp + 0x14], 1
je 0x40342d
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x403417
mov eax, 0x532868
push dword [0x4302e8]
push eax
lea eax, [ebp - 0x80c]
push eax
call fcn.00402be2
add esp, 0xc
test byte [ebp + 0x14], 2
je 0x403440
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test byte [ebp + 0x14], 4
je 0x4034d7
push dword [0x532860]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4034d7
mov edi, 0x814
push edi
lea eax, [ebp - 0x1020]
push 0
push eax
call fcn.00416d70
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 [0x532860]
mov dword [ebp - 8], edi
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebx
leave
ret