Function at 0x1c737e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
mov eax, dword [0x1d01324]
xor eax, ebp
mov dword [ebp - 0x10], eax
test edx, edx
je 0x1c73920
mov edi, edx
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 0x1c73ccb
lea ebx, [edi*4]
mov eax, 0x20
mov ecx, 0x20
test ebx, ebx
je 0x1c7383b
bsr ecx, ebx
xor ecx, 0x1f
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 0x1c7386f
mov cl, byte [0x1d021a4]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], edi
movzx eax, word [eax + eax + 0x1ce7a0c]
cmp byte [0x1d0a4e2], 0
je 0x1c73b03
mov dword [ebp - 0x20], eax
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 0x1c73b66
cmp edi, 1
mov edx, dword [ebp - 0x20]
jbe 0x1c73b72
add dword [edi + 0x308], 1
adc dword [edi + 0x30c], 0
add dword [edi + edx*8 + 0x7b8], 1
adc dword [edi + edx*8 + 0x7bc], 0
add dword [edi + 0x318], 1
adc dword [edi + 0x31c], 0
cmp word [0x1d021a8], dx
jb 0x1c73bcd
cmp dword [edi + edx*8], 0
je 0x1c73c98
add dword [edi + 0x320], 1
adc dword [edi + 0x324], 0
mov ebx, dword [edi + edx*8]
mov eax, dword [ebx]
test eax, eax
je 0x1c7393d
mov ecx, eax
not ecx
cmp dword [ebx + 4], ecx
je 0x1c7393f
call fcn.01c56c20
mov ecx, dword [esi]
mov dword [esi], 0
test ecx, ecx
je 0x1c73931
call fcn.01c6fe20
mov dword [esi + 4], 0
jmp 0x1c73af1
xor eax, eax
bswap eax
add byte [edi + edx*8 + 4], 0xff
mov dword [edi + edx*8], eax
test ebx, ebx
je 0x1c73be9
mov ecx, dword [esi]
mov dword [esi], ebx
test ecx, ecx
je 0x1c7395e
call fcn.01c6fe20
mov ebx, dword [ebp - 0x2c]
mov dword [esi + 4], ebx
cmp ebx, 1
mov edx, 1
cmova edx, ebx
lea edi, [edx - 1]
mov eax, edx
and eax, 3
xor ecx, ecx
cmp edi, 3
jb 0x1c739be
and edx, 0xfffffffc
xor ecx, ecx
nop word cs:[eax + eax]
nop dword [eax]
mov edi, dword [esi]
mov dword [edi + ecx*4], 0
mov edi, dword [esi]
mov dword [edi + ecx*4 + 4], 0
mov edi, dword [esi]
mov dword [edi + ecx*4 + 8], 0
mov edi, dword [esi]
mov dword [edi + ecx*4 + 0xc], 0
add ecx, 4
cmp edx, ecx
jne 0x1c73990
test eax, eax
je 0x1c739e1
nop word cs:[eax + eax]
nop dword [eax]
mov edx, dword [esi]
mov dword [edx + ecx*4], 0
add ecx, 1
add eax, 0xffffffff
jne 0x1c739d0
mov edx, dword [esi + 8]
test edx, edx
je 0x1c73af1
lea edi, [esi + 8]
mov eax, ebx
shr eax, 1
and eax, 0x55555555
mov ecx, ebx
sub ecx, eax
mov eax, ecx
and eax, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, eax
mov eax, ecx
shr eax, 4
add eax, ecx
mov ecx, edx
mov edx, dword [edx + 4]
and eax, 0xf0f0f0f
imul eax, eax, 0x1010101
shr eax, 0x18
mov dword [ebp - 0x20], eax
cmp eax, 1
ja 0x1c73a37
lea eax, [ebx - 1]
and edx, eax
jmp 0x1c73a41
cmp edx, ebx
jb 0x1c73a41
mov eax, edx
xor edx, edx
div ebx
mov eax, dword [esi]
mov dword [eax + edx*4], edi
mov edi, dword [ecx]
test edi, edi
je 0x1c73af1
lea eax, [ebx - 1]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x30], esi
jmp 0x1c73a6c
mov ecx, edi
mov edi, dword [ecx]
test edi, edi
je 0x1c73af1
mov eax, dword [edi + 4]
cmp dword [ebp - 0x20], 1
ja 0x1c73a80
and eax, dword [ebp - 0x24]
jmp 0x1c73a91
cmp eax, ebx
jb 0x1c73a91
mov esi, edx
xor edx, edx
div ebx
mov eax, edx
mov edx, esi
mov esi, dword [ebp - 0x30]
cmp eax, edx
je 0x1c73a60
mov dword [ebp - 0x28], edx
mov ebx, ecx
mov ecx, dword [esi]
cmp dword [ecx + eax*4], 0
mov edx, edi
je 0x1c73adf
nop word cs:[eax + eax]
nop
mov ecx, edx
mov edx, dword [edx]
test edx, edx
je 0x1c73ac0
mov esi, dword [edi + 8]
cmp esi, dword [edx + 8]
je 0x1c73ab0
mov dword [ebx], edx
mov esi, dword [ebp - 0x30]
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov edx, dword [edx]
mov dword [ecx], edx
mov ecx, dword [esi]
mov eax, dword [ecx + eax*4]
mov ecx, ebx
mov dword [eax], edi
mov ebx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
jmp 0x1c73a62
mov dword [ecx + eax*4], ebx
mov ecx, edi
mov edx, eax
mov esi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x2c]
jmp 0x1c73a62
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb3141
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
shl eax, 5
lea ebx, [eax + 0x1d0a4f0]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x24], 0
mov edi, dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
push 0x1d0a4e8
call edi
test al, al
jne 0x1c73c4d
mov ecx, dword [ebp - 0x20]
mov eax, ecx
test ecx, ecx
jle 0x1c73b45
pause
add eax, 0xffffffff
jne 0x1c73b38
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
add eax, eax
cmp eax, 0x40
mov ecx, 0x40
cmovge eax, ecx
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x24], 0x3e8
jl 0x1c73b20
jmp 0x1c73c43
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1c738ac
je 0x1c73be9
mov byte [0x1d0a4e2], 0
push 0x1d0a4e0
call fcn.01c74450
mov edx, dword [ebp - 0x20]
add esp, 4
mov edi, eax
mov byte [0x1d0a4e2], 1
add dword [eax + 0x308], 1
adc dword [eax + 0x30c], 0
add dword [eax + edx*8 + 0x7b8], 1
adc dword [eax + edx*8 + 0x7bc], 0
add dword [eax + 0x318], 1
adc dword [eax + 0x31c], 0
cmp word [0x1d021a8], dx
jae 0x1c738f1
add dword [edi + 0x338], 1
adc dword [edi + 0x33c], 0
add dword [edi + 0x328], 1
adc dword [edi + 0x32c], 0
shl edx, 5
lea ebx, [edx + 0x1d0a4f0]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x24], 0
mov edi, dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
push 0x1d0a4e8
call edi
test al, al
jne 0x1c73c4d
mov ecx, dword [ebp - 0x20]
mov eax, ecx
test ecx, ecx
jle 0x1c73c27
pause
add eax, 0xffffffff
jne 0x1c73c1a
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
add eax, eax
cmp eax, 0x40
mov ecx, 0x40
cmovge eax, ecx
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x24], 0x3e8
jl 0x1c73c06
mov ecx, 0x1d0a4e8
call fcn.01c76bc0
mov ecx, ebx
mov eax, dword [ebx]
mov ebx, dword [eax]
test ebx, ebx
je 0x1c73da4
mov byte [ebp - 0x19], 0
mov ecx, dword [ebx]
test ecx, ecx
je 0x1c73c73
mov edx, ecx
not edx
cmp dword [ebx + 4], edx
je 0x1c73c75
jmp 0x1c7391b
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 0x1c73951
xor ebx, ebx
jmp 0x1c73951
movdqu xmm0, xmmword [edi + 0x328]
pcmpeqd xmm1, xmm1
psubq xmm0, xmm1
movdqu xmmword [edi + 0x328], xmm0
mov ecx, edi
push edx
call fcn.01c748f0
mov edx, dword [ebp - 0x20]
mov ebx, dword [edi + edx*8]
test ebx, ebx
jne 0x1c7390c
jmp 0x1c73be9
push 0x1d0b680
call fcn.01cb3187
add esp, 4
cmp dword [0x1d0b680], 0xffffffff
jne 0x1c73820
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 0x1c73820
lea eax, [ebp - 0x19]
push eax
push dword [ebp - 0x28]
push 0
push 0x1d0a4e0
call fcn.01c76d00
mov ebx, eax
jmp 0x1c73c7e