Function at 0x100bd830
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov edi, ecx
mov eax, dword [0x101ce530]
mov ecx, dword [0x101bd164]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x100bdada
push dword [0x101bac5c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x100bdac3
mov ecx, dword [0x101ce528]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [0x101ce52c]
jne 0x100bdac3
mov esi, dword [eax + ecx*8]
test esi, esi
je 0x100bdac3
cmp byte [edi], 0
je 0x100bdac3
movq xmm0, qword [esi]
pshufd xmm0, xmm0, 0x55
movd eax, xmm0
test eax, eax
jns 0x100bd8cf
movzx eax, byte [0x7c]
test al, 1
je 0x100bd8cf
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x100bdacb
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp dword [esi + 0x14], 1
jne 0x100bd975
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x100bd950
movq xmm0, qword [esi]
mov eax, 1
lock xadd dword [ebx], eax
test eax, eax
jle 0x100bdb29
pshufd xmm0, xmm0, 0x55
movd dword [ebp - 0x18], xmm0
mov eax, dword [esi + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [eax + 4]
call dword [section..00cfg]
push dword [ebp - 0x10]
call ecx
add esp, 4
mov dword [ebp - 0x10], eax
lock dec dword [ebx]
jne 0x100bd933
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x14], edx
call dword [section..00cfg]
push ebx
call ecx
mov edx, dword [ebp - 0x14]
add esp, 4
mov eax, 0xff000000
mov ecx, dword [ebp - 0x18]
and ecx, eax
or edx, ecx
movd xmm0, edx
movd xmm1, dword [ebp - 0x10]
punpckldq xmm1, xmm0
movq qword [esi], xmm1
mov eax, dword [esi]
mov edx, dword [esi + 4]
nop word cs:[eax + eax]
mov ecx, edx
and ecx, 0xbfffffff
mov ebx, eax
lock cmpxchg8b qword [esi]
jne 0x100bd960
jmp 0x100bda11
cmp byte [edi + 0x10], 0
je 0x100bda11
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x100bd9f6
movq xmm0, qword [esi]
mov eax, 1
lock xadd dword [ebx], eax
test eax, eax
jle 0x100bdb2c
pshufd xmm0, xmm0, 0x55
movd dword [ebp - 0x18], xmm0
mov eax, dword [esi + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [eax + 4]
call dword [section..00cfg]
push dword [ebp - 0x10]
call ecx
add esp, 4
mov dword [ebp - 0x10], eax
lock dec dword [ebx]
jne 0x100bd9d9
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x14], edx
call dword [section..00cfg]
push ebx
call ecx
mov edx, dword [ebp - 0x14]
add esp, 4
mov eax, 0xff000000
mov ecx, dword [ebp - 0x18]
and ecx, eax
or edx, ecx
movd xmm0, edx
movd xmm1, dword [ebp - 0x10]
punpckldq xmm1, xmm0
movq qword [esi], xmm1
mov eax, dword [esi]
mov edx, dword [esi + 4]
nop dword [eax + eax]
mov ecx, edx
mov ebx, 0x40000000
or ecx, ebx
mov ebx, eax
lock cmpxchg8b qword [esi]
jne 0x100bda00
mov edx, dword [edi + 8]
mov ebx, dword [edi + 0xc]
mov edi, dword [esi + 8]
test edi, edi
je 0x100bda94
mov dword [ebp - 0x18], edx
movq xmm0, qword [esi]
mov eax, 1
lock xadd dword [edi], eax
test eax, eax
jle 0x100bdb26
pshufd xmm0, xmm0, 0x55
movd dword [ebp - 0x10], xmm0
mov eax, dword [esi + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [eax + 4]
call dword [section..00cfg]
push dword [ebp - 0x14]
call ecx
add esp, 4
mov dword [ebp - 0x14], eax
lock dec dword [edi]
jne 0x100bda74
mov ecx, dword [edi + 8]
mov dword [ebp - 0x1c], edx
call dword [section..00cfg]
push edi
call ecx
mov edx, dword [ebp - 0x1c]
add esp, 4
mov eax, 0xff000000
mov ecx, dword [ebp - 0x10]
and ecx, eax
or edx, ecx
movd xmm0, edx
movd xmm1, dword [ebp - 0x14]
punpckldq xmm1, xmm0
movq qword [esi], xmm1
mov edx, dword [ebp - 0x18]
movq xmm0, qword [esi]
pshufd xmm0, xmm0, 0x55
movd eax, xmm0
mov ecx, 0x40000000
and eax, ecx
and ebx, 0xffffff
or ebx, eax
movd xmm0, ebx
movd xmm1, edx
punpckldq xmm1, xmm0
movq qword [esi], xmm1
dec dword [esi + 0x14]
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, pe_nt_image_headers32
call fcn.10083990
jmp 0x100bd8c7
push 0x101ce530
call fcn.10145c47
add esp, 4
cmp dword [0x101ce530], 0xffffffff
jne 0x100bd85c
mov dword [0x101ce52c], 0
mov dword [0x101ce528], 0xffffffff
mov ecx, 0x101ce528
push 0
call fcn.1007a5a0
push 0x101ce530
call fcn.10145cbd
add esp, 4
jmp 0x100bd85c
int3
int3
int3