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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
test dl, dl
je 0x6406e9
add esp, 0xfffffff0
call fcn.004047b8
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x641005
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x6e4494]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
xor eax, eax
mov al, byte [ebp + 0x10]
cmp eax, 0x10
ja case.0x64071b.0
jmp dword [eax*4 + 0x640722]
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x88], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x90], 6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
mov edx, dword [ebp - 4]
mov dword [edx + 0x8c], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x69], 0
mov eax, dword [ebp - 4]
mov dl, byte [ebp + 0xc]
mov byte [eax + 0x68], dl
mov eax, dword [ebp - 4]
mov dword [eax + 0x74], 0xa
mov eax, dword [ebp - 0xc]
sub eax, 0x26
je 0x6407b7
dec eax
je 0x6407c6
jmp 0x6407dd
mov eax, dword [ebp - 4]
mov dword [eax + 0x90], 0xa
jmp 0x6407dd
mov eax, dword [ebp - 4]
mov dword [eax + 0x90], 4
mov eax, dword [ebp - 4]
mov dword [eax + 0x74], 8
mov eax, dword [ebp - 0xc]
sub eax, 0x51
sub eax, 3
jns case.0x64071b.0
mov eax, dword [ebp - 4]
mov byte [eax + 0x84], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x68], 1
mov eax, dword [ebp - 0xc]
sub eax, 0x51
je 0x64080d
dec eax
je 0x64083c
dec eax
je 0x640878
jmp 0x64088c
mov eax, dword [0x6e42cc]
mov eax, dword [eax]
cmp dword [eax + 8], 0x54
jl 0x640826
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0x82
jmp 0x640830
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0x8c
mov eax, dword [ebp - 4]
mov byte [eax + 0x85], 1
jmp 0x64088c
mov eax, dword [0x6e42cc]
mov eax, dword [eax]
cmp dword [eax + 8], 0x4e
jl 0x640862
mov eax, dword [0x6e42cc]
mov eax, dword [eax]
cmp dword [eax + 0xc], 0x30
jl 0x640862
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0x96
jmp 0x64086c
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0xa0
mov eax, dword [ebp - 4]
mov byte [eax + 0x85], 2
jmp 0x64088c
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0xb4
mov eax, dword [ebp - 4]
mov byte [eax + 0x85], 3
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x88], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x90], 0xa
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], 0xbe
mov eax, dword [ebp - 4]
mov dword [eax + 0x74], 0xa
jmp case.0x64071b.0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x88], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x90], 6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
mov edx, dword [ebp - 4]
mov dword [edx + 0x8c], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x69], 0
mov eax, dword [ebp - 4]
mov dl, byte [ebp + 0xc]
mov byte [eax + 0x68], dl
mov eax, dword [ebp - 4]
mov dword [eax + 0x74], 1
jmp case.0x64071b.0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x88], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x90], 0x14
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
mov edx, dword [ebp - 4]
mov dword [edx + 0x8c], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x69], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x68], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x74], 0x14
mov eax, 0x14
call fcn.006201a0
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
jmp case.0x64071b.0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x88], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x90], 0xffffffff
mov eax, dword [ebp - 4]
mov dword [eax + 0x74], 0xa
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
mov edx, dword [ebp - 4]
mov dword [edx + 0x8c], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x69], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x68], 0
mov eax, dword [ebp - 0xc]
add eax, 0xffffffba
cmp eax, 0x14
ja case.0x64071b.0
mov al, byte [eax + 0x6409bb]
jmp dword [eax*4 + 0x6409d0]
mov eax, dword [ebp - 4]
mov byte [eax + 0x84], 3
mov eax, 3
call fcn.0040354c
sub eax, 1
jb 0x640a10
je 0x640a1c
dec eax
je 0x640a28
jmp 0x640a32
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0x190
jmp 0x640a32
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0x19a
jmp 0x640a32
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0x1a4
mov eax, dword [ebp - 4]
mov dword [eax + 0x7c], 4
mov eax, dword [ebp - 4]
mov dword [eax + 0x74], 5
jmp case.0x64071b.0
mov eax, dword [ebp - 4]
mov byte [eax + 0x84], 3
mov eax, dword [ebp - 4]
mov dword [eax + 0x74], 0x14
jmp case.0x64071b.0
mov eax, dword [ebp - 4]
mov byte [eax + 0x84], 3
mov eax, dword [ebp - 4]
mov dword [eax + 0x7c], 3
mov eax, dword [ebp - 4]
mov dword [eax + 0x74], 0xa
jmp case.0x64071b.0
mov eax, dword [ebp - 4]
mov byte [eax + 0x84], 3
mov eax, dword [ebp - 4]
mov dword [eax + 0x7c], 5
mov eax, dword [ebp - 4]
mov dword [eax + 0x74], 0x14
jmp case.0x64071b.0
mov eax, dword [ebp - 4]
mov byte [eax + 0x84], 3
mov eax, dword [ebp - 4]
mov dword [eax + 0x7c], 4
mov eax, dword [ebp - 4]
mov dword [eax + 0x74], 0x23
jmp case.0x64071b.0
mov eax, dword [ebp - 4]
mov byte [eax + 0x84], 2
mov eax, 6
call fcn.0040354c
cmp eax, 5
ja case.default.0x640ae6
jmp dword [eax*4 + 0x640aed]
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0xe6
jmp case.default.0x640ae6
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0xf0
jmp case.default.0x640ae6
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0xfa
jmp case.default.0x640ae6
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0xe6
jmp case.default.0x640ae6
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0xf0
jmp case.default.0x640ae6
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0xfa
mov eax, dword [ebp - 4]
mov dword [eax + 0x7c], 4
mov eax, dword [ebp - 4]
mov dword [eax + 0x74], 5
jmp case.0x64071b.0
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0x15e
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], 0x15e
mov eax, dword [ebp - 4]
mov dword [eax + 0x74], 0x1e
jmp case.0x64071b.0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x88], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x90], 0xffffffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
mov edx, dword [ebp - 4]
mov dword [edx + 0x8c], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x69], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x68], 0
mov eax, dword [0x6e413c]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
jmp case.0x64071b.0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x88], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x90], 3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
mov edx, dword [ebp - 4]
mov dword [edx + 0x8c], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x69], 0
mov eax, dword [ebp - 4]
mov dl, byte [ebp + 0xc]
mov byte [eax + 0x68], dl
mov eax, dword [ebp - 4]
mov dword [eax + 0x74], 3
jmp case.0x64071b.0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x88], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x90], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
mov edx, dword [ebp - 4]
mov dword [edx + 0x8c], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x69], 0
mov eax, dword [ebp - 4]
mov dl, byte [ebp + 0xc]
mov byte [eax + 0x68], dl
mov eax, dword [ebp - 4]
mov dword [eax + 0x74], 1
jmp case.0x64071b.0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x88], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x90], 6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
mov edx, dword [ebp - 4]
mov dword [edx + 0x8c], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x69], 0
mov eax, dword [ebp - 4]
mov dl, byte [ebp + 0xc]
mov byte [eax + 0x68], dl
mov eax, dword [ebp - 4]
mov dword [eax + 0x74], 2
jmp case.0x64071b.0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x88], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x90], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
mov edx, dword [ebp - 4]
mov dword [edx + 0x8c], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x69], 0
mov eax, dword [ebp - 4]
mov dl, byte [ebp + 0xc]
mov byte [eax + 0x68], dl
mov eax, dword [ebp - 4]
mov dword [eax + 0x74], 1
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x80], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x24]
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x18]
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x38], edx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x84], 1
jne 0x640d5c
cmp dword [ebp - 0xc], 0x51
jne 0x640d36
sub dword [ebp + 0x20], 0xe
add dword [ebp + 0x1c], 0x14
cmp dword [ebp - 0xc], 0x51
jne 0x640d44
sub dword [ebp + 0x20], 0x46
sub dword [ebp + 0x1c], 0xa
cmp dword [ebp - 0xc], 0x53
jne 0x640d52
sub dword [ebp + 0x20], 0x3c
sub dword [ebp + 0x1c], 0x46
mov eax, 0x2010
call fcn.0061cac8
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x20]
mov dword [eax + 0xa4], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x1c]
mov dword [eax + 0xa8], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x20]
mov dword [eax + 0x44], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x1c]
mov dword [eax + 0x48], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x20]
mov dword [eax + 0x4c], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x1c]
mov dword [eax + 0x50], edx
fild dword [ebp + 0x20]
mov eax, dword [ebp - 4]
fstp qword [eax + 0x58]
wait
fild dword [ebp + 0x1c]
mov eax, dword [ebp - 4]
fstp qword [eax + 0x60]
wait
mov eax, dword [0x6e42cc]
mov eax, dword [eax]
mov eax, dword [eax + 0x158]
shl eax, 4
lea eax, [eax + eax*2]
mov edx, dword [0x6e42cc]
mov edx, dword [edx]
add eax, dword [edx + 0x120]
mov edx, dword [ebp - 4]
mov dword [edx + 0xbc], eax
mov eax, dword [0x6e42cc]
mov eax, dword [eax]
mov eax, dword [eax + 0x15c]
shl eax, 5
mov edx, dword [0x6e42cc]
mov edx, dword [edx]
add eax, dword [edx + 0x124]
mov edx, dword [ebp - 4]
mov dword [edx + 0xc0], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x84], 0
jne 0x640e1a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
add eax, 0xaa
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x7c], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x34]
je 0x640e4e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0xa4]
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x10], eax
jmp 0x640e55
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa8]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x38]
je 0x640e7f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0xa8]
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x14], eax
jmp 0x640e86
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x34]
cdq
xor eax, edx
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa8]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x38]
cdq
xor eax, edx
sub eax, edx
cmp ecx, eax
jle 0x640f12
fild dword [ebp - 0x10]
fdivr dword [0x641040]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0xa4]
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fmulp st(1)
call fcn.00403634
mov edx, dword [ebp - 4]
mov dword [edx + 0xac], eax
fild dword [ebp - 0x10]
fdivr dword [0x641040]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0xa8]
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fmulp st(1)
call fcn.00403634
mov edx, dword [ebp - 4]
mov dword [edx + 0xb0], eax
jmp 0x640f6e
fild dword [ebp - 0x14]
fdivr dword [0x641040]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0xa4]
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fmulp st(1)
call fcn.00403634
mov edx, dword [ebp - 4]
mov dword [edx + 0xac], eax
fild dword [ebp - 0x14]
fdivr dword [0x641040]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0xa8]
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fmulp st(1)
call fcn.00403634
mov edx, dword [ebp - 4]
mov dword [edx + 0xb0], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x78], 0x32
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x94], eax
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x98], eax
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0xa0], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [eax + 0x9c], edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
call fcn.006482ec
mov edx, dword [ebp - 4]
mov byte [edx + 0x30], al
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x30]
mov edx, dword [ebp - 4]
mov byte [edx + 0x31], al
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x70], edx
mov eax, dword [ebp - 4]
mov byte [eax + 4], 1
mov eax, dword [ebp - 4]
mov dword [eax + 0xc4], 0x1869f
mov eax, dword [ebp - 4]
mov dword [eax + 0xc8], 0x1869f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x641019
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x641031
call fcn.00404810
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20