Function at 0x4077c0
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 0x32db
mov ecx, ebp
mov dword [esp + 0x14], eax
call fcn.00401ed0
push eax
push ebp
call fcn.00401f10
mov eax, dword [ebp + 0x11c]
add esp, 8
shl eax, 5
mov ecx, dword [eax + 0x41e680]
shr ecx, 0xf
and ecx, 0xff
lea eax, [ecx - 1]
mov ecx, 0x72
cmp eax, 0x1b
ja case.0x407824.5
xor edx, edx
mov dl, byte [eax + 0x407efc]
jmp dword [edx*4 + 0x407ee8]
mov eax, dword [ebp + 0x178]
mov byte [ebp + 0x110c], 0x46
cmp eax, ecx
mov byte [ebp + 0x110d], 0xb9
jge 0x407a44
push 1
push 0
mov ecx, ebp
call fcn.0040eef0
add eax, 0x1ff
lea esi, [ebp + 0xaaa]
cdq
and edx, 0x1ff
push 8
add eax, edx
push esi
sar eax, 9
mov byte [ebp + 0xaab], al
mov al, 0x33
mov ecx, ebp
mov byte [esi], 0x84
mov byte [ebp + 0xaac], al
mov byte [ebp + 0xaad], al
mov byte [ebp + 0xaae], al
mov byte [ebp + 0xaaf], al
mov byte [ebp + 0xab0], al
mov byte [ebp + 0xab1], al
call fcn.00402560
push 0x61a8
jmp 0x407d27
mov byte [ebp + 0x110c], 0x46
mov byte [ebp + 0x110d], 0xb9
cmp dword [ebp + 0x178], ecx
jge 0x407a44
push 1
push 0
mov ecx, ebp
call fcn.0040eef0
mov ecx, dword [ebp + 0x11c]
lea esi, [ebp + 0xaaa]
shl ecx, 5
mov byte [esi], 0x84
mov byte [ebp + 0xaab], 0
mov edx, dword [ecx + 0x41e68c]
lea ecx, [ecx + 0x41e68c]
cmp eax, edx
jae 0x407918
shr edx, 0x10
mov byte [ebp + 0xaac], dl
xor edx, edx
mov dl, byte [ecx + 1]
mov byte [ebp + 0xaad], dl
mov al, byte [ecx]
mov byte [ebp + 0xaae], al
jmp 0x40794b
add eax, 0x1ff
mov byte [ebp + 0xaae], 0
cdq
and edx, 0x1ff
add eax, edx
sar eax, 9
mov edx, eax
shl edx, 9
shr edx, 0x10
mov byte [ebp + 0xaac], dl
shl eax, 9
xor edx, edx
mov dl, ah
mov byte [ebp + 0xaad], dl
mov eax, dword [ecx]
xor edx, edx
shr eax, 0x10
mov byte [ebp + 0xaaf], al
mov dl, byte [ecx + 1]
mov byte [ebp + 0xab0], dl
mov al, byte [ecx]
lea edx, [ebp + 0xab2]
xor ecx, ecx
mov byte [ebp + 0xab1], 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 + 0xabd], cl
inc eax
cmp eax, 0x73
jl 0x40797f
push 0x86
jmp 0x407d1a
cmp dword [ebp + 0x178], 0x71
jge case.0x407824.5
push 1
push 0
mov ecx, ebp
call fcn.0040eef0
mov edx, eax
xor ecx, ecx
shr edx, 0x10
mov byte [ebp + 0xaac], dl
mov edx, dword [ebp + 0x11c]
shl edx, 5
lea esi, [ebp + 0xaaa]
mov cl, ah
mov byte [ebp + 0xaae], al
lea eax, [edx + 0x41e68c]
mov byte [esi], 0x84
mov byte [ebp + 0xaab], 0xff
mov byte [ebp + 0xaad], cl
mov ecx, dword [eax]
shr ecx, 0x10
xor edx, edx
mov byte [ebp + 0xaaf], cl
mov dl, byte [eax + 1]
xor ecx, ecx
mov byte [ebp + 0xab0], dl
mov al, byte [eax]
lea edx, [ebp + 0xab2]
mov byte [ebp + 0xab1], 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 + 0xabd], cl
inc eax
cmp eax, 0x22
jl 0x407a20
push 0x35
jmp 0x407d1a
cmp dword [ebp + 0x178], ecx
jl 0x407c37
cmp dword [ebp + 0x1a0], 4
je 0x407b72
mov dl, byte [ebp + 0x110c]
mov ecx, dword [ebp + 0xf04]
mov al, byte [ebp + 0x110d]
mov byte [ebp + 0xaad], dl
lea ebx, [ebp + 0xaaa]
mov edx, ecx
lea esi, [ebp + 0xf0c]
lea edi, [ebp + 0xaaf]
shr ecx, 2
mov byte [ebx], 5
mov byte [ebp + 0xaab], 0
mov byte [ebp + 0xaac], 0
mov byte [ebp + 0xaae], 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 + 0xf04]
mov ecx, ebp
add eax, 5
push eax
push ebx
call fcn.00402560
push 0x7d0
mov ecx, ebp
call fcn.00402970
push 1
push 0
mov ecx, ebp
call fcn.00402700
mov al, byte [ebp + 0x23]
test al, al
je 0x407d61
mov ecx, ebp
call fcn.00402990
test al, al
jne 0x407d6e
lea ecx, [ebp + 0x6aa]
push 1
push ecx
mov ecx, ebp
call fcn.00402700
test al, al
je 0x407ac9
mov al, byte [ebp + 0x25]
test al, al
je 0x407b15
mov eax, dword [ebp + 0x1c4]
test eax, eax
je 0x407b15
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
mov dl, byte [ebx]
mov al, byte [ebp + 0x6aa]
and dl, 0xf
cmp al, dl
je 0x407b6a
cmp al, 0xe
jne 0x407b3e
push 0x32dc
mov ecx, ebp
call fcn.00401ed0
push eax
push ebp
call fcn.00401f10
add esp, 8
cmp byte [ebp + 0x6aa], 0xf
jne 0x407b5d
push 0x32dd
mov ecx, ebp
call fcn.00401ed0
push eax
push ebp
call fcn.00401f10
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 + 0x110d]
mov al, byte [ebp + 0x110c]
lea esi, [ebp + 0xaaa]
mov byte [ebp + 0xaae], cl
push 1
push 0
mov ecx, ebp
mov byte [esi], 3
mov byte [ebp + 0xaab], 0
mov byte [ebp + 0xaac], 0
mov byte [ebp + 0xaad], al
call fcn.0040eef0
mov ecx, dword [ebp + 0x178]
cmp ecx, 0x73
jl 0x407c0d
jne 0x407bc2
cmp dword [ebp + 0x17c], 0xd
jl 0x407c0d
cmp ecx, 0x74
jne 0x407bd0
cmp dword [ebp + 0x17c], 3
jl 0x407c0d
mov cl, byte [ebp + 0x3f]
test cl, cl
je 0x407bf8
and eax, 0xfffe00
push 5
mov edx, eax
shr edx, 0x10
xor ecx, ecx
mov byte [ebp + 0xaab], dl
mov cl, ah
mov byte [ebp + 0xaac], cl
jmp 0x407d1a
mov cl, byte [ebp + 0x628]
and ecx, 0xfe
shl ecx, 8
cmp eax, ecx
jle 0x407c30
jmp 0x407c20
mov edx, dword [ebp + 0x11c]
shl edx, 5
mov ecx, dword [edx + 0x41e68c]
cmp eax, ecx
jle 0x407c30
sub eax, ecx
add eax, 0x1ff
shr eax, 9
mov byte [ebp + 0xaab], al
push 5
jmp 0x407d1a
cmp dword [ebp + 0x1a0], 4
je 0x407cda
lea esi, [ebp + 0xaaa]
push 1
push esi
mov ecx, ebp
mov byte [esi], 5
call fcn.00402560
push 0x7d0
mov ecx, ebp
call fcn.00402970
push 1
push 0
mov ecx, ebp
call fcn.00402700
mov al, byte [ebp + 0x23]
test al, al
je 0x407d61
mov ecx, ebp
call fcn.00402990
test al, al
jne 0x407d6e
lea eax, [ebp + 0x6aa]
push 1
push eax
mov ecx, ebp
call fcn.00402700
test al, al
je 0x407c6e
mov al, byte [ebp + 0x25]
test al, al
je 0x407cba
mov eax, dword [ebp + 0x1c4]
test eax, eax
je 0x407cba
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
mov cl, byte [esi]
mov al, byte [ebp + 0x6aa]
and cl, 0xf
cmp al, cl
je 0x407cd6
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
push 0xa
call edi
lea esi, [ebp + 0xaaa]
push 1
push 0
mov ecx, ebp
mov byte [esi], 3
mov byte [ebp + 0xaab], 0
call fcn.0040eef0
mov edx, dword [ebp + 0x11c]
shl edx, 5
mov ecx, dword [edx + 0x41e68c]
cmp eax, ecx
jle 0x407d18
sub eax, ecx
add eax, 0x1ff
shr eax, 9
mov byte [ebp + 0xaab], al
push 2
push esi
mov ecx, ebp
call fcn.00402560
push 0x3a98
mov ecx, ebp
call fcn.00402970
push 1
push 0
mov ecx, ebp
call fcn.00402700
mov al, byte [ebp + 0x23]
test al, al
je 0x407d61
mov ecx, ebp
call fcn.00402990
test al, al
jne 0x407d6e
lea eax, [ebp + 0x6aa]
push 1
push eax
mov ecx, ebp
call fcn.00402700
test al, al
jne 0x407d7b
jmp 0x407d39
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 0x407d99
mov eax, dword [ebp + 0x1c4]
test eax, eax
je 0x407d99
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
lea edi, [ebp + 0xeaa]
lea ecx, [ebp + 0x6ab]
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 + 0x178]
mov cl, byte [ecx + 6]
cmp eax, 0x62
mov byte [edx + 6], cl
jg 0x407dde
lea edx, [ebp + 0x637]
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 + 0x1a0]
test eax, eax
jne 0x407dfe
cmp byte [ebp + 0x6aa], 0x80
je 0x407e40
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
cmp eax, 3
jl 0x407e29
mov al, byte [esi]
mov cl, byte [ebp + 0x6aa]
and al, 0xf
cmp cl, al
jne 0x407e33
mov ecx, ebp
call fcn.004074d0
test eax, eax
je 0x407e40
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
mov al, byte [ebp + 0x6aa]
test al, al
je 0x407e40
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 [0x427718]
fstp qword [esp]
push 0x32df
call fcn.00401ed0
push eax
push ebp
call fcn.00401f10
mov ecx, dword [ebp + 0x11c]
add esp, 0x10
shl ecx, 5
mov eax, dword [ecx + 0x41e680]
and eax, 0x7f8000
cmp eax, 0x38000
jbe 0x407edb
cmp eax, 0x230000
je 0x407edb
mov al, byte [edi]
mov cl, byte [ebp + 0xeab]
cmp al, cl
jne 0x407ed4
cmp al, byte [ebp + 0xeac]
jne 0x407ed4
cmp al, byte [ebp + 0xead]
jne 0x407ed4
cmp al, byte [ebp + 0xeae]
jne 0x407ed4
cmp al, byte [ebp + 0xeaf]
jne 0x407ed4
cmp al, byte [ebp + 0xeb0]
je 0x407edb
mov ecx, ebp
call fcn.00407520
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret