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

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebp, ecx
push 0xa
call edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x233b
mov ecx, ebp
mov dword [esp + 0x14], eax
call fcn.004016c0
push eax
push ebp
call fcn.00401700
mov eax, dword [ebp + 0x118]
add esp, 8
shl eax, 5
mov ecx, dword [eax + 0x41d480]
shr ecx, 0xf
and ecx, 0xff
lea eax, [ecx - 1]
mov ecx, 0x72
cmp eax, 0x1b
ja case.0x406e24.5
xor edx, edx
mov dl, byte [eax + 0x4074fc]
jmp dword [edx*4 + 0x4074e8]
mov eax, dword [ebp + 0x174]
mov byte [ebp + 0xedc], 0x46
cmp eax, ecx
mov byte [ebp + 0xedd], 0xb9
jge 0x407044
push 1
push 0
mov ecx, ebp
call fcn.0040e8a0
add eax, 0x1ff
lea esi, [ebp + 0x881]
cdq
and edx, 0x1ff
push 8
add eax, edx
push esi
sar eax, 9
mov byte [ebp + 0x882], al
mov al, 0x33
mov ecx, ebp
mov byte [esi], 0x84
mov byte [ebp + 0x883], al
mov byte [ebp + 0x884], al
mov byte [ebp + 0x885], al
mov byte [ebp + 0x886], al
mov byte [ebp + 0x887], al
mov byte [ebp + 0x888], al
call fcn.00401d50
push 0x61a8
jmp 0x407327
mov byte [ebp + 0xedc], 0x46
mov byte [ebp + 0xedd], 0xb9
cmp dword [ebp + 0x174], ecx
jge 0x407044
push 1
push 0
mov ecx, ebp
call fcn.0040e8a0
mov ecx, dword [ebp + 0x118]
lea esi, [ebp + 0x881]
shl ecx, 5
mov byte [esi], 0x84
mov byte [ebp + 0x882], 0
mov edx, dword [ecx + 0x41d48c]
lea ecx, [ecx + 0x41d48c]
cmp eax, edx
jae 0x406f18
shr edx, 0x10
mov byte [ebp + 0x883], dl
xor edx, edx
mov dl, byte [ecx + 1]
mov byte [ebp + 0x884], dl
mov al, byte [ecx]
mov byte [ebp + 0x885], al
jmp 0x406f4b
add eax, 0x1ff
mov byte [ebp + 0x885], 0
cdq
and edx, 0x1ff
add eax, edx
sar eax, 9
mov edx, eax
shl edx, 9
shr edx, 0x10
mov byte [ebp + 0x883], dl
shl eax, 9
xor edx, edx
mov dl, ah
mov byte [ebp + 0x884], dl
mov eax, dword [ecx]
xor edx, edx
shr eax, 0x10
mov byte [ebp + 0x886], al
mov dl, byte [ecx + 1]
mov byte [ebp + 0x887], dl
mov al, byte [ecx]
lea edx, [ebp + 0x889]
xor ecx, ecx
mov byte [ebp + 0x888], al
xor eax, eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov word [edx + 8], cx
mov byte [edx + 0xa], cl
mov cl, 0x80
sub cl, al
mov byte [eax + ebp + 0x894], cl
inc eax
cmp eax, 0x73
jl 0x406f7f
push 0x86
jmp 0x40731a
cmp dword [ebp + 0x174], 0x71
jge case.0x406e24.5
push 1
push 0
mov ecx, ebp
call fcn.0040e8a0
mov edx, eax
xor ecx, ecx
shr edx, 0x10
mov byte [ebp + 0x883], dl
mov edx, dword [ebp + 0x118]
shl edx, 5
lea esi, [ebp + 0x881]
mov cl, ah
mov byte [ebp + 0x885], al
lea eax, [edx + 0x41d48c]
mov byte [esi], 0x84
mov byte [ebp + 0x882], 0xff
mov byte [ebp + 0x884], cl
mov ecx, dword [eax]
shr ecx, 0x10
xor edx, edx
mov byte [ebp + 0x886], cl
mov dl, byte [eax + 1]
xor ecx, ecx
mov byte [ebp + 0x887], dl
mov al, byte [eax]
lea edx, [ebp + 0x889]
mov byte [ebp + 0x888], al
xor eax, eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov word [edx + 8], cx
mov byte [edx + 0xa], cl
mov cl, 0x80
sub cl, al
mov byte [eax + ebp + 0x894], cl
inc eax
cmp eax, 0x22
jl 0x407020
push 0x35
jmp 0x40731a
cmp dword [ebp + 0x174], ecx
jl 0x407237
cmp dword [ebp + 0x198], 4
je 0x407172
mov dl, byte [ebp + 0xedc]
mov ecx, dword [ebp + 0xcd4]
mov al, byte [ebp + 0xedd]
mov byte [ebp + 0x884], dl
lea ebx, [ebp + 0x881]
mov edx, ecx
lea esi, [ebp + 0xcdc]
lea edi, [ebp + 0x886]
shr ecx, 2
mov byte [ebx], 5
mov byte [ebp + 0x882], 0
mov byte [ebp + 0x883], 0
mov byte [ebp + 0x885], al
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0xcd4]
mov ecx, ebp
add eax, 5
push eax
push ebx
call fcn.00401d50
push 0x7d0
mov ecx, ebp
call fcn.00402160
push 1
push 0
mov ecx, ebp
call fcn.00401ef0
mov al, byte [ebp + 0x23]
test al, al
je 0x407361
mov ecx, ebp
call fcn.00402180
test al, al
jne 0x40736e
lea ecx, [ebp + 0x481]
push 1
push ecx
mov ecx, ebp
call fcn.00401ef0
test al, al
je 0x4070c9
mov al, byte [ebp + 0x25]
test al, al
je 0x407115
mov eax, dword [ebp + 0x1c4]
test eax, eax
je 0x407115
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
mov dl, byte [ebx]
mov al, byte [ebp + 0x481]
and dl, 0xf
cmp al, dl
je 0x40716a
cmp al, 0xe
jne 0x40713e
push 0x233c
mov ecx, ebp
call fcn.004016c0
push eax
push ebp
call fcn.00401700
add esp, 8
cmp byte [ebp + 0x481], 0xf
jne 0x40715d
push 0x233d
mov ecx, ebp
call fcn.004016c0
push eax
push ebp
call fcn.00401700
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov cl, byte [ebp + 0xedd]
mov al, byte [ebp + 0xedc]
lea esi, [ebp + 0x881]
mov byte [ebp + 0x885], cl
push 1
push 0
mov ecx, ebp
mov byte [esi], 3
mov byte [ebp + 0x882], 0
mov byte [ebp + 0x883], 0
mov byte [ebp + 0x884], al
call fcn.0040e8a0
mov ecx, dword [ebp + 0x174]
cmp ecx, 0x73
jl 0x40720d
jne 0x4071c2
cmp dword [ebp + 0x178], 0xd
jl 0x40720d
cmp ecx, 0x74
jne 0x4071d0
cmp dword [ebp + 0x178], 3
jl 0x40720d
mov cl, byte [ebp + 0x40]
test cl, cl
je 0x4071f8
and eax, 0xfffe00
push 5
mov edx, eax
shr edx, 0x10
xor ecx, ecx
mov byte [ebp + 0x882], dl
mov cl, ah
mov byte [ebp + 0x883], cl
jmp 0x40731a
mov cl, byte [ebp + 0x40c]
and ecx, 0xfe
shl ecx, 8
cmp eax, ecx
jle 0x407230
jmp 0x407220
mov edx, dword [ebp + 0x118]
shl edx, 5
mov ecx, dword [edx + 0x41d48c]
cmp eax, ecx
jle 0x407230
sub eax, ecx
add eax, 0x1ff
shr eax, 9
mov byte [ebp + 0x882], al
push 5
jmp 0x40731a
cmp dword [ebp + 0x198], 4
je 0x4072da
lea esi, [ebp + 0x881]
push 1
push esi
mov ecx, ebp
mov byte [esi], 5
call fcn.00401d50
push 0x7d0
mov ecx, ebp
call fcn.00402160
push 1
push 0
mov ecx, ebp
call fcn.00401ef0
mov al, byte [ebp + 0x23]
test al, al
je 0x407361
mov ecx, ebp
call fcn.00402180
test al, al
jne 0x40736e
lea eax, [ebp + 0x481]
push 1
push eax
mov ecx, ebp
call fcn.00401ef0
test al, al
je 0x40726e
mov al, byte [ebp + 0x25]
test al, al
je 0x4072ba
mov eax, dword [ebp + 0x1c4]
test eax, eax
je 0x4072ba
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
mov cl, byte [esi]
mov al, byte [ebp + 0x481]
and cl, 0xf
cmp al, cl
je 0x4072d6
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
push 0xa
call edi
lea esi, [ebp + 0x881]
push 1
push 0
mov ecx, ebp
mov byte [esi], 3
mov byte [ebp + 0x882], 0
call fcn.0040e8a0
mov edx, dword [ebp + 0x118]
shl edx, 5
mov ecx, dword [edx + 0x41d48c]
cmp eax, ecx
jle 0x407318
sub eax, ecx
add eax, 0x1ff
shr eax, 9
mov byte [ebp + 0x882], al
push 2
push esi
mov ecx, ebp
call fcn.00401d50
push 0x3a98
mov ecx, ebp
call fcn.00402160
push 1
push 0
mov ecx, ebp
call fcn.00401ef0
mov al, byte [ebp + 0x23]
test al, al
je 0x407361
mov ecx, ebp
call fcn.00402180
test al, al
jne 0x40736e
lea eax, [ebp + 0x481]
push 1
push eax
mov ecx, ebp
call fcn.00401ef0
test al, al
jne 0x40737b
jmp 0x407339
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 8
ret
mov al, byte [ebp + 0x25]
test al, al
je 0x407399
mov eax, dword [ebp + 0x1c4]
test eax, eax
je 0x407399
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
lea edi, [ebp + 0xc81]
lea ecx, [ebp + 0x482]
mov edx, edi
mov eax, dword [ecx]
mov dword [edx], eax
mov ax, word [ecx + 4]
mov word [edx + 4], ax
mov eax, dword [ebp + 0x174]
mov cl, byte [ecx + 6]
cmp eax, 0x62
mov byte [edx + 6], cl
jg 0x4073de
lea edx, [ebp + 0x41b]
mov eax, edi
mov ecx, dword [edx]
mov dword [eax], ecx
mov cx, word [edx + 4]
mov word [eax + 4], cx
mov dl, byte [edx + 6]
mov byte [eax + 6], dl
mov eax, dword [ebp + 0x198]
test eax, eax
jne 0x4073fe
cmp byte [ebp + 0x481], 0x80
je 0x407440
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
cmp eax, 3
jl 0x407429
mov al, byte [esi]
mov cl, byte [ebp + 0x481]
and al, 0xf
cmp cl, al
jne 0x407433
mov ecx, ebp
call fcn.00406af0
test eax, eax
je 0x407440
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
mov al, byte [ebp + 0x481]
test al, al
je 0x407440
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x14], 0
sub eax, ebx
sub esp, 8
mov dword [esp + 0x18], eax
mov ecx, ebp
fild qword [esp + 0x18]
fmul dword [0x4261d4]
fstp qword [esp]
push 0x233f
call fcn.004016c0
push eax
push ebp
call fcn.00401700
mov ecx, dword [ebp + 0x118]
add esp, 0x10
shl ecx, 5
mov eax, dword [ecx + 0x41d480]
and eax, 0x7f8000
cmp eax, 0x38000
jbe 0x4074db
cmp eax, 0x230000
je 0x4074db
mov al, byte [edi]
mov cl, byte [ebp + 0xc82]
cmp al, cl
jne 0x4074d4
cmp al, byte [ebp + 0xc83]
jne 0x4074d4
cmp al, byte [ebp + 0xc84]
jne 0x4074d4
cmp al, byte [ebp + 0xc85]
jne 0x4074d4
cmp al, byte [ebp + 0xc86]
jne 0x4074d4
cmp al, byte [ebp + 0xc87]
je 0x4074db
mov ecx, ebp
call fcn.00406b20
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret