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

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
call esi
cmp byte [0x4108f0], 1
mov dword [esp + 0x18], eax
jne 0x401ad7
xor eax, eax
xor ecx, ecx
mov ax, word [0x410f68]
mov edx, dword [esp + 0x18]
mov cx, word [eax + eax*2 + 0x414655]
sub edx, dword [0x410f74]
lea eax, [eax + eax*2]
cmp ecx, edx
ja 0x401ad7
mov al, byte [eax + 0x414654]
push eax
call fcn.004036f0
mov ax, word [0x410f64]
add esp, 4
cmp word [0x410f68], ax
jae 0x401ad2
inc word [0x410f68]
xor eax, eax
mov ax, word [0x410f68]
mov al, byte [eax + eax*2 + 0x414654]
cmp al, 0xff
je 0x401ad2
push eax
call fcn.00403360
add esp, 4
jmp 0x401ad7
call fcn.00402ec0
xor edx, edx
xor ecx, ecx
mov dl, byte [0x410f94]
mov cl, byte [0x410f8c]
lea eax, [edx - 2]
cmp eax, ecx
jle 0x401af6
inc byte [0x410f8c]
jmp 0x401b38
inc edx
cmp edx, ecx
jge 0x401b03
dec byte [0x410f8c]
jmp 0x401b38
call fcn.0040ae90
and eax, 3
cmp eax, 2
jle 0x401b15
mov eax, 2
dec eax
jns 0x401b23
cmp byte [0x410f8c], 0
jne 0x401b23
neg eax
test eax, eax
jle 0x401b32
cmp byte [0x410f8c], 0xb
jne 0x401b32
neg eax
add byte [0x410f8c], al
xor edx, edx
xor ecx, ecx
mov dl, byte [0x410f98]
mov cl, byte [0x410f90]
lea eax, [edx - 2]
cmp eax, ecx
jle 0x401b57
inc byte [0x410f90]
jmp 0x401b99
inc edx
cmp edx, ecx
jge 0x401b64
dec byte [0x410f90]
jmp 0x401b99
call fcn.0040ae90
and eax, 3
cmp eax, 2
jle 0x401b76
mov eax, 2
dec eax
jns 0x401b84
cmp byte [0x410f90], 0
jne 0x401b84
neg eax
test eax, eax
jle 0x401b93
cmp byte [0x410f90], 0xb
jne 0x401b93
neg eax
add byte [0x410f90], al
cmp dword [0x410f88], 0
je 0x401bb6
call esi
sub eax, dword [0x410f74]
cmp eax, 0x3e8
jb 0x401bb6
call fcn.004039e0
mov eax, dword [0x41464c]
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x10], esi
mov dword [eax + 4], esi
mov dword [esp + 0x14], ebx
mov eax, dword [0x41464c]
mov dword [eax + 8], ebx
mov eax, 0xac
mov word [0x414644], si
cmp si, ax
jb 0x401bf5
mov eax, 0x110
cmp word [0x414644], ax
jbe 0x401bfb
mov word [0x414644], ax
mov eax, dword [esp + 0x28]
test al, 3
jne 0x401caf
test al, 0xc
je 0x401ca5
cmp dword [0x410918], 0
jne case.default.0x401e1c
cmp byte [0x410f50], 0xe
jae 0x401c44
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push ecx
mov edx, dword [0x410f5c]
push eax
mov edi, dword [sym.imp.USER32.dll_PtInRect]
push edx
call edi
test eax, eax
jne 0x401c56
jmp 0x401cb5
push ebx
mov eax, dword [0x410f60]
push esi
push eax
call dword [sym.imp.GDI32.dll_PtInRegion]
test eax, eax
je 0x401caf
cmp byte [0x410f50], 5
jne 0x401c79
cmp word [0x410f68], 0
je case.default.0x401e1c
dec word [0x410f68]
jmp 0x40204a
cmp byte [0x410f50], 0xd
jne case.default.0x401e1c
mov ax, word [0x410f64]
cmp word [0x410f68], ax
jae case.default.0x401e1c
inc word [0x410f68]
jmp 0x40204a
call fcn.00403100
jmp case.default.0x401e1c
mov edi, dword [sym.imp.USER32.dll_PtInRect]
call fcn.00403100
mov eax, dword [0x41464c]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x18], 1
push ecx
push edx
push 0x4108f8
call edi
test eax, eax
je case.default.0x401e1c
cmp byte [0x4108f0], 1
je 0x401dd5
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push ecx
push eax
push 0x410908
call edi
test eax, eax
je 0x401da8
xor edi, edi
mov ebp, 0x414610
push ebx
mov eax, dword [ebp]
push esi
push eax
call dword [sym.imp.GDI32.dll_PtInRegion]
test eax, eax
jne 0x401d2d
add ebp, 4
inc edi
cmp ebp, 0x414644
jb 0x401d0c
jmp case.default.0x401e1c
lea eax, [edi + 0xe]
mov ecx, dword [edi*4 + 0x414610]
mov edx, dword [0x41464c]
mov byte [0x410f50], al
lea eax, [edi + edi*2]
mov dword [0x410f60], ecx
mov dword [edx + 0x1b8], 1
mov ecx, dword [0x41464c]
mov ebx, dword [eax*4 + 0x4111d8]
lea edx, [eax*4]
mov dword [ecx + 0x1bc], ebx
mov ecx, dword [0x41464c]
mov eax, dword [edx + 0x4111dc]
mov dword [ecx + 0x1c0], eax
mov ecx, dword [0x41464c]
mov edx, dword [edx + 0x4111e0]
mov dword [ecx + 0x1d0], edx
mov al, byte [0x410f50]
sub al, 0xe
push eax
call fcn.00403360
add esp, 4
jmp case.default.0x401e1c
cmp byte [0x4108f0], 1
je 0x401dd5
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push ecx
push eax
push 0x4144a8
call edi
test eax, eax
je 0x401dd5
mov dword [0x410918], 1
jmp case.default.0x401e1c
xor ebx, ebx
mov esi, 0x410c98
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push ecx
push eax
push esi
call edi
test eax, eax
jne 0x401dfe
add esi, 0x10
inc ebx
cmp esi, 0x410d78
jb 0x401ddc
jmp case.default.0x401e1c
mov eax, ebx
mov byte [0x410f50], bl
shl eax, 4
add eax, 0x410c98
cmp ebx, 0xd
mov dword [0x410f5c], eax
ja case.default.0x401e1c
jmp dword [ebx*4 + 0x4021c8]
xor bl, bl
jmp 0x401e2d
mov bl, 1
jmp 0x401e2d
mov bl, 2
cmp byte [0x4108f0], 0
jne 0x402058
push ebx
call fcn.00402f60
add esp, 4
xor eax, eax
mov al, bl
lea eax, [eax + eax*4]
shl eax, 3
add eax, dword [0x41464c]
add eax, 0x2e8
mov dword [0x410f58], eax
mov dword [eax], 0
jmp case.default.0x401e1c
cmp dword [0x410f4c], 1
sbb eax, eax
mov ecx, dword [0x41464c]
neg eax
mov dword [0x410f4c], eax
mov dword [ecx + 0x168], eax
mov eax, dword [0x410f4c]
mov ecx, dword [0x41464c]
mov dword [ecx + 0x388], eax
jmp case.default.0x401e1c
cmp byte [0x4108f0], 0
jne 0x402058
mov eax, dword [0x41464c]
mov dword [eax + 0x28], 1
mov eax, dword [0x41464c]
add eax, 0x40
mov dword [0x410f58], eax
mov dword [eax], 0
jmp case.default.0x401e1c
cmp byte [0x4108f0], 0
jne 0x402058
cmp word [0x410f68], 0
je 0x401ee9
dec word [0x410f68]
mov eax, dword [0x41464c]
mov dword [eax + 0x78], 1
jmp 0x40204a
call fcn.00402ec0
mov eax, dword [0x41464c]
add eax, 0x270
mov dword [0x410f58], eax
mov dword [eax], 0
jmp case.default.0x401e1c
cmp byte [0x4108f0], 0
jne 0x402058
call fcn.00402d80
mov eax, dword [0x41464c]
add eax, 0x1f8
mov dword [0x410f58], eax
mov dword [eax], 0
jmp case.default.0x401e1c
cmp byte [0x4108f0], 0
jne 0x402058
mov eax, dword [0x41464c]
mov word [0x410f68], 0
mov dword [eax + 0x280], 1
jmp 0x40204a
cmp byte [0x4108f0], 0
jne 0x402058
mov ax, word [0x410f64]
mov ecx, dword [0x41464c]
mov word [0x410f68], ax
mov dword [ecx + 0x2a8], 1
jmp 0x40204a
cmp byte [0x4108f0], 0
jne 0x402058
call fcn.00402e00
mov eax, dword [0x41464c]
add eax, 0x220
mov dword [0x410f58], eax
mov dword [eax], 0
jmp case.default.0x401e1c
cmp byte [0x4108f0], 0
jne 0x402058
call fcn.00402e10
mov eax, dword [0x41464c]
add eax, 0x248
mov dword [0x410f58], eax
mov dword [eax], 0
jmp case.default.0x401e1c
cmp byte [0x4108f0], 0
jne 0x402058
mov eax, dword [0x41464c]
mov dword [eax + 0x50], 1
mov eax, dword [0x41464c]
add eax, 0x68
mov dword [0x410f58], eax
mov dword [eax], 0
jmp case.default.0x401e1c
cmp byte [0x4108f0], 0
jne 0x402058
mov ax, word [0x410f64]
cmp word [0x410f68], ax
jae 0x40203b
inc word [0x410f68]
mov eax, dword [0x41464c]
mov dword [eax + 0xa0], 1
call fcn.004032c0
cmp byte [0x4108f0], 0
je 0x4020a6
mov eax, dword [esp + 0x18]
sub ax, word [0x410f54]
add ax, word [0x410f78]
mov word [0x410f80], ax
cmp ax, word [0x410f70]
jbe 0x4020a6
cmp byte [0x4108f0], 1
je 0x4020a6
cmp ax, 0x3a98
jae 0x402090
mov word [0x410f70], ax
jmp 0x4020a6
mov eax, 0x3a98
mov word [0x410f80], ax
mov word [0x410f70], ax
call fcn.00402ec0
mov eax, dword [0x411318]
add eax, 0x3e8
cmp eax, dword [esp + 0x18]
jae 0x4020bf
mov eax, dword [esp + 0x18]
mov dword [0x411318], eax
mov eax, dword [0x411318]
mov ecx, 1
add eax, 0x1f4
cmp eax, dword [esp + 0x18]
adc ecx, 0xffffffff
xor eax, eax
mov al, byte [0x4108f0]
cmp eax, 1
je 0x4020f4
cmp eax, 2
je 0x402137
cmp eax, 3
je 0x402177
jmp 0x4021b5
cmp byte [0x410f50], 7
mov eax, dword [0x41464c]
je 0x40211c
mov dword [eax + 0x1e0], ecx
mov eax, dword [0x41464c]
mov dword [eax + 0x1f8], 1
jmp 0x4021b5
mov dword [eax + 0x1e0], 1
mov eax, dword [0x41464c]
mov dword [eax + 0x1f8], 0
jmp 0x4021b5
cmp byte [0x410f50], 0xa
mov eax, dword [0x41464c]
je 0x40215c
mov dword [eax + 0x208], ecx
mov eax, dword [0x41464c]
mov dword [eax + 0x220], 1
jmp 0x4021b5
mov dword [eax + 0x208], 1
mov eax, dword [0x41464c]
mov dword [eax + 0x220], 0
jmp 0x4021b5
cmp byte [0x410f50], 0xb
mov eax, dword [0x41464c]
je 0x40219c
mov dword [eax + 0x230], ecx
mov eax, dword [0x41464c]
mov dword [eax + 0x248], 1
jmp 0x4021b5
mov dword [eax + 0x230], 1
mov eax, dword [0x41464c]
mov dword [eax + 0x248], 0
call fcn.00403970
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret