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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x18]
movzx ecx, word [edi]
test cx, cx
je 0x6d1caaf8
lea eax, [ecx - 1]
cmp ax, 0x11
ja 0x6d1ca9d8
mov eax, 1
shl eax, cl
test eax, 0x30180
jne 0x6d1ca9e8
test al, 0x5a
jne 0x6d1caac0
test eax, 0x40200
je 0x6d1ca9d8
movzx eax, word [ebx + 4]
test ax, ax
jne 0x6d1cabb0
lea esi, [esi]
mov byte [ebx + 6], 1
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [edi + 8], 1
je 0x6d1cab70
mov ecx, dword [ebx]
pxor xmm3, xmm3
pxor xmm2, xmm2
pxor xmm4, xmm4
movzx eax, word [edi + 0x1c]
movss xmm1, dword [edi + 0x14]
movss xmm0, dword [edi + 0x10]
lea edx, [eax + ecx]
cvtsi2ss xmm3, eax
cmp edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x1c]
mulss xmm1, xmm3
setae dl
divss xmm1, dword [0x6d1ec478]
mulss xmm1, dword [0x6d1ec47c]
sub eax, ecx
movzx ecx, ax
shr eax, 0x10
cvtsi2ss xmm2, eax
mulss xmm2, dword [0x6d1ec440]
cvtsi2ss xmm4, ecx
addss xmm1, xmm0
addss xmm2, xmm4
subss xmm1, xmm0
divss xmm2, xmm3
comiss xmm2, dword [0x6d1ec45c]
ja 0x6d1caa67
mulss xmm1, xmm2
addss xmm0, xmm1
movss dword [ebx + 8], xmm0
movzx eax, word [edi]
cmp ax, 7
je 0x6d1cac40
cmp ax, 0x10
je 0x6d1cac40
movss dword [esi + 0x1c], xmm0
test dl, dl
jne 0x6d1ca9dc
movzx eax, word [ebx + 4]
test ax, ax
je 0x6d1ca9d8
cmp ax, 0xff
je 0x6d1caab4
cmp ax, 0xffff
je 0x6d1caab4
sub eax, 1
mov word [ebx + 4], ax
movzx eax, word [edi + 0xc]
add dword [ebx], eax
jmp 0x6d1ca9dc
mov edi, dword [esi + 0x38]
mov ecx, dword [esi + 0x34]
mov dword [esi + 0x34], 0
mov edx, dword [esi + 0x44]
mov dword [esi + 0x24], edi
mov edi, dword [esi + 0x3c]
mov dword [esi + 0x20], ecx
mov dword [esi + 0x30], edx
mov dword [esi + 0x28], edi
mov edi, dword [esi + 0x40]
mov dword [esi + 0x2c], edi
mov dword [esp], ecx
call fcn.6d1c77b0
jmp 0x6d1ca9d8
movzx eax, byte [edi + 8]
mov edx, eax
and edx, 1
test al, 2
je 0x6d1cabd0
test dl, dl
jne 0x6d1cac50
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x24]
mov ecx, dword [edx]
movzx eax, word [edx + 0xa]
mov esi, dword [ecx + 0x28]
lea eax, [eax + eax*4]
lea eax, [esi + eax*4]
movzx esi, word [eax + 0x10]
test si, si
jne 0x6d1cace5
mov esi, dword [edx + 0x34]
test esi, esi
je 0x6d1cac50
mov eax, dword [ebp + 8]
test si, si
je 0x6d1cad50
mov byte [eax + 0x22], 3
call sub.kernel32.dll_GetTickCount
mov edi, dword [ebp + 8]
mov dword [edi + 0x1c], eax
mov eax, dword [edi + 0x24]
mov word [edi + 0x20], si
or dword [eax + 0x24], 0x10
jmp 0x6d1ca9d8
movzx edx, byte [edi + 0x10]
test dl, 4
je 0x6d1cacfd
movss xmm0, dword [edi + 0x14]
and edx, 1
je 0x6d1caa6b
movzx eax, word [edi]
cmp ax, 7
je 0x6d1cacf1
cmp ax, 0x10
je 0x6d1cacf1
addss xmm0, dword [esi + 0x1c]
xor edx, edx
jmp 0x6d1caa6b
cmp ax, 0xff
je 0x6d1cabbd
sub eax, 1
mov word [ebx + 4], ax
movzx eax, word [edi + 0xe]
add dword [ebx], eax
jmp 0x6d1ca9dc
mov eax, dword [esi + 0x20]
test eax, eax
je 0x6d1cabe6
movzx edx, dl
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.6d1c7810
mov eax, dword [esi + 0x34]
test eax, eax
je 0x6d1cabfc
mov dword [esp], eax
call fcn.6d1c7790
mov dword [esi + 0x34], 0
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x14], 0
je 0x6d1ca9d8
xor eax, eax
lea esi, [esi]
nop
mov ecx, dword [esi]
lea edx, [eax + eax*2]
xor edi, edi
add eax, 1
shl edx, 2
mov word [ecx + edx + 4], di
mov edi, dword [ebp + 0xc]
mov ecx, dword [esi]
mov byte [ecx + edx + 6], 1
cmp al, byte [edi + 0x14]
jb 0x6d1cac10
jmp 0x6d1ca9d8
movss dword [esi + 0x18], xmm0
jmp 0x6d1caa8c
mov eax, dword [ebp + 8]
xor edi, edi
mov eax, dword [eax]
cmp byte [eax + 0xb], 0
je 0x6d1ca9d8
mov dword [ebp + 0x18], ebx
lea esi, [esi]
mov esi, dword [ebp + 8]
lea ebx, [edi + edi*4]
shl ebx, 4
add ebx, dword [esi + 4]
imul esi, edi, 0x1c
add esi, dword [eax + 0x10]
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x6d1cac91
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.6d1c7810
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x6d1caca7
mov dword [esp], eax
call fcn.6d1c7790
mov dword [ebx + 0x34], 0
xor eax, eax
cmp byte [esi + 0x14], 0
je 0x6d1cacce
nop
mov ecx, dword [ebx]
lea edx, [eax + eax*2]
add eax, 1
shl edx, 2
mov word [ecx + edx + 4], 0
mov ecx, dword [ebx]
mov byte [ecx + edx + 6], 1
cmp al, byte [esi + 0x14]
jb 0x6d1cacb0
mov eax, dword [ebp + 8]
add edi, 1
mov ebx, edi
mov eax, dword [eax]
cmp bl, byte [eax + 0xb]
jb 0x6d1cac68
mov ebx, dword [ebp + 0x18]
jmp 0x6d1ca9d8
mov eax, dword [ebp + 8]
mov byte [eax + 0x22], 2
jmp 0x6d1cab4e
addss xmm0, dword [esi + 0x18]
xor edx, edx
jmp 0x6d1caa6b
pxor xmm0, xmm0
test dl, 8
je 0x6d1cab82
movss xmm7, dword [edi + 0x14]
call fcn.6d1c8b10
pxor xmm1, xmm1
movss xmm0, dword [edi + 0x18]
add eax, 0x80000000
subss xmm0, dword [edi + 0x14]
cvtsi2sd xmm1, eax
movzx edx, byte [edi + 0x10]
addsd xmm1, qword [0x6d1ec430]
mulsd xmm1, qword [0x6d1ec438]
cvtsd2ss xmm1, xmm1
mulss xmm0, xmm1
addss xmm0, xmm7
jmp 0x6d1cab82
mov dword [esp], eax
call fcn.6d1c9500
jmp 0x6d1ca9d8