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

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x11
add esp, 0xfffff004
push eax
dec eax
jne 0x40b675
mov eax, dword [ebp - 4]
add esp, 0xfffffb4c
push ebx
push esi
push edi
mov eax, 0x52cf24
call fcn.0049b3b8
mov word [ebp - 0x18], 8
xor edx, edx
lea edi, [ebp - 0x130]
mov dword [ebp - 4], edx
mov esi, 0x50279d
inc dword [ebp - 0xc]
mov ecx, 0x40
mov word [ebp - 0x18], 0x14
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov word [ebp - 0x18], 0x20
push 0x52b523
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00403510
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call fcn.004036e0
mov eax, dword [ebp + 0xc]
pop ecx
lea edx, [ebp - 0x114b8]
xor ebx, ebx
mov byte [eax + 0x39], 0
push 0x10000
push 0
push edx
call fcn.0049af44
add esp, 0xc
xor eax, eax
lea edx, [ebp - 0x14b8]
mov byte [edx], 0x55
inc eax
inc edx
cmp eax, 0x1388
jl 0x40b70a
push 1
lea ecx, [ebp - 0x14b8]
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.004035d4
add esp, 0xc
call fcn.004a2ec0
mov esi, eax
call fcn.004a2ec0
mov dword [ebp - 0x2c], eax
xor edi, edi
push 1
call sub.KERNEL32.DLL_Sleep
call fcn.00403fd0
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x39], 0
jne 0x40b7e2
cmp edi, 0xe000
jle 0x40b75f
xor edi, edi
push 1
push edi
lea eax, [ebp - 0x114b8]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00403618
add esp, 0x10
mov edi, eax
test edi, edi
jle 0x40b7a6
xor eax, eax
lea edx, [ebp - 0x114b8]
cmp edi, eax
jle 0x40b792
cmp byte [edx], 0x82
je 0x40b792
inc eax
inc edx
cmp edi, eax
jg 0x40b787
cmp edi, eax
je 0x40b79a
mov bl, 1
jmp 0x40b7e2
xor edi, edi
mov eax, dword [ebp + 8]
push eax
call fcn.004036e0
pop ecx
call fcn.004a2ec0
sub eax, dword [ebp - 0x2c]
cmp eax, 0xf
jle 0x40b7d0
push 1
lea edx, [ebp - 0x14b8]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.004035d4
add esp, 0xc
call fcn.004a2ec0
mov dword [ebp - 0x2c], eax
call fcn.004a2ec0
sub eax, esi
cmp eax, 0x320
jle 0x40b73c
test bl, bl
je 0x40b87d
lea eax, [ebp - 0x130]
push 0x103
push eax
xor ebx, ebx
mov edx, dword [ebp + 8]
push edx
call fcn.004035d4
add esp, 0xc
xor edi, edi
call fcn.004a2ec0
mov esi, eax
push 1
call sub.KERNEL32.DLL_Sleep
call fcn.00403fd0
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x39], 0
jne 0x40b87d
cmp edi, 0xe000
jle 0x40b82c
xor edi, edi
push 0x64
push edi
lea eax, [ebp - 0x114b8]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00403618
add esp, 0x10
mov edi, eax
cmp edi, 1
jl 0x40b86f
xor eax, eax
lea edx, [ebp - 0x114b8]
jmp 0x40b860
cmp byte [edx], 1
jne 0x40b85e
cmp byte [edx + 1], 0xaa
je 0x40b867
inc eax
inc edx
lea ecx, [edi - 1]
cmp eax, ecx
jl 0x40b853
cmp edi, eax
je 0x40b86f
mov bl, 1
jmp 0x40b87d
call fcn.004a2ec0
sub eax, esi
cmp eax, 0x320
jle 0x40b80d
test bl, bl
je 0x40b885
xor ebx, ebx
jmp 0x40b89a
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x39], 0
je 0x40b895
mov ebx, 0xc8
jmp 0x40b89a
mov ebx, 0x64
mov eax, ebx
mov edx, 2
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0xc]
call fcn.004a6e54
pop eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x40b8e8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret