Function at 0x61f660
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68b0aa
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x79cac4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
xor edi, edi
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x38], 0xffffffff
mov dword [ebp - 0x28], 0xffffffff
movups xmmword [ebp - 0x20], xmm0
cmp eax, 0xffffffff
je 0x61f6bc
mov dword [ebp - 0x34], edi
mov edi, 1
mov dword [ebp - 0x20], eax
mov eax, dword [0x79cb08]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0xffffffff
je 0x61f708
push eax
call ebx
test eax, eax
je 0x61f708
mov eax, dword [0x79cb08]
cmp eax, 0xffffffff
jne 0x61f6e1
xor ecx, ecx
jmp 0x61f6eb
push eax
call ebx
mov ecx, eax
mov eax, dword [0x79cb08]
cmp byte [ecx + 0x38], 0
je 0x61f708
mov dword [ebp - 0x38], edi
cmp eax, 0xffffffff
jne 0x61f6fd
xor eax, eax
jmp 0x61f700
push eax
call ebx
mov eax, dword [eax + 0x34]
mov dword [ebp + edi*4 - 0x20], eax
inc edi
xor esi, esi
mov dword [ebp - 0x3c], esi
mov eax, dword [ebp + 0x14]
and eax, dword [ebp + 0x18]
mov dword [ebp - 4], esi
cmp eax, 0xffffffff
je 0x61f7ba
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp + 0xc]
call fcn.0061f9c0
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x61f7ba
mov eax, 0xcccccccd
mov ebx, 0x20
mul dword [ebp - 0x2c]
lea eax, [ebp + 0xc]
shr edx, 4
cmp edx, ebx
push eax
cmova ebx, edx
call fcn.0061f280
mov ecx, dword [0x7a98a4]
add esp, 4
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
test ecx, ecx
jne 0x61f795
push str.SetWaitableTimerEx
push 0x6fd76c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov ecx, 0x61e690
cmovne ecx, eax
mov dword [0x7a98a4], ecx
push ebx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x30]
push eax
push esi
call ecx
test eax, eax
setne al
test al, al
je 0x61f7ba
mov ecx, edi
mov dword [ebp + edi*4 - 0x20], esi
mov dword [ebp - 0x28], ecx
inc edi
jmp 0x61f7bd
or ecx, 0xffffffff
mov byte [ebp - 0x21], 0
xor ebx, ebx
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
or edx, 0xffffffff
cmp ecx, edx
jne 0x61f7f3
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp + 0xc]
call fcn.0061f9c0
mov ecx, dword [eax]
mov dl, cl
mov ebx, dword [eax + 4]
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 0x21], dl
or edx, 0xffffffff
test edi, edi
je 0x61f835
push 0
cmp ecx, 0xffffffff
mov eax, ebx
cmovne eax, edx
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
cmp eax, edi
jae 0x61f83f
cmp eax, dword [ebp - 0x34]
je 0x61f8db
cmp eax, dword [ebp - 0x38]
je 0x61f8af
mov ecx, dword [ebp - 0x28]
cmp eax, ecx
jne 0x61f842
mov dword [ebp - 4], 2
jmp 0x61f861
test ebx, ebx
jne 0x61f83c
push ebx
jmp 0x61f83d
push ebx
call eax
mov ecx, dword [ebp - 0x28]
cmp byte [ebp + 0x1c], 0
je 0x61f850
add dword [ebp + 0x14], 2
adc dword [ebp + 0x18], 0xffffffff
cmp byte [ebp - 0x21], 0
jne 0x61f7c3
mov dword [ebp - 4], 3
test esi, esi
je 0x61f891
cmp esi, 0xffffffff
je 0x61f891
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x61f891
push 0x1db
push str.._boost_thread_win32_thread_primitives.hpp
push str.void___thiscall_boost::detail::win32::handle_manager::cleanup_void_
push str.CloseHandle_handle_to_manage_
call fcn.0046c420
add esp, 0x10
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00611399
mov esp, ebp
pop ebp
ret
mov eax, dword [0x79cb08]
cmp eax, 0xffffffff
jne 0x61f8bd
xor eax, eax
jmp 0x61f8c4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [eax + 0x34]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x78c50c
lea eax, [ebp - 0x21]
push eax
call fcn.0064d863
mov dword [ebp - 4], 1
test esi, esi
je 0x61f912
cmp esi, 0xffffffff
je 0x61f912
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x61f912
push 0x1db
push str.._boost_thread_win32_thread_primitives.hpp
push str.void___thiscall_boost::detail::win32::handle_manager::cleanup_void_
push str.CloseHandle_handle_to_manage_
call fcn.0046c420
add esp, 0x10
mov al, 1
jmp 0x61f893