Function at 0x1c73dc0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, dword [ebp + 8]
mov eax, dword [0x1d01324]
xor eax, ebp
mov dword [ebp - 0x10], eax
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 0x1c740b4
mov eax, 0x20
mov ecx, 0x20
test esi, esi
je 0x1c73e0b
bsr ecx, esi
xor ecx, 0x1f
sub eax, ecx
mov cl, byte [eax + 0x1ce7c20]
mov edx, esi
shr edx, cl
and edx, 7
mov ecx, dword [eax*4 + 0x1ce7c44]
and ecx, esi
lea eax, [edx + eax*8]
cmp ecx, 1
sbb eax, 0xffffffff
mov byte [ebp - 0x19], 0
cmp byte [0x1d0a4e0], 2
jne 0x1c73e3f
mov cl, byte [0x1d021a4]
movzx ebx, word [eax + eax + 0x1ce7a0c]
cmp byte [0x1d0a4e2], 0
je 0x1c73f0c
mov edi, dword [0x1d0b694]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test esi, esi
jne 0x1c73f61
cmp edi, 1
jbe 0x1c73f71
add dword [edi + 0x308], 1
adc dword [edi + 0x30c], 0
add dword [edi + ebx*8 + 0x7b8], 1
adc dword [edi + ebx*8 + 0x7bc], 0
add dword [edi + 0x318], 1
adc dword [edi + 0x31c], 0
cmp word [0x1d021a8], bx
jb 0x1c73fc9
cmp dword [edi + ebx*8], 0
je 0x1c74084
add dword [edi + 0x320], 1
adc dword [edi + 0x324], 0
mov esi, dword [edi + ebx*8]
mov eax, dword [esi]
test eax, eax
je 0x1c73ee4
mov ecx, eax
not ecx
cmp dword [esi + 4], ecx
je 0x1c73ee6
call fcn.01c56c20
xor eax, eax
bswap eax
add byte [edi + ebx*8 + 4], 0xff
mov dword [edi + ebx*8], eax
test esi, esi
je 0x1c73fe5
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb3141
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
shl ebx, 5
lea edi, [ebx + 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 0x1c7403b
mov eax, esi
test esi, esi
jle 0x1c73f46
pause
add eax, 0xffffffff
jne 0x1c73f3c
add dword [ebp - 0x20], esi
add esi, esi
cmp esi, 0x40
mov eax, 0x40
cmovge esi, eax
cmp dword [ebp - 0x20], 0x3e8
jl 0x1c73f27
jmp 0x1c74031
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 1
ja 0x1c73e7c
je 0x1c73fe5
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 + ebx*8 + 0x7b8], 1
adc dword [eax + ebx*8 + 0x7bc], 0
add dword [eax + 0x318], 1
adc dword [eax + 0x31c], 0
cmp word [0x1d021a8], bx
jae 0x1c73eb5
add dword [edi + 0x338], 1
adc dword [edi + 0x33c], 0
add dword [edi + 0x328], 1
adc dword [edi + 0x32c], 0
shl ebx, 5
lea edi, [ebx + 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 0x1c7403b
mov eax, esi
test esi, esi
jle 0x1c7401b
pause
add eax, 0xffffffff
jne 0x1c74011
add dword [ebp - 0x20], esi
add esi, esi
cmp esi, 0x40
mov eax, 0x40
cmovge esi, eax
cmp dword [ebp - 0x20], 0x3e8
jl 0x1c74000
mov ecx, 0x1d0a4e8
call fcn.01c76bc0
mov eax, dword [edi]
mov esi, dword [eax]
test esi, esi
je 0x1c740f9
mov byte [ebp - 0x19], 0
mov ecx, dword [esi]
test ecx, ecx
je 0x1c7405f
mov edx, ecx
not edx
cmp dword [esi + 4], edx
je 0x1c74061
jmp 0x1c73edf
xor ecx, ecx
bswap ecx
mov dword [eax], ecx
add word [eax + 0xc], 1
push 0x1d0a4e8
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test esi, esi
jne 0x1c73ef8
xor esi, esi
jmp 0x1c73ef8
movdqu xmm0, xmmword [edi + 0x328]
pcmpeqd xmm1, xmm1
psubq xmm0, xmm1
movdqu xmmword [edi + 0x328], xmm0
mov ecx, edi
push ebx
call fcn.01c748f0
mov esi, dword [edi + ebx*8]
test esi, esi
jne 0x1c73ed0
jmp 0x1c73fe5
push 0x1d0b680
call fcn.01cb3187
add esp, 4
cmp dword [0x1d0b680], 0xffffffff
jne 0x1c73df7
mov dword [ebp - 0x18], 0x1000000
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x18]
mov ecx, 0x1d0a4e0
push eax
call fcn.01c6fc10
push 0x1d0b680
call fcn.01cb31fd
add esp, 4
jmp 0x1c73df7
lea eax, [ebp - 0x19]
mov ecx, edi
push eax
push dword [ebp + 8]
push 0
push 0x1d0a4e0
call fcn.01c76d00
mov esi, eax
jmp 0x1c7406a