Function at 0x401c00
Capabilities:
Check for foreground window switch
Check for time delay via gettickcount

Disassembly:
sub esp, 0x228
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0xa9]
mov byte [esp + 0xa8], bl
mov word [esp + 0x170], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov ecx, 0x31
mov dword [esp + 0x39], eax
lea edi, [esp + 0x172]
mov dword [esp + 0x3d], eax
mov byte [esp + 0x10c], bl
mov dword [esp + 0x41], eax
mov esi, dword [esp + 0x240]
mov dword [esp + 0x45], eax
mov word [esp + 0x80], bx
mov word [esp + 0x49], ax
push esi
mov byte [esp + 0x4f], al
push 0x40b150
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x40], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x8a]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x40]
push ecx
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x80]
push esi
push 0x40b148
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0xb4]
push 0x64
push eax
call fcn.004021e0
mov ebp, dword [esp + 0x25c]
mov ecx, dword [esp + 0x258]
mov edi, dword [esp + 0x250]
mov dword [esp + 0x24], eax
push ebp
lea edx, [esp + 0xc0]
push ecx
lea eax, [esp + 0x54]
push edx
push eax
push ebx
push edi
call fcn.00402500
mov esi, eax
add esp, 0x2c
cmp esi, ebx
jne 0x401d61
lea ecx, [esp + 0x170]
push 0x64
push ecx
lea edx, [esp + 0x88]
push 1
push edx
push edi
call fcn.00402850
mov esi, eax
add esp, 0x14
cmp esi, ebx
je 0x401d61
push ebx
push ebx
lea eax, [esp + 0x114]
push 0x64
push eax
lea ecx, [esp + 0x180]
push 0x64
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esp + 0x244]
lea edx, [esp + 0x10c]
push ebp
push edx
push eax
call fcn.00403460
add esp, 0xc
cmp esi, ebx
mov dword [esp + 0x18], esi
jne 0x402037
push edi
call fcn.00401380
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x402037
cmp dword [esp + 0x10], ebx
je 0x401dbb
lea ecx, [esp + 0xa8]
push ecx
call fcn.0040926c
add esp, 4
push 0x24
push 0x40b140
push 0x40b104
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
je 0x401dbb
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x228
ret
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0x10000000
mov dword [esp + 0x4c], eax
jne 0x401dd8
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebp, dword [sym.imp.USER32.dll_GetForegroundWindow]
call ebp
mov dword [esp + 0x54], eax
xor edi, edi
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
inc edi
call ebp
cmp eax, esi
je 0x401e0b
cmp edi, 0x3e8
jl 0x401de6
lea ebp, [esp + 0x5c]
mov eax, 5
push ebp
mov ecx, 0x46
sub esp, 0x10
mov edx, 0xd2
mov ebp, esp
mov edi, 0x6e
push esi
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edi
call fcn.004014a0
add esp, 0x18
test eax, eax
jne 0x401e62
push 0x10
push 0x40b0fc
push 0x40b0dc
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x228
ret
xor edx, edx
lea eax, [esp + 0x20]
mov dword [esp + 0x24], edx
push eax
mov dword [esp + 0x2c], edx
push esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x60]
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x30]
add ebp, ecx
add edi, edx
push eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ebp, dword [sym.imp.USER32.dll_SetCursorPos]
push ecx
push edx
call ebp
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x64]
push 0x1c
rep stosd dword es:[edi], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x68], ebx
push eax
push 1
mov dword [esp + 0x80], 6
call sub.USER32.dll_SendInput
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ecx
push edx
call ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x14], eax
mov edi, 0x64
mov dword [esp + 0x1c], ebx
call ebp
sub eax, dword [esp + 0x14]
cmp eax, 0x1388
jae 0x402008
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, ebx
sete al
mov dword [esp + 0x50], eax
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
add edi, 0x32
cmp eax, ebx
mov dword [esp + 0x58], edi
jne 0x401f56
cmp dword [esp + 0x1c], ebx
jne 0x401f56
push ebx
push ebx
call fcn.004021e0
add esp, 8
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x244]
mov edi, dword [esp + 0x23c]
push 0x64
lea edx, [esp + 0xac]
push ecx
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x40]
push edx
push eax
push ecx
push edi
call fcn.00402500
add esp, 0x18
cmp eax, ebx
jne 0x401ffe
mov ebp, dword [esp + 0x248]
lea edx, [esp + 0x170]
push ebp
push edx
lea eax, [esp + 0x88]
push 1
push eax
push edi
call fcn.00402850
add esp, 0x14
cmp eax, ebx
jne 0x401fc7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x14]
cmp eax, 0x1388
jae 0x40200f
mov edi, dword [esp + 0x58]
jmp 0x401f2c
push ebx
push ebx
lea ecx, [esp + 0x114]
push 0x64
push ecx
lea edx, [esp + 0x180]
push 0x64
push edx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [esp + 0x244]
lea eax, [esp + 0x10c]
push ebp
push eax
push ecx
call fcn.00403460
add esp, 0xc
mov dword [esp + 0x18], 1
jmp 0x40200f
mov edi, dword [esp + 0x23c]
cmp dword [esp + 0x4c], ebx
jne 0x40201d
push ebx
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esp + 0x10], ebx
jne 0x40202c
push edi
call fcn.00401990
add esp, 4
mov edx, dword [esp + 0x54]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x228
ret