Function at 0x5911caa1
Capabilities:
Check for time delay via gettickcount
Get thread local storage value

Disassembly:
push 0x28
mov eax, 0x591c595c
call fcn.5911c518
mov edi, ecx
mov dword [ebp - 0x28], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
cmp dword [edi + 0x18], eax
mov dword [ebp - 4], eax
je 0x5911cad7
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x591d4f7c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [edi + 0x20]
mov dword [ebp - 0x1c], eax
lea eax, [esi - 8]
neg esi
sbb esi, esi
and esi, eax
jne 0x5912eecf
lea ebx, [edi + 0x1c]
mov esi, dword [ebx]
lea eax, [esi - 8]
neg esi
sbb esi, esi
and esi, eax
mov dword [ebp - 0x24], esi
jne 0x59130c18
mov eax, dword [ebx]
or dword [ebp - 0x10], 0xffffffff
test eax, eax
je 0x5911cbcb
add eax, 0xfffffff8
je 0x5911cb46
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x5914f98a
xor ecx, ecx
mov eax, dword [eax + 0x28]
cmp eax, dword [ebp - 0x10]
jae 0x5914f992
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x5914f992
cmp dword [edi + 0x18], 0
je 0x5911cb53
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 1
lea eax, [ebp - 0x34]
push eax
mov ecx, edi
call fcn.5911c9b4
mov esi, dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, dword [ebp - 0x10]
jb 0x5911cc12
and dword [ebp - 0x10], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
mov edi, edi
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x5911cb94
and dword [esi + 4], 0
and dword [esi + 8], 0
pop esi
jmp 0x5911cbae
push dword [0x591d52c4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [esi]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x10]
and dword [esi], 0
jmp 0x5911cb89
mov eax, dword [ebp - 0x10]
sub esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
push ecx
add esp, 4
ret
mov eax, dword [edi + 0x20]
lea ecx, [eax - 8]
neg eax
sbb eax, eax
and eax, ecx
je 0x5911cb46
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x591788eb
xor ecx, ecx
mov edx, dword [eax + 0x10]
cmp edx, dword [ebp - 0x1c]
jne 0x5911cc06
mov eax, dword [eax + 0x40]
sub eax, dword [ebp - 0x14]
js 0x591788f3
cmp eax, dword [ebp - 0x10]
jae 0x5911cc06
mov dword [ebp - 0x10], eax
test ecx, ecx
mov eax, ecx
je 0x5911cb46
jmp 0x5911cbdd
sub dword [ebp - 0x10], eax
jmp 0x5911cb78
mov eax, dword [esi + 8]
test eax, eax
jne 0x5917888c
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x1c]
cmp dword [esi + 0x10], eax
jne 0x5912ef00
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
mov ecx, esi
call fcn.5912ee26
cmp dword [ebp - 0x18], 0
jne 0x59130dbb
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x5911caf8
jmp 0x5912eecf
mov eax, dword [esi + 8]
test eax, eax
jne 0x5914c8a6
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x1c]
cmp dword [esi + 0x10], eax
jne 0x59130c51
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
mov ecx, esi
call fcn.5912ee26
cmp dword [ebp - 0x20], 0
jne 0x59130c5b
cmp dword [ebp - 0x18], 0
jne 0x59130e2c
mov esi, dword [ebp - 0x10]
test esi, esi
jmp 0x5911cb06
xor ecx, ecx
lea eax, [esi + 4]
inc ecx
lock xadd dword [eax], ecx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x34]
call fcn.5912374e
jmp 0x59130c47
push esi
lea ecx, [edi + 0x20]
call fcn.5912ecfc
fldz
or dword [esi + 0x48], 1
fstp dword [esi + 0x18]
lea ecx, [edi + 0x1c]
mov dword [esi + 0x40], ebx
push esi
mov dword [esi + 0x34], ecx
call fcn.59121dd3
jmp 0x5912ef00
and dword [esi + 0x34], 0
push esi
mov ecx, ebx
call fcn.5912ecfc
mov ecx, esi
call fcn.59130e20
cmp dword [esi + 0x24], 0
mov ecx, esi
jne 0x59178897
or dword [esi + 0x48], 8
call fcn.5911de31
jmp 0x59130c51
add eax, 0xfffffff8
mov dword [ebp - 0x10], eax
jmp 0x59130c27
add ecx, 0xfffffff8
jmp 0x5911cb2f
test ecx, ecx
mov eax, ecx
je 0x5911cb46
jmp 0x5911cb22
add eax, 0xfffffff8
mov dword [ebp - 0x10], eax
jmp 0x5912eede
call fcn.5912ef51
fstp dword [ebp - 0x24]
fld dword [ebp - 0x24]
push ecx
fstp dword [esp]
call fcn.5912f0ac
movzx eax, al
test eax, eax
mov dword [ebp - 0x24], eax
je 0x591788bf
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x40], eax
mov edi, ebx
jmp 0x591788ce
push 0
push dword [ebp - 0x14]
mov ecx, esi
call fcn.5912ef77
add edi, 0x20
push dword [ebp - 0x24]
mov ecx, esi
call fcn.5912f14a
push esi
mov ecx, edi
mov dword [esi + 0x34], edi
call fcn.59121dd3
mov edi, dword [ebp - 0x28]
jmp 0x59130c51
add ecx, 0xfffffff8
jmp 0x5911cbea
xor eax, eax
jmp 0x5911cbfe