Function at 0x40e7a2
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x457bb8
call fcn.00420870
sub esp, 0x490
mov eax, dword [0x47018c]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x28], eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x20]
cmp eax, 4
mov eax, dword [esi]
mov ecx, esi
push 2
jne 0x40e7fa
call dword [eax + 0x24]
mov eax, dword [ebp + 0x14]
mov byte [eax], bl
mov eax, dword [0x475c08]
cmp eax, ebx
je 0x40e8a3
mov eax, dword [eax + 4]
jmp 0x40e8a5
call dword [eax + 0x24]
mov eax, dword [ebp + 0x14]
cmp byte [eax], bl
je 0x40e7e5
xor esi, esi
inc esi
jmp 0x40e811
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x475c20], esi
je 0x40e809
cmp byte [0x475595], bl
jne 0x40e89b
mov eax, dword [0x475c08]
cmp eax, ebx
je 0x40e82f
mov edi, dword [eax + 4]
jmp 0x40e831
xor edi, edi
call fcn.004514b2
mov ecx, dword [ebp + 0xc]
mov esi, dword [eax + 8]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
push eax
push ebx
push edi
push 3
push esi
call fcn.0040ce26
mov esi, eax
add esp, 0x18
cmp esi, 1
jne 0x40ec33
mov eax, dword [ebp + 0x14]
mov byte [eax], bl
mov eax, dword [0x475c08]
cmp eax, ebx
je 0x40e86e
mov eax, dword [eax + 4]
jmp 0x40e870
xor eax, eax
push ebx
push ebx
push 0x405
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [ebp + 0x14], 0x45bc30
push 1
lea ecx, [ebp + 0x14]
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040ec67
mov byte [ebp - 4], bl
jmp 0x40e8b6
mov dword [ebp - 0x10], esi
mov esi, dword [ebp + 0x18]
jmp 0x40e8b6
xor eax, eax
push ebx
push ebx
push 0x405
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
xor esi, esi
inc esi
cmp esi, 1
jne 0x40ec33
call fcn.0040ce13
cmp eax, ebx
je 0x40e8cf
mov ecx, eax
call fcn.00410556
cmp byte [0x475595], bl
jne 0x40e952
mov ecx, dword [ebp + 8]
call fcn.00406408
mov esi, eax
mov al, byte [ebp + 0x1b]
push ebx
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x38], al
call fcn.004018d7
push esi
call fcn.00420c20
pop ecx
push eax
push esi
lea ecx, [ebp - 0x38]
call fcn.0040190f
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004029ce
pop ecx
pop ecx
push 1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.004018d7
mov eax, dword [0x475c08]
cmp eax, ebx
je 0x40e945
mov eax, dword [eax]
cmp eax, ebx
je 0x40e945
mov ecx, dword [ebp - 0x44]
cmp ecx, ebx
jne 0x40e93d
mov ecx, 0x45ba98
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0x2c]
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.004018d7
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.00406332
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 5
cmp eax, dword [ebp - 0x1c]
mov esi, eax
je 0x40ec04
mov ecx, dword [esi]
call fcn.00408af6
cmp eax, 2
je 0x40e98c
mov ecx, dword [esi]
call fcn.00408af6
cmp eax, 0x40
jne 0x40eb4f
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x28]
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.00420a7c
pop ecx
pop ecx
mov ecx, dword [esi]
call fcn.00406500
mov ecx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x394]
push eax
lea eax, [ebp - 0x49c]
push eax
call fcn.0040d971
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x188]
push eax
call fcn.00411485
add esp, 0xc
mov ecx, dword [esi]
lea eax, [ebp - 0x84]
push eax
call fcn.00408657
push eax
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x28c]
push eax
call fcn.00411748
add esp, 0x10
cmp eax, ebx
jne 0x40eb65
mov ecx, dword [esi]
push 1
push 0x40
mov dword [ebp + 0x14], ebx
call fcn.00408664
cmp byte [0x475595], bl
jne 0x40ea47
mov eax, dword [0x475c08]
cmp eax, ebx
je 0x40ea47
mov eax, dword [eax]
cmp eax, ebx
je 0x40ea47
mov edx, dword [eax]
lea ecx, [ebp - 0x28c]
push 0x69
push ecx
lea ecx, [ebp - 0x188]
push ecx
mov ecx, eax
call dword [edx + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
cmp dword [ebp + 0x14], 0x5a
jge 0x40ea88
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x3e8
jbe 0x40ea88
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov eax, dword [0x475c08]
cmp eax, ebx
je 0x40ea85
mov eax, dword [eax]
cmp eax, ebx
je 0x40ea85
mov edx, dword [eax]
push ebx
push 1
mov ecx, eax
call dword [edx + 0x28]
inc dword [ebp + 0x14]
push 0x64
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40eaa2
cmp byte [0x475595], bl
je 0x40ea4f
mov eax, dword [0x475c08]
cmp eax, ebx
je 0x40eac3
mov ecx, dword [eax]
cmp ecx, ebx
je 0x40eac3
mov eax, dword [ecx]
push ebx
push 0x64
pop edx
sub edx, dword [ebp + 0x14]
push edx
call dword [eax + 0x28]
mov eax, dword [0x475c08]
cmp byte [0x475595], bl
jne 0x40eaf9
cmp byte [ebp + 0x18], bl
je 0x40eadc
lea eax, [esi + 4]
cmp eax, dword [ebp - 0x1c]
jne 0x40eadc
mov al, 1
jmp 0x40eade
xor al, al
push eax
mov ecx, dword [ebp - 0x14]
push dword [esi]
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.0040e2ab
mov dword [ebp - 0x10], eax
mov eax, dword [0x475c08]
jmp 0x40eb00
mov dword [ebp - 0x10], 4
cmp dword [ebp - 0x10], 1
je 0x40ec26
cmp dword [ebp - 0x10], 3
jne 0x40eb31
cmp eax, ebx
je 0x40e9de
mov eax, dword [eax]
cmp eax, ebx
je 0x40e9de
mov edx, dword [eax]
push ebx
push 0xffffffffffffff9c
mov ecx, eax
call dword [edx + 0x28]
jmp 0x40e9de
cmp dword [ebp - 0x10], 4
je 0x40ec26
cmp dword [ebp - 0x10], 5
jne 0x40eb54
cmp byte [0x475595], bl
je 0x40ec11
jmp 0x40eb54
mov eax, dword [0x475c08]
add esi, 4
cmp esi, dword [ebp - 0x1c]
jne 0x40e970
jmp 0x40ec09
cmp eax, 0x77
jne 0x40ebce
mov eax, dword [0x475c08]
cmp eax, ebx
je 0x40eb86
mov ecx, dword [eax]
cmp ecx, ebx
je 0x40eb86
mov eax, dword [ecx]
push ebx
push 0x64
call dword [eax + 0x28]
mov eax, dword [0x475c08]
cmp eax, ebx
mov dword [ebp - 0x10], 5
je 0x40eb96
mov esi, dword [eax + 4]
jmp 0x40eb98
xor esi, esi
call fcn.004514b2
mov eax, dword [eax + 8]
push ebx
push ebx
push 1
push esi
push 0xb
push eax
call fcn.0040ce26
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.0040e106
mov ecx, dword [ebp + 8]
add esp, 0x20
push 1
push 4
call fcn.00406511
mov eax, dword [0x475c08]
jmp 0x40ec11
cmp byte [0x475595], bl
jne 0x40ebfd
mov eax, dword [0x475c08]
cmp eax, ebx
je 0x40ebe4
mov esi, dword [eax + 4]
jmp 0x40ebe6
xor esi, esi
call fcn.004514b2
mov eax, dword [eax + 8]
push ebx
push ebx
push ebx
push esi
push 0xb
push eax
call fcn.0040ce26
add esp, 0x18
mov dword [ebp - 0x10], 1
mov eax, dword [0x475c08]
cmp byte [0x475595], bl
jne 0x40ec26
cmp eax, ebx
je 0x40ec26
mov eax, dword [eax]
cmp eax, ebx
je 0x40ec26
mov edx, dword [eax]
push 0x69
push 1
mov ecx, eax
call dword [edx + 0x10]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.004090f7
jmp 0x40ec47
cmp esi, 0x3fb
je 0x40ec40
cmp esi, 2
jne 0x40ec47
mov dword [ebp - 0x10], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00444a62
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14