Function at 0x10005a10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10036eb8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1004b6e0]
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
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0xffffffff
xor edi, edi
mov dword [ebp - 0x38], 0xffffffff
mov dword [ebp - 0x34], 0xffffffff
movdqu xmmword [ebp - 0x20], xmm0
cmp ecx, 0xffffffff
je 0x10005a6a
mov dword [ebp - 0x3c], edi
mov edi, 1
mov dword [ebp - 0x20], ecx
mov eax, dword [0x1004c5d8]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0xffffffff
je 0x10005ab6
push eax
call ebx
test eax, eax
je 0x10005ab6
mov eax, dword [0x1004c5d8]
cmp eax, 0xffffffff
jne 0x10005a8f
xor ecx, ecx
jmp 0x10005a99
push eax
call ebx
mov ecx, eax
mov eax, dword [0x1004c5d8]
cmp byte [ecx + 0x38], 0
je 0x10005ab6
mov dword [ebp - 0x38], edi
cmp eax, 0xffffffff
jne 0x10005aab
xor eax, eax
jmp 0x10005aae
push eax
call ebx
mov eax, dword [eax + 0x34]
mov dword [ebp + edi*4 - 0x20], eax
inc edi
xor esi, esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0x10]
and eax, dword [ebp + 0x14]
cmp eax, 0xffffffff
je 0x10005b67
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp + 8]
call fcn.100044e0
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
mov esi, eax
mov dword [ebp - 0x40], esi
test esi, esi
je 0x10005b67
mov eax, 0xcccccccd
lea ecx, [ebp + 8]
mul dword [ebp - 0x2c]
mov ebx, 0x20
shr edx, 4
cmp edx, ebx
cmova ebx, edx
call fcn.100057d0
mov ecx, dword [0x1004e334]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
test ecx, ecx
jne 0x10005b3f
push str.SetWaitableTimerEx
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov ecx, 0x100059f0
cmovne ecx, eax
mov dword [0x1004e334], ecx
push ebx
push 0x1004c5c0
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 0x10005b67
mov eax, edi
mov dword [ebp + edi*4 - 0x20], esi
mov dword [ebp - 0x34], eax
inc edi
jmp 0x10005b6a
or eax, 0xffffffff
cmp eax, 0xffffffff
mov byte [ebp - 0x22], 0
setne cl
xor ebx, ebx
mov byte [ebp - 0x21], cl
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
or edx, 0xffffffff
test cl, cl
jne 0x10005ba9
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp + 8]
call fcn.100044e0
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 cl, byte [ebp - 0x21]
mov byte [ebp - 0x22], dl
or edx, 0xffffffff
test edi, edi
je 0x10005c10
push 0
test cl, cl
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 0x10005c1a
cmp eax, dword [ebp - 0x3c]
je 0x10005c66
cmp eax, dword [ebp - 0x38]
je 0x10005c36
cmp eax, dword [ebp - 0x34]
jne 0x10005c1a
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10005bf2
cmp esi, 0xffffffff
je 0x10005bf2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.1001ef7b
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x10005c17
push ebx
jmp 0x10005c18
push ebx
call eax
cmp byte [ebp + 0x18], 0
je 0x10005c28
add dword [ebp + 0x10], 2
adc dword [ebp + 0x14], 0xffffffff
cmp byte [ebp - 0x22], 0
je 0x10005bdb
mov cl, byte [ebp - 0x21]
jmp 0x10005b79
mov eax, dword [0x1004c5d8]
cmp eax, 0xffffffff
jne 0x10005c44
xor eax, eax
jmp 0x10005c4b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [eax + 0x34]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x10049a94
lea eax, [ebp - 0x21]
mov byte [ebp - 0x21], 0
push eax
call fcn.1002203b
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10005c7d
cmp esi, 0xffffffff
je 0x10005c7d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x10005bf4