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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ab368]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea ebx, [edx + 0xa]
and ebx, 0x80000007
push edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
jns 0x402475
dec ebx
or ebx, 0xfffffff8
inc ebx
mov dword [ebp - 0x18], ebx
je 0x402486
mov eax, 8
sub eax, ebx
mov dword [ebp - 0x18], eax
mov ebx, eax
test byte [0x4ad708], 1
jne 0x4024ab
or dword [0x4ad708], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
imul edi, edi, 0x64
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, edi
jmp 0x4024b0
mov eax, dword [0x4ad704]
imul eax, eax, 0x343fd
add eax, 0x269ec3
mov dword [0x4ad704], eax
sar eax, 0x10
and al, 0xf8
or al, bl
cmp dword [ebp - 0x18], 0
mov byte [ebp - 0xc], al
mov ebx, 1
je 0x402533
jmp 0x4024e0
mov eax, 1
sub dword [ebp - 0x18], eax
test byte [0x4ad708], al
jne 0x40250e
or dword [0x4ad708], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
imul edi, edi, 0x64
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, edi
mov dword [0x4ad704], eax
mov eax, dword [0x4ad704]
imul eax, eax, 0x343fd
add eax, 0x269ec3
mov dword [0x4ad704], eax
sar eax, 0x10
mov byte [ebp + ebx - 0xc], al
add ebx, 1
cmp dword [ebp - 0x18], 0
jne 0x4024e0
mov ecx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx], eax
mov ecx, 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x14]
mov dword [ebp - 0x18], ecx
jmp 0x402550
cmp ebx, 8
jge 0x4025a7
test byte [0x4ad708], 1
jne 0x402583
or dword [0x4ad708], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
imul eax, eax, 0x64
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, dword [ebp - 0x24]
mov ecx, 1
mov dword [0x4ad704], eax
mov eax, dword [0x4ad704]
add dword [ebp - 0x18], ecx
imul eax, eax, 0x343fd
add eax, 0x269ec3
mov dword [0x4ad704], eax
sar eax, 0x10
mov byte [ebp + ebx - 0xc], al
add ebx, ecx
cmp ebx, 8
jne 0x40263d
movzx edx, byte [edi]
movzx eax, byte [edi + 1]
movzx ecx, byte [edi + 2]
xor byte [ebp - 0xa], cl
xor byte [ebp - 0xc], dl
xor byte [ebp - 0xb], al
movzx edx, byte [edi + 3]
movzx eax, byte [edi + 4]
movzx ecx, byte [edi + 5]
xor byte [ebp - 7], cl
xor byte [ebp - 9], dl
xor byte [ebp - 8], al
movzx edx, byte [edi + 6]
movzx eax, byte [edi + 7]
mov ecx, dword [ebp - 0x20]
xor byte [ebp - 6], dl
xor byte [ebp - 5], al
push esi
push ecx
lea ecx, [ebp - 0xc]
call fcn.00401df0
mov eax, dword [ebp - 0x14]
xor byte [esi], al
xor byte [esi + 1], ah
movzx eax, byte [ebp - 0x11]
xor byte [esi + 3], al
movzx edx, byte [ebp - 0x12]
mov eax, dword [ebp - 0x10]
xor byte [esi + 4], al
xor byte [esi + 5], ah
movzx ecx, byte [ebp - 0xe]
xor byte [esi + 2], dl
xor byte [esi + 6], cl
movzx edx, byte [ebp - 0xd]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
xor byte [esi + 7], dl
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
add dword [eax], 8
xor ebx, ebx
add esp, 8
mov dword [ebp - 0x10], ecx
mov edi, esi
add esi, 8
lea ecx, [ebx + 1]
cmp dword [ebp - 0x18], 2
jle 0x402550
cmp dword [ebp + 0xc], 0
je 0x40270c
cmp ebx, 8
jge 0x40266c
mov eax, dword [ebp + 8]
mov dl, byte [eax]
sub dword [ebp + 0xc], ecx
mov byte [ebp + ebx - 0xc], dl
add eax, ecx
add ebx, ecx
mov dword [ebp + 8], eax
cmp ebx, 8
jne 0x402702
movzx ecx, byte [edi + 1]
movzx eax, byte [edi]
xor byte [ebp - 0xb], cl
movzx edx, byte [edi + 2]
movzx ecx, byte [edi + 4]
xor byte [ebp - 0xc], al
xor byte [ebp - 0xa], dl
movzx eax, byte [edi + 3]
movzx edx, byte [edi + 5]
xor byte [ebp - 8], cl
movzx ecx, byte [edi + 7]
xor byte [ebp - 9], al
xor byte [ebp - 7], dl
movzx eax, byte [edi + 6]
mov edx, dword [ebp - 0x20]
xor byte [ebp - 5], cl
xor byte [ebp - 6], al
push esi
push edx
lea ecx, [ebp - 0xc]
call fcn.00401df0
mov eax, dword [ebp - 0x14]
xor byte [esi], al
xor byte [esi + 1], ah
movzx eax, byte [ebp - 0x12]
xor byte [esi + 2], al
mov eax, dword [ebp - 0x10]
xor byte [esi + 4], al
xor byte [esi + 5], ah
movzx ecx, byte [ebp - 0x11]
movzx eax, byte [ebp - 0xd]
movzx edx, byte [ebp - 0xe]
xor byte [esi + 3], cl
xor byte [esi + 7], al
xor byte [esi + 6], dl
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
add dword [eax], 8
xor ebx, ebx
add esp, 8
mov dword [ebp - 0x14], ecx
mov edi, esi
mov dword [ebp - 0x10], edx
add esi, 8
lea ecx, [ebx + 1]
cmp dword [ebp + 0xc], 0
jne 0x402651
mov dword [ebp - 0x18], ecx
nop
cmp ebx, 8
jge 0x402722
add dword [ebp - 0x18], ecx
mov byte [ebp + ebx - 0xc], 0
add ebx, ecx
cmp ebx, 8
jne 0x4027b8
movzx ecx, byte [edi + 1]
movzx eax, byte [edi]
xor byte [ebp - 0xb], cl
movzx edx, byte [edi + 2]
movzx ecx, byte [edi + 4]
xor byte [ebp - 0xc], al
xor byte [ebp - 0xa], dl
movzx eax, byte [edi + 3]
movzx edx, byte [edi + 5]
xor byte [ebp - 8], cl
movzx ecx, byte [edi + 7]
xor byte [ebp - 9], al
xor byte [ebp - 7], dl
movzx eax, byte [edi + 6]
mov edx, dword [ebp - 0x20]
xor byte [ebp - 5], cl
xor byte [ebp - 6], al
push esi
push edx
lea ecx, [ebp - 0xc]
call fcn.00401df0
mov eax, dword [ebp - 0x14]
xor byte [esi], al
xor byte [esi + 1], ah
movzx eax, byte [ebp - 0x12]
xor byte [esi + 2], al
mov eax, dword [ebp - 0x10]
xor byte [esi + 4], al
xor byte [esi + 5], ah
movzx ecx, byte [ebp - 0x11]
movzx eax, byte [ebp - 0xd]
movzx edx, byte [ebp - 0xe]
xor byte [esi + 3], cl
xor byte [esi + 7], al
xor byte [esi + 6], dl
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
add dword [eax], 8
xor ebx, ebx
add esp, 8
mov dword [ebp - 0x14], ecx
mov edi, esi
mov dword [ebp - 0x10], edx
add esi, 8
lea ecx, [ebx + 1]
cmp dword [ebp - 0x18], 7
jle 0x402710
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00463522
mov esp, ebp
pop ebp
ret