Function at 0x1c72250
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov edi, edx
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x1d01324]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], eax
test edx, edx
je 0x1c7239b
mov eax, dword [0x1d0b680]
mov ecx, dword [0x1d04a8c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c72589
lea ebx, [edi*8]
mov eax, 0x20
mov ecx, 0x20
test ebx, ebx
je 0x1c722b9
bsr ecx, ebx
xor ecx, 0x1f
mov dword [ebp - 0x2c], esi
sub eax, ecx
mov cl, byte [eax + 0x1ce7c20]
mov edx, ebx
shr edx, cl
and edx, 7
mov ecx, dword [eax*4 + 0x1ce7c44]
and ecx, ebx
lea eax, [edx + eax*8]
cmp ecx, 1
sbb eax, 0xffffffff
mov byte [ebp - 0x19], 0
cmp byte [0x1d0a4e0], 2
jne 0x1c722f0
mov cl, byte [0x1d021a4]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
movzx esi, word [eax + eax + 0x1ce7a0c]
cmp byte [0x1d0a4e2], 0
je 0x1c723e1
mov edi, dword [0x1d0b694]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test ebx, ebx
jne 0x1c72436
cmp edi, 1
jbe 0x1c72446
add dword [edi + 0x308], 1
adc dword [edi + 0x30c], 0
add dword [edi + esi*8 + 0x7b8], 1
adc dword [edi + esi*8 + 0x7bc], 0
add dword [edi + 0x318], 1
adc dword [edi + 0x31c], 0
cmp word [0x1d021a8], si
jb 0x1c7249e
cmp dword [edi + esi*8], 0
je 0x1c72559
add dword [edi + 0x320], 1
adc dword [edi + 0x324], 0
mov ebx, dword [edi + esi*8]
mov eax, dword [ebx]
test eax, eax
je 0x1c7239f
mov ecx, eax
not ecx
cmp dword [ebx + 4], ecx
je 0x1c723a1
call fcn.01c56c20
xor ebx, ebx
jmp 0x1c723b9
xor eax, eax
bswap eax
add byte [edi + esi*8 + 4], 0xff
mov dword [edi + esi*8], eax
test ebx, ebx
je 0x1c724ba
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp + 8]
mov dword [esi], ebx
lea eax, [ebx + eax*8]
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebx + edi*8]
mov dword [esi + 0xc], eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb3141
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
shl esi, 5
lea edi, [esi + 0x1d0a4f0]
mov esi, 1
mov dword [ebp - 0x20], 0
mov ebx, dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
push 0x1d0a4e8
call ebx
test al, al
jne 0x1c72510
mov eax, esi
test esi, esi
jle 0x1c7241b
pause
add eax, 0xffffffff
jne 0x1c72411
add dword [ebp - 0x20], esi
add esi, esi
cmp esi, 0x40
mov eax, 0x40
cmovge esi, eax
cmp dword [ebp - 0x20], 0x3e8
jl 0x1c723fc
jmp 0x1c72506
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 1
ja 0x1c72333
je 0x1c724ba
mov byte [0x1d0a4e2], 0
push 0x1d0a4e0
call fcn.01c74450
add esp, 4
mov edi, eax
mov byte [0x1d0a4e2], 1
add dword [eax + 0x308], 1
adc dword [eax + 0x30c], 0
add dword [eax + esi*8 + 0x7b8], 1
adc dword [eax + esi*8 + 0x7bc], 0
add dword [eax + 0x318], 1
adc dword [eax + 0x31c], 0
cmp word [0x1d021a8], si
jae 0x1c7236c
add dword [edi + 0x338], 1
adc dword [edi + 0x33c], 0
add dword [edi + 0x328], 1
adc dword [edi + 0x32c], 0
shl esi, 5
lea edi, [esi + 0x1d0a4f0]
mov esi, 1
mov dword [ebp - 0x20], 0
mov ebx, dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
push 0x1d0a4e8
call ebx
test al, al
jne 0x1c72510
mov eax, esi
test esi, esi
jle 0x1c724f0
pause
add eax, 0xffffffff
jne 0x1c724e6
add dword [ebp - 0x20], esi
add esi, esi
cmp esi, 0x40
mov eax, 0x40
cmovge esi, eax
cmp dword [ebp - 0x20], 0x3e8
jl 0x1c724d5
mov ecx, 0x1d0a4e8
call fcn.01c76bc0
mov eax, dword [edi]
mov ebx, dword [eax]
test ebx, ebx
je 0x1c72662
mov byte [ebp - 0x19], 0
mov ecx, dword [ebx]
test ecx, ecx
je 0x1c72534
mov edx, ecx
not edx
cmp dword [ebx + 4], edx
je 0x1c72536
jmp 0x1c72396
xor ecx, ecx
bswap ecx
mov dword [eax], ecx
add word [eax + 0xc], 1
push 0x1d0a4e8
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test ebx, ebx
jne 0x1c723b3
xor ebx, ebx
jmp 0x1c723b3
movdqu xmm0, xmmword [edi + 0x328]
pcmpeqd xmm1, xmm1
psubq xmm0, xmm1
movdqu xmmword [edi + 0x328], xmm0
mov ecx, edi
push esi
call fcn.01c748f0
mov ebx, dword [edi + esi*8]
test ebx, ebx
jne 0x1c72387
jmp 0x1c724ba
push 0x1d0b680
call fcn.01cb3187
add esp, 4
cmp dword [0x1d0b680], 0xffffffff
jne 0x1c7229e
mov dword [ebp - 0x18], 0x1000000
mov byte [ebp - 0x14], 0
mov dword [0x1d0a4e0], 0x1000000
mov byte [0x1d0a4e7], 1
mov dword [0x1d0a4e8], 0
push 0x1100
push 0
push 0x1d0a4f0
call fcn.01cb76e0
add esp, 0xc
mov byte [0x1d0b610], 0
mov dword [0x1d0b67c], 0
pxor xmm0, xmm0
movdqu xmmword [0x1d0b614], xmm0
movdqu xmmword [0x1d0b624], xmm0
movdqu xmmword [0x1d0b634], xmm0
movdqu xmmword [0x1d0b644], xmm0
movdqu xmmword [0x1d0b654], xmm0
movdqu xmmword [0x1d0b664], xmm0
mov dword [0x1d0b676], 0
mov dword [0x1d0b672], 0
sub esp, 8
mov al, byte [ebp - 0x14]
mov byte [esp + 4], al
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov ecx, 0x1d0a4e0
call fcn.01c74c60
push 0x1d0b680
call fcn.01cb31fd
add esp, 4
jmp 0x1c7229e
lea eax, [ebp - 0x19]
mov ecx, edi
push eax
push dword [ebp - 0x24]
push 0
push 0x1d0a4e0
call fcn.01c76d00
mov ebx, eax
jmp 0x1c7253f