Function at 0x1003cdc0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007bef5
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x10098140]
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 esi, ecx
mov eax, dword [esi + 8]
mov dword [ebp - 0x60], eax
mov al, byte [esi + 0x10]
mov byte [ebp - 0x58], al
lea eax, [ebp - 0x50]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x1003ce1f
mov eax, dword [ecx]
lea edx, [ebp - 0x50]
push edx
call dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x44]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
test eax, eax
je 0x1003ce38
lock inc dword [eax + 4]
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x44]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
movq qword [ebp - 0x20], xmm0
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
lea ebx, [esi + 4]
mov eax, dword [esi]
push dword [0x1009e994]
mov esi, dword [ebx]
mov dword [ebp - 0x64], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1003ce8f
nop
cmp dword [eax], esi
je 0x1003cfab
mov eax, dword [eax + 8]
test eax, eax
jne 0x1003ce80
lea eax, [ebp - 0x60]
push eax
push 0x78
mov dword [ebp - 0x70], eax
call fcn.1000b8d0
add esp, 8
mov edi, eax
mov byte [ebp - 4], 3
lea ecx, [edi + 0x28]
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0x10042150
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x1c], 0
mov eax, dword [ebp - 0x60]
mov dword [edi + 0x20], eax
lea eax, [ebp - 0x58]
push eax
call fcn.10020f00
mov ecx, dword [ebp - 0x64]
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov eax, dword [ebp - 0x28]
mov dword [edi + 0x58], eax
mov eax, dword [ebp - 0x24]
mov dword [edi + 0x5c], eax
movq xmm0, qword [ebp - 0x20]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
movq qword [edi + 0x60], xmm0
mov eax, dword [ebp - 0x18]
push edi
mov dword [edi + 0x68], eax
mov eax, dword [ebp - 0x14]
push ebx
mov dword [edi + 0x6c], eax
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x6c], 0
call fcn.1000ea70
lea ecx, [ebp - 0x70]
call fcn.10041740
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x1003cf75
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1003cf75
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x1003cf75
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x1003cf8d
mov edx, dword [ecx]
lea eax, [ebp - 0x50]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
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.1004ff4b
mov esp, ebp
pop ebp
ret 8
cmp dword [eax + 4], 0
je 0x1003ce8f
nop
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 2
push eax
push eax
call fcn.1003f570
add esp, 8
nop
jmp 0x1003cf4d