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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101cc77b
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x1022101c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80], eax
cmp dword [eax], 0
je 0x100cb5cc
push 0xc
lea ecx, [ebp - 0x2c]
call fcn.10034620
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x7c], 0
push ecx
push 0x8000
call fcn.10075f90
mov edi, 4
mov ecx, esi
push edi
call fcn.100cab60
test al, al
je 0x100cb577
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x88], ecx
cmp byte [esi + 0xd4], cl
jne 0x100cb425
mov edi, dword [esi + 0x30]
xor edx, edx
mov eax, edi
mov dword [ebp - 0x18], 0
and eax, dword [esi + 0x34]
mov ecx, 0x8000
mov dword [ebp - 0x7c], 0x8000
cmp eax, 0xffffffff
je 0x100cb2ed
mov eax, dword [esi + 0x34]
cmp eax, dword [esi + 0x2c]
jb 0x100cb061
ja 0x100cb057
cmp edi, dword [esi + 0x28]
jb 0x100cb061
mov ecx, edi
mov edx, eax
sub ecx, dword [esi + 0x28]
sbb edx, dword [esi + 0x2c]
mov eax, ecx
or eax, edx
jne 0x100cb2dc
mov dword [ebp - 0x14], eax
mov ecx, esi
lea eax, [ebp - 0x14]
push eax
call fcn.100caac0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 0
je 0x100cb471
mov ecx, dword [ebp - 0x80]
mov ecx, dword [ecx]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
call eax
mov ecx, dword [ebp - 0x14]
mov edi, eax
mov dword [ebp - 0x7c], edx
lea edx, [esi + 0x18]
push edx
push dword [esi + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test al, al
je 0x100cb1e5
mov ecx, dword [esi + 0x20]
add ecx, dword [esi + 0x30]
mov eax, dword [esi + 0x24]
adc eax, dword [esi + 0x34]
cmp eax, dword [ebp - 0x7c]
jb 0x100cb1e5
ja 0x100cb0d0
cmp ecx, edi
jb 0x100cb1e5
mov eax, dword [ebp - 0x80]
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov ecx, dword [eax]
push edx
push 0x8000
push dword [ebp - 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
cmp eax, 1
mov eax, dword [ebp - 0x18]
jne 0x100cb10a
test eax, eax
je 0x100cb471
test eax, eax
je 0x100cb471
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
mov dword [ebp - 0x88], ecx
call edi
sub eax, dword [ebp - 0x84]
cmp eax, 0x7d0
jbe 0x100cb13f
call edi
lea ecx, [esi + 4]
mov dword [ebp - 0x84], eax
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x100cb471
movups xmm0, xmmword [esi + 0x18]
lea edx, [ebp - 0x58]
push edx
push dword [esi + 0x10]
movups xmmword [ebp - 0x58], xmm0
movups xmm0, xmmword [esi + 0x28]
movups xmmword [ebp - 0x48], xmm0
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
test al, al
je 0x100cb471
mov edi, dword [ebp - 0x18]
xor eax, eax
add edi, dword [ebp - 0x48]
adc eax, dword [ebp - 0x44]
add edi, dword [ebp - 0x50]
adc eax, dword [ebp - 0x4c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
cmp edi, eax
jne 0x100cb471
cmp dword [ebp - 0x7c], edx
jne 0x100cb471
mov ecx, dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x2c]
mov eax, dword [ecx]
push dword [esi + 0x10]
mov eax, dword [eax + 0x14]
call eax
test al, al
je 0x100cb471
movups xmm0, xmmword [ebp - 0x58]
movups xmmword [esi + 0x18], xmm0
movups xmm0, xmmword [ebp - 0x48]
movups xmmword [esi + 0x28], xmm0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x100cb413
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x100cb413
lea eax, [ebp - 0x8c]
mov ecx, esi
push eax
call fcn.100caac0
mov byte [ebp - 4], 2
mov edx, dword [eax]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], edx
cmp ecx, edx
je 0x100cb21f
test edx, edx
je 0x100cb210
mov eax, dword [edx]
mov ecx, edx
call dword [eax]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x100cb219
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x8c]
test ecx, ecx
je 0x100cb232
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x100cb45a
mov edx, dword [ebp - 0x7c]
mov eax, edi
and eax, edx
cmp eax, 0xffffffff
je 0x100cb255
sub edi, dword [esi + 0x20]
sbb edx, dword [esi + 0x24]
sub edi, dword [esi + 0x30]
sbb edx, dword [esi + 0x34]
movups xmm0, xmmword [esi + 0x18]
lea eax, [ebp - 0x78]
push eax
movups xmmword [ebp - 0x78], xmm0
push edx
movups xmm0, xmmword [esi + 0x28]
push edi
push dword [esi + 0x10]
movups xmmword [ebp - 0x68], xmm0
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
call eax
test al, al
je 0x100cb443
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
mov ecx, dword [ebp - 0x68]
add ecx, dword [ebp - 0x70]
mov edi, dword [ebp - 0x64]
adc edi, dword [ebp - 0x6c]
cmp ecx, eax
jne 0x100cb43c
cmp edi, edx
jne 0x100cb43c
movups xmm0, xmmword [ebp - 0x78]
movups xmmword [esi + 0x18], xmm0
movups xmm0, xmmword [ebp - 0x68]
movups xmmword [esi + 0x28], xmm0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x100cb413
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x100cb413
test edx, edx
ja 0x100cb2ed
jb 0x100cb2ea
cmp ecx, 0x8000
jae 0x100cb2ed
mov dword [ebp - 0x7c], ecx
mov eax, dword [ebp - 0x80]
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 0x18]
mov dword [ebp - 0x34], 0
push edx
mov ecx, dword [eax]
push dword [ebp - 0x7c]
push dword [ebp - 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
cmp dword [ebp - 0x18], 0
mov edi, eax
jbe 0x100cb39c
xor ecx, ecx
mov dword [ebp - 0x88], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x84]
cmp eax, 0x7d0
jbe 0x100cb349
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [esi + 4]
mov dword [ebp - 0x84], eax
mov eax, dword [ecx]
call dword [eax + 0x18]
mov eax, dword [ebp - 0x18]
mov ecx, esi
add dword [esi + 0x28], eax
lea eax, [ebp - 0x20]
push eax
adc dword [esi + 0x2c], 0
mov dword [ebp - 0x20], 0
call fcn.100caac0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x100cb488
push dword [ebp - 0x18]
mov eax, dword [ecx]
push dword [ebp - 0x2c]
push dword [esi + 0x10]
mov eax, dword [eax + 0x14]
call eax
test al, al
je 0x100cb488
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x100cb39c
mov eax, dword [ecx]
call dword [eax + 4]
cmp edi, 1
jne 0x100cb3f3
mov edx, dword [esi + 0x30]
mov eax, edx
mov ecx, dword [esi + 0x34]
and eax, ecx
cmp eax, 0xffffffff
je 0x100cb4fc
cmp dword [esi + 0x2c], ecx
ja 0x100cb4fc
jb 0x100cb3c8
cmp dword [esi + 0x28], edx
jae 0x100cb4ff
mov edi, dword [ebp - 0x88]
cmp edi, 3
jae 0x100cb49f
mov eax, dword [esi + 0xb4]
test eax, eax
je 0x100cb3ea
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
inc edi
mov dword [ebp - 0x88], edi
jmp 0x100cb413
cmp edi, 0x8000000a
jne 0x100cb40b
cmp dword [ebp - 0x18], 0
jne 0x100cb413
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100cb413
test edi, edi
jne 0x100cb550
cmp byte [esi + 0xd4], 0
je 0x100cb022
mov edi, 4
cmp byte [esi + 0xd4], 0
je 0x100cb56a
mov edi, 0x64
jmp 0x100cb56f
mov edi, 0x65
jmp 0x100cb448
mov edi, 4
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x100cb425
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x100cb425
mov edi, 0x64
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x100cb425
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x100cb425
mov edi, 6
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x100cb425
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x100cb425
mov edi, 0x64
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x100cb425
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x100cb425
cmp dword [ebp - 0x34], 0
mov edi, 0x68
jne 0x100cb425
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
mov ecx, esi
call fcn.100caac0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x100cb4e3
mov edx, dword [ecx]
lea eax, [esi + 0x18]
push eax
push dword [esi + 0x10]
mov eax, dword [edx + 0x24]
call eax
test al, al
mov ecx, 0x69
cmovne edi, ecx
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x100cb425
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x100cb425
cmp dword [esi + 0x28], edx
jne 0x100cb510
cmp dword [esi + 0x2c], ecx
jne 0x100cb510
mov edi, 6
jmp 0x100cb425
cmp dword [ebp - 0x34], 0
jne 0x100cb546
push ecx
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push eax
call fcn.1004edd0
mov ecx, eax
call fcn.1004f6b0
mov ecx, dword [ebp - 0x38]
and ecx, 7
test eax, eax
je 0x100cb546
test ecx, ecx
je 0x100cb546
mov edi, 6
jmp 0x100cb425
mov edi, 0x68
jmp 0x100cb425
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x30]
jne 0x100cb546
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x34]
jne 0x100cb546
mov edi, 6
jmp 0x100cb425
cmp edi, 4
je 0x100cb577
push edi
mov ecx, esi
call fcn.100cab60
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
test edx, edx
je 0x100cb5cc
mov ecx, dword [ebp - 0x24]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x100cb5ad
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100cb5ad
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.101b079d
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101b075c
mov esp, ebp
pop ebp
ret 4