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

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0xb4]
xor ebx, ebx
cmp eax, ebx
mov eax, 0x490cd0
jne 0x40c051
mov eax, str.Programming_user_code_...
push eax
push ebp
call fcn.00406ea0
add esp, 8
mov ecx, ebp
push ebx
push ebx
call fcn.00406f60
mov al, byte [ebp + 0x18]
mov edi, 1
test al, al
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], ebx
je 0x40c088
mov eax, dword [ebp + 0x170]
mov byte [esp + 0x12], 1
cmp eax, 3
jge 0x40c08d
mov byte [esp + 0x12], 0
mov al, byte [esp + 0x12]
mov esi, dword [ebp + 0xdc]
test al, al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
mov byte [ebp + 0x644], 0
je 0x40c0b4
push 1
push ebx
mov ecx, ebp
call fcn.00407560
cmp esi, ebx
jle 0x40c39a
mov eax, dword [ebp + 0xec]
mov edx, dword [esp + 0x18]
cmp edx, eax
jl 0x40c0cc
mov dl, al
mov esi, dword [ebp + 0x170]
mov byte [esp + 0x20], dl
cmp esi, 3
jl 0x40c144
mov ecx, dword [esp + 0x14]
mov al, byte [esp + 0x3c]
test ecx, ecx
mov byte [ebp + 0x644], al
jne 0x40c0f1
or al, 0x20
jmp 0x40c0f3
and al, 0xdf
cmp esi, 4
mov byte [ebp + 0x644], al
jne 0x40c105
mov byte [ebp + 0x644], 2
xor eax, eax
mov byte [ebp + 0x646], cl
mov al, ch
mov byte [esp + 0x24], 3
mov byte [ebp + 0x645], al
mov eax, dword [ebp + 0x14c]
cmp eax, 0x72
jl 0x40c18f
mov cl, byte [ebp + 0xca0]
mov dl, byte [ebp + 0xca1]
mov byte [ebp + 0x647], cl
mov byte [ebp + 0x648], dl
mov byte [esp + 0x24], 5
jmp 0x40c18f
cmp byte [ebp + 0x644], 0x30
je 0x40c154
mov byte [ebp + 0x644], 0
mov ecx, dword [esp + 0x14]
xor ebx, ebx
mov eax, ecx
mov byte [ebp + 0x648], cl
shr eax, 0x10
mov bl, ah
mov byte [ebp + 0x646], al
xor eax, eax
mov byte [ebp + 0x645], bl
mov al, ch
mov byte [ebp + 0x649], 0
mov byte [ebp + 0x647], al
mov byte [ebp + 0x64a], dl
mov byte [esp + 0x24], 7
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov esi, dword [ebp + 0x204]
mov edx, dword [esp + 0x14]
and ebx, 0xff
and eax, 0xff
mov ecx, ebx
mov dword [esp + 0x2c], eax
lea edi, [eax + ebp + 0x644]
mov eax, ecx
add esi, edx
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x204]
push ecx
mov ecx, ebp
call fcn.00406fb0
mov edx, dword [esp + 0x2c]
mov byte [esp + 0x13], al
add edx, ebx
lea eax, [ebp + 0x644]
push edx
push eax
mov ecx, ebp
call fcn.00407470
push 0x7d0
mov ecx, ebp
call fcn.004077c0
mov al, byte [esp + 0x12]
test al, al
jne 0x40c211
push 1
push 0
mov ecx, ebp
call fcn.00407560
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x28]
mov al, byte [ebp + 0x17]
test al, al
je 0x40c5cb
mov ecx, ebp
call fcn.004077e0
test al, al
jne 0x40c5da
mov al, byte [esp + 0x12]
test al, al
je 0x40c28f
lea esi, [ebp + 0x244]
push 1
push esi
mov ecx, ebp
call fcn.00407560
test al, al
je 0x40c275
push 1
push 0
mov ecx, ebp
call fcn.00407560
cmp byte [esi], 2
jne 0x40c5f2
cmp byte [ebp + 0x245], 0x54
jne 0x40c5f2
inc ebx
mov dword [esp + 0x1c], ebx
mov al, byte [ebp + 0x15]
test al, al
je 0x40c285
inc edi
mov byte [ebp + 0x15], 0
mov dword [esp + 0x28], edi
test ebx, ebx
jle 0x40c219
test edi, edi
jg 0x40c2a8
jmp 0x40c219
lea eax, [ebp + 0x244]
push 1
push eax
mov ecx, ebp
call fcn.00407560
test al, al
jne 0x40c2b7
jmp 0x40c219
dec ebx
dec edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], edi
jmp 0x40c342
mov eax, dword [ebp + 0x170]
test eax, eax
jne 0x40c2f1
mov al, byte [ebp + 0x244]
cmp al, 0x80
jne 0x40c2d9
mov cl, byte [esp + 0x13]
mov dl, byte [ebp + 0x245]
cmp dl, cl
je 0x40c342
cmp al, 0x81
jne 0x40c5f2
mov byte [ebp + 0x244], 0x30
mov byte [ebp + 0x644], 0x30
jmp 0x40c342
cmp eax, 3
jl 0x40c31c
mov dl, byte [ebp + 0x644]
mov al, byte [ebp + 0x244]
and dl, 0xf
cmp al, dl
jne 0x40c5f2
cmp byte [ebp + 0x245], 0x54
jne 0x40c5f2
jmp 0x40c342
mov al, byte [ebp + 0x244]
test al, al
mov byte [ebp + 0x644], al
jne 0x40c33a
mov cl, byte [esp + 0x13]
mov dl, byte [ebp + 0x245]
cmp dl, cl
je 0x40c342
cmp al, 0x30
jne 0x40c5f2
cmp byte [ebp + 0x244], 0x30
je 0x40c38a
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp + 0xdc]
mov esi, dword [esp + 0x14]
push edx
push esi
mov ecx, ebp
call fcn.00406f60
mov eax, dword [ebp + 0xec]
mov ecx, dword [esp + 0x18]
add esi, eax
sub ecx, eax
mov al, byte [ebp + 0x644]
mov dword [esp + 0x14], esi
and al, 0xdf
mov dword [esp + 0x18], ecx
mov byte [ebp + 0x644], al
mov eax, dword [esp + 0x18]
test eax, eax
jg 0x40c0bc
mov edi, dword [esp + 0x1c]
mov al, byte [esp + 0x12]
test al, al
je 0x40c3f8
test edi, edi
jg 0x40c3f8
mov al, byte [ebp + 0x17]
test al, al
je 0x40c5cb
mov ecx, ebp
call fcn.004077e0
test al, al
jne 0x40c5da
lea esi, [ebp + 0x244]
push 1
push esi
mov ecx, ebp
call fcn.00407560
test al, al
je 0x40c3a2
push 1
push 0
mov ecx, ebp
call fcn.00407560
cmp byte [esi], 2
jne 0x40c5f2
cmp byte [ebp + 0x245], 0x54
jne 0x40c5f2
inc edi
jmp 0x40c3a2
mov al, byte [esp + 0x40]
test al, al
je 0x40c50a
cmp dword [ebp + 0x14c], 0x72
jl 0x40c50a
mov ebx, dword [ebp + 0x210]
mov al, byte [ebx]
inc ebx
cmp al, 0x5a
jne 0x40c50a
mov byte [ebp + 0x644], 2
mov cl, byte [ebx]
inc ebx
mov byte [ebp + 0x646], cl
mov cl, byte [ebp + 0xca0]
lea edi, [ebp + 0x649]
mov dl, byte [ebx]
inc ebx
mov byte [ebp + 0x645], dl
mov dl, byte [ebp + 0xca1]
mov al, byte [ebx]
mov byte [ebp + 0x647], cl
mov byte [esp + 0x20], al
mov byte [ebp + 0x648], dl
mov eax, dword [esp + 0x20]
inc ebx
and eax, 0xff
mov esi, ebx
mov ecx, eax
mov dword [esp + 0x40], eax
mov edx, ecx
add eax, 5
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
lea eax, [ebp + 0x644]
rep movsb byte es:[edi], byte [esi]
push eax
mov ecx, ebp
call fcn.00407470
push 0x7d0
mov ecx, ebp
call fcn.004077c0
push 1
push 0
mov ecx, ebp
call fcn.00407560
mov al, byte [ebp + 0x17]
test al, al
je 0x40c5cb
mov ecx, ebp
call fcn.004077e0
test al, al
jne 0x40c5da
lea eax, [ebp + 0x244]
push 1
push eax
mov ecx, ebp
call fcn.00407560
test al, al
je 0x40c4a8
mov cl, byte [ebp + 0x644]
mov al, byte [ebp + 0x244]
and cl, 0xf
cmp al, cl
jne 0x40c5f2
cmp byte [ebp + 0x245], 0x54
jne 0x40c5f2
add ebx, dword [esp + 0x40]
mov dl, byte [ebx]
inc ebx
cmp dl, 0x5a
je 0x40c422
mov eax, dword [ebp + 0x170]
cmp eax, 1
je 0x40c51e
cmp eax, 2
jne 0x40c601
mov al, byte [ebp + 0x2b]
test al, al
jne 0x40c53b
mov eax, dword [ebp + 0xf8]
shl eax, 5
test byte [eax + 0x46cc88], 0x10
jne 0x40c601
mov ecx, dword [ebp + 0xf8]
lea eax, [ebp + 0x644]
shl ecx, 5
xor edx, edx
mov byte [eax], 0x69
lea ecx, [ecx + 0x46cc90]
mov byte [ebp + 0x645], 0
mov byte [ebp + 0x646], 0
mov byte [ebp + 0x647], 0x36
mov byte [ebp + 0x648], 1
mov dl, byte [ecx + 1]
mov byte [ebp + 0x649], dl
mov cl, byte [ecx]
mov byte [ebp + 0x64a], cl
push 7
push eax
mov ecx, ebp
call fcn.00407470
push 0x7d0
mov ecx, ebp
call fcn.004077c0
push 1
push 0
mov ecx, ebp
call fcn.00407560
mov al, byte [ebp + 0x17]
test al, al
je 0x40c5cb
mov ecx, ebp
call fcn.004077e0
test al, al
jne 0x40c5da
lea edx, [ebp + 0x244]
push 1
push edx
mov ecx, ebp
call fcn.00407560
test al, al
jne 0x40c5e9
jmp 0x40c5a3
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x28
ret 8
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x28
ret 8
cmp byte [ebp + 0x244], 0x8d
je 0x40c601
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x28
ret 8
push 0
push 0
mov ecx, ebp
call fcn.00406f60
mov eax, dword [ebp + 0xb4]
mov esi, 0x490bb8
test eax, eax
jne 0x40c620
mov esi, str.OK___t_t__.3f___r_n
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x34], 0
sub eax, ebx
sub esp, 8
mov dword [esp + 0x38], eax
fild qword [esp + 0x38]
fmul dword [0x47505c]
fstp qword [esp]
push esi
push ebp
call fcn.00406ea0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8