Function at 0x4002c0e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40072b38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
or ebx, 0xffffffff
mov dword [esp + 0x34], 0
xorps xmm0, xmm0
mov dword [esp + 0x10], 0xffffffff
xor edi, edi
movq qword [esp + 0x38], xmm0
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], ebx
cmp ecx, 0xffffffff
je 0x4002c13d
mov dword [esp + 0x10], edi
mov edi, 1
mov dword [esp + 0x34], ecx
mov eax, dword [0x4009464c]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0xffffffff
je 0x4002c18a
push eax
call esi
test eax, eax
je 0x4002c18a
mov eax, dword [0x4009464c]
cmp eax, 0xffffffff
jne 0x4002c162
xor ecx, ecx
jmp 0x4002c16c
push eax
call esi
mov ecx, eax
mov eax, dword [0x4009464c]
cmp byte [ecx + 0x38], 0
je 0x4002c18a
mov dword [esp + 0x14], edi
cmp eax, 0xffffffff
jne 0x4002c17f
xor eax, eax
jmp 0x4002c182
push eax
call esi
mov eax, dword [eax + 0x34]
mov dword [esp + edi*4 + 0x34], eax
inc edi
xor esi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x74], esi
mov eax, dword [ebp + 0x10]
and eax, dword [ebp + 0x14]
cmp eax, 0xffffffff
je 0x4002c230
lea eax, [esp + 0x20]
push eax
lea ecx, [ebp + 8]
call fcn.4002ae20
mov eax, dword [esp + 0x24]
cmp eax, 0x14
jbe 0x4002c201
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov esi, eax
mov dword [esp + 0x1c], esi
test esi, esi
je 0x4002c230
lea ecx, [ebp + 8]
call fcn.4002bf30
push 0
push 0
push 0
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push 0
push eax
push esi
mov dword [esp + 0x3c], edx
call dword [sym.imp.KERNEL32.dll_SetWaitableTimer]
test eax, eax
je 0x4002c230
mov ebx, edi
mov dword [esp + edi*4 + 0x34], esi
mov dword [esp + 0x18], ebx
inc edi
jmp 0x4002c230
cmp byte [ebp + 0x18], 0
jne 0x4002c230
push 0
push eax
lea ecx, [esp + 0x48]
call fcn.4002ad90
movdqu xmm0, xmmword [eax]
movdqu xmmword [ebp + 8], xmm0
movdqu xmm0, xmmword [eax + 0x10]
movdqu xmmword [ebp + 0x18], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [ebp + 0x28], xmm0
cmp ebx, 0xffffffff
mov byte [esp + 0xe], 0
setne cl
xor ebx, ebx
mov byte [esp + 0xf], cl
or edx, 0xffffffff
test cl, cl
jne 0x4002c26b
lea eax, [esp + 0x2c]
push eax
lea ecx, [ebp + 8]
call fcn.4002ae20
or edx, 0xffffffff
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
mov al, cl
mov dword [esp + 0x20], ecx
mov cl, byte [esp + 0xf]
mov byte [esp + 0xe], al
test edi, edi
je 0x4002c2c5
push 0
test cl, cl
mov eax, ebx
cmovne eax, edx
push eax
push 0
lea eax, [esp + 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
cmp eax, edi
jae 0x4002c2d2
cmp eax, dword [esp + 0x10]
je 0x4002c322
cmp eax, dword [esp + 0x14]
je 0x4002c2f0
cmp eax, dword [esp + 0x18]
jne 0x4002c2d2
test esi, esi
je 0x4002c2b1
cmp esi, 0xffffffff
je 0x4002c2b1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x4002c2cc
push ebx
jmp 0x4002c2cd
push ebx
call sub.KERNEL32.dll_Sleep
cmp byte [ebp + 0x18], 0
je 0x4002c2e0
add dword [ebp + 0x10], 2
adc dword [ebp + 0x14], 0xffffffff
cmp byte [esp + 0xe], 0
je 0x4002c2a1
mov cl, byte [esp + 0xf]
jmp 0x4002c241
mov eax, dword [0x4009464c]
cmp eax, 0xffffffff
jne 0x4002c2fe
xor eax, eax
jmp 0x4002c305
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [eax + 0x34]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x40090948
lea eax, [esp + 0x13]
mov byte [esp + 0x13], 0
push eax
call fcn.400584a8
test esi, esi
je 0x4002c332
cmp esi, 0xffffffff
je 0x4002c332
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x6c]
mov al, 1
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret