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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
xor ebx, ebx
push esi
mov dword [esp + 0xc], ebx
cmp dword [0x10330af0], 3
push edi
mov edi, ecx
jne 0x100ca18d
cmp dword [0x10330ad8], ebx
je 0x100ca18d
lea edx, [ebx + 5]
mov dword [esp + 0x10], 0x51bf05c1
lea ecx, [esp + 0x10]
mov byte [esp + 0x14], bl
call fcn.100ca400
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x10330af4], ebx
mov dword [0x10330af0], ebx
call esi
mov dword [0x10330aec], eax
call esi
mov dword [0x10330ae8], eax
xor ecx, ecx
mov eax, dword [edi + 0x48]
mov dword [0x103308d0], eax
mov eax, dword [edi + 0x4c]
mov dword [0x103309c0], eax
mov eax, dword [edi + 0x50]
mov dword [0x103309e4], eax
mov eax, dword [edi + 0x54]
mov dword [0x103309e8], eax
mov eax, dword [edi + 0x58]
mov dword [0x103309dc], eax
mov eax, dword [edi + 0x5c]
mov dword [0x103309e0], eax
mov eax, dword [edi + 0x60]
mov dword [0x103309cc], eax
mov eax, dword [edi + 0x64]
mov dword [0x103309d0], eax
mov eax, dword [edi + 0x68]
mov dword [0x103309d4], eax
mov eax, dword [edi + 0x6c]
mov dword [0x103309d8], eax
mov eax, dword [edi + 0x70]
mov dword [0x10330984], eax
mov eax, dword [edi + 0x74]
mov dword [0x10330980], eax
mov eax, dword [edi + 0x78]
mov dword [0x1033097c], eax
mov eax, dword [edi + 0x7c]
mov dword [0x10330978], eax
mov eax, dword [edi + 0x80]
mov dword [0x10330974], eax
mov eax, dword [0x7bc4f04]
mov dword [0x10330ae4], ebx
mov dword [0x10330ae0], ebx
mov dword [0x10330adc], ebx
mov word [eax + 0x7e], cx
mov eax, dword [0x7bc4f04]
mov dword [0x10330ad8], ebx
mov byte [eax + 0x30c], cl
mov eax, dword [0x8128ac8]
movzx eax, byte [eax + 0xb]
and eax, 7
cmp eax, 6
ja case.default.0x100ca26b
jmp dword [eax*4 + 0x100ca3e0]
cmp dword [0x102597b8], 0xffff
sbb al, al
and al, 0xd
add al, 2
movzx eax, al
push eax
jmp 0x100ca2f8
cmp dword [0x102597bc], 0xffff
sbb al, al
and al, 0xd
add al, 2
movzx eax, al
push eax
jmp 0x100ca2f8
cmp dword [0x102597c0], 0xffff
sbb al, al
and al, 0xd
add al, 2
movzx eax, al
push eax
jmp 0x100ca2f8
cmp dword [0x102597c4], 0xffff
sbb al, al
and al, 0xd
add al, 2
movzx eax, al
push eax
jmp 0x100ca2f8
cmp dword [0x102597c8], 0xffff
sbb al, al
and al, 0xd
add al, 2
movzx eax, al
push eax
jmp 0x100ca2f8
cmp dword [0x102597cc], 0xffff
sbb al, al
and al, 0xd
add al, 2
movzx eax, al
push eax
jmp 0x100ca2f8
push 0xf
push 0x556c38
call fcn.1009c810
add esp, 8
mov ecx, 0x102596c3
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100ca310
sub ecx, edx
je 0x100ca37c
push ecx
push 0x102596c3
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 0xf
mov byte [esp + 0x20], bl
call fcn.1000bb90
mov edi, dword [esp + 0x2c]
lea edx, [esp + 0x18]
mov ecx, dword [esp + 0x18]
cmp edi, 0x10
mov eax, dword [esp + 0x28]
mov ebx, 1
cmovae edx, ecx
test eax, eax
je 0x100ca384
lea esi, [eax + edx]
mov eax, edx
cmp edx, esi
jae 0x100ca384
cmp byte [eax], 0x20
jne 0x100ca36e
inc eax
cmp eax, esi
jb 0x100ca362
jmp 0x100ca384
sub eax, edx
cmp eax, 0xffffffff
je 0x100ca384
mov byte [esp + 0xf], 0
jmp 0x100ca389
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov byte [esp + 0xf], 1
test bl, 1
je 0x100ca3ba
cmp edi, 0x10
jb 0x100ca3ba
lea edx, [edi + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x100ca3b0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100ca3db
push edx
push ecx
call fcn.100f4664
add esp, 8
cmp byte [esp + 0xf], 0
je 0x100ca3d4
cmp byte [0x10259a8f], 0
jne 0x100ca3d4
mov ecx, 0x101ae180
call fcn.100317d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.1014b779
jb 0x100ca384
or al, 0x10
mov byte [edx - 0x5d61eff4], ah
or al, 16
mov ah, 0xa2
or al, 16
retf 0xca2