Function at 0x1c73070
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov eax, dword [0x1d01324]
xor eax, ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], edx
mov eax, dword [edx]
mov dword [esp + 4], eax
mov edi, dword [ecx + 4]
test edi, edi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edi
je 0x1c730e4
mov eax, edi
shr eax, 1
and eax, 0x55555555
mov edx, edi
sub edx, eax
mov eax, edx
and eax, 0x33333333
shr edx, 2
and edx, 0x33333333
add edx, eax
mov eax, edx
shr eax, 4
add eax, edx
and eax, 0xf0f0f0f
mov edx, edi
imul edi, eax, 0x1010101
shr edi, 0x18
cmp edi, 1
ja 0x1c730ee
add edx, 0xffffffff
and edx, dword [esp + 4]
jmp 0x1c73104
mov dword [esp + 0x14], 0xffffffff
jmp 0x1c73167
mov eax, dword [esp + 4]
mov esi, eax
cmp eax, edx
mov edx, eax
jb 0x1c73104
mov eax, dword [esp + 4]
xor edx, edx
div dword [esp + 0xc]
mov eax, dword [ecx]
mov esi, dword [eax + edx*4]
test esi, esi
mov dword [esp + 0x14], edx
je 0x1c73163
mov eax, dword [esp + 0xc]
add eax, 0xffffffff
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 4]
mov ebx, dword [esp + 0xc]
jmp 0x1c73141
and eax, dword [esp + 0x10]
cmp eax, edx
jne 0x1c73163
cmp dword [esi + 8], ecx
je 0x1c7346f
mov esi, dword [esi]
test esi, esi
je 0x1c73163
mov eax, dword [esi + 4]
cmp eax, ecx
je 0x1c73138
cmp edi, 1
jbe 0x1c73130
cmp eax, ebx
jb 0x1c73134
xor edx, edx
div ebx
mov eax, edx
mov edx, dword [esp + 0x14]
jmp 0x1c73134
mov edi, dword [esp + 0xc]
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 0x1c7369c
mov byte [esp + 0x30], 0
cmp byte [0x1d0a4e0], 2
jne 0x1c7319b
mov al, byte [0x1d021a4]
cmp byte [0x1d0a4e2], 0
je 0x1c73487
mov ebx, dword [0x1d0b694]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test esi, esi
jne 0x1c734da
cmp ebx, 1
jbe 0x1c734ea
add dword [ebx + 0x308], 1
adc dword [ebx + 0x30c], 0
add dword [ebx + 0x888], 1
adc dword [ebx + 0x88c], 0
add dword [ebx + 0x318], 1
adc dword [ebx + 0x31c], 0
cmp word [0x1d021a8], 0x19
mov edx, dword [esp + 0x14]
jbe 0x1c7357d
mov esi, dword [ebx + 0xd0]
test esi, esi
je 0x1c73619
add dword [ebx + 0x320], 1
adc dword [ebx + 0x324], 0
mov eax, dword [esi]
test eax, eax
je 0x1c73240
mov ecx, eax
not ecx
cmp dword [esi + 4], ecx
mov ecx, dword [esp + 4]
je 0x1c73246
call fcn.01c56c20
xor eax, eax
mov ecx, dword [esp + 4]
bswap eax
add byte [ebx + 0xd4], 0xff
mov dword [ebx + 0xd0], eax
mov ebx, dword [esp + 8]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov dword [esi + 8], eax
pxor xmm0, xmm0
movdqu xmmword [esi + 0x10], xmm0
movdqu xmmword [esi + 0x20], xmm0
movdqu xmmword [esi + 0x30], xmm0
movdqu xmmword [esi + 0x40], xmm0
mov dword [esi + 4], ecx
mov dword [esi], 0
mov eax, dword [ebx + 0xc]
add eax, 1
movq xmm1, qword [0x1ce0410]
movd xmm0, eax
por xmm0, xmm1
subsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
movd xmm2, edi
por xmm2, xmm1
subsd xmm2, xmm1
cvtsd2ss xmm2, xmm2
movss xmm1, dword [ebx + 0x10]
mulss xmm2, xmm1
ucomiss xmm0, xmm2
ja 0x1c732c7
test edi, edi
jne 0x1c73427
divss xmm0, xmm1
cvtss2sd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
call fcn.01ccb230
add esp, 8
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fisttp qword [esp + 0x20]
mov ecx, dword [esp + 0x20]
lea eax, [edi + edi]
cmp edi, 2
jbe 0x1c73305
lea edx, [edi - 1]
xor ebx, ebx
test edi, edx
setne bl
or eax, ebx
jmp 0x1c73308
or eax, 1
cmp eax, ecx
cmovb eax, ecx
mov edi, 2
cmp eax, 1
je 0x1c73329
lea ecx, [eax - 1]
test eax, ecx
je 0x1c73327
push eax
call fcn.01c27cf0
add esp, 4
mov edi, eax
mov ebx, dword [esp + 8]
mov eax, dword [ebx + 4]
cmp edi, eax
ja 0x1c733fe
mov ecx, dword [esp + 4]
jae 0x1c7340b
movss xmm0, dword [ebx + 0xc]
orpd xmm0, xmmword [0x1ce0400]
subsd xmm0, qword [0x1ce0410]
cvtsd2ss xmm0, xmm0
divss xmm0, dword [ebx + 0x10]
cvtss2sd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
mov ebx, eax
call fcn.01ccb230
add esp, 8
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fisttp qword [esp + 0x18]
mov eax, dword [esp + 0x18]
cmp ebx, 3
jb 0x1c733e2
mov ecx, ebx
shr ecx, 1
and ecx, 0x55555555
mov edx, ebx
sub edx, ecx
mov ecx, edx
and ecx, 0x33333333
shr edx, 2
and edx, 0x33333333
add edx, ecx
mov ecx, edx
shr ecx, 4
add ecx, edx
and ecx, 0xf0f0f0f
imul ecx, ecx, 0x1010101
shr ecx, 0x18
cmp ecx, 1
ja 0x1c733e2
mov edx, ebx
cmp eax, 2
jb 0x1c733ed
add eax, 0xffffffff
bsr ecx, eax
xor ecx, 0x1f
neg cl
mov eax, 1
shl eax, cl
jmp 0x1c733ed
push eax
call fcn.01c27cf0
mov edx, ebx
add esp, 4
mov ecx, dword [esp + 4]
cmp edi, eax
cmovb edi, eax
cmp edi, edx
mov ebx, dword [esp + 8]
jae 0x1c7340b
mov ecx, ebx
mov edx, edi
call fcn.01c737e0
mov ecx, dword [esp + 4]
mov edi, dword [ebx + 4]
lea edx, [edi - 1]
test edi, edx
jne 0x1c73419
and edx, ecx
jmp 0x1c73427
cmp ecx, edi
jae 0x1c73421
mov edx, ecx
jmp 0x1c73427
mov eax, ecx
xor edx, edx
div edi
mov eax, dword [ebx]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x1c73436
mov ecx, dword [eax]
mov dword [esi], ecx
jmp 0x1c73469
lea eax, [ebx + 8]
mov ecx, dword [ebx + 8]
mov dword [esi], ecx
mov dword [ebx + 8], esi
mov ecx, dword [ebx]
mov dword [ecx + edx*4], eax
mov eax, dword [esi]
test eax, eax
je 0x1c7346b
mov eax, dword [eax + 4]
lea ecx, [edi - 1]
test edi, ecx
jne 0x1c7345a
and eax, ecx
jmp 0x1c73464
cmp eax, edi
jb 0x1c73464
xor edx, edx
div edi
mov eax, edx
shl eax, 2
add eax, dword [ebx]
mov dword [eax], esi
add dword [ebx + 0xc], 1
add esi, 0x10
mov ecx, dword [esp + 0x38]
xor ecx, ebp
call fcn.01cb3141
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, 1
mov dword [esp + 0x10], 0
mov ebx, dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
push 0x1d0a4e8
call ebx
test al, al
jne 0x1c735ed
mov eax, esi
test esi, esi
jle 0x1c734ba
pause
add eax, 0xffffffff
jne 0x1c734af
add dword [esp + 0x10], esi
add esi, esi
cmp esi, 0x40
mov eax, 0x40
cmovge esi, eax
cmp dword [esp + 0x10], 0x3e8
mov edi, dword [esp + 0xc]
jl 0x1c7349a
jmp 0x1c735e3
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp ebx, 1
ja 0x1c731d0
je 0x1c73599
mov byte [0x1d0a4e2], 0
push 0x1d0a4e0
call fcn.01c74450
add esp, 4
mov ebx, eax
mov byte [0x1d0a4e2], 1
add dword [eax + 0x308], 1
adc dword [eax + 0x30c], 0
add dword [eax + 0x888], 1
adc dword [eax + 0x88c], 0
add dword [eax + 0x318], 1
adc dword [eax + 0x31c], 0
cmp word [0x1d021a8], 0x19
jbe 0x1c7357d
mov esi, dword [ebx + 0xd0]
test esi, esi
je 0x1c7379c
add dword [ebx + 0x320], 1
adc dword [ebx + 0x324], 0
mov edx, dword [esp + 0x14]
mov eax, dword [esi]
test eax, eax
je 0x1c7367e
mov ecx, eax
not ecx
cmp dword [esi + 4], ecx
je 0x1c73680
jmp 0x1c7323b
add dword [ebx + 0x338], 1
adc dword [ebx + 0x33c], 0
add dword [ebx + 0x328], 1
adc dword [ebx + 0x32c], 0
mov esi, 1
mov dword [esp + 0x10], 0
mov ebx, dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
push 0x1d0a4e8
call ebx
test al, al
jne 0x1c735ed
mov eax, esi
test esi, esi
jle 0x1c735c8
pause
add eax, 0xffffffff
jne 0x1c735bd
add dword [esp + 0x10], esi
add esi, esi
cmp esi, 0x40
mov eax, 0x40
cmovge esi, eax
cmp dword [esp + 0x10], 0x3e8
mov edi, dword [esp + 0xc]
jl 0x1c735ac
mov ecx, 0x1d0a4e8
call fcn.01c76bc0
mov eax, dword [0x1d0a830]
mov esi, dword [eax]
test esi, esi
je 0x1c73779
mov byte [esp + 0x30], 0
mov ecx, dword [esi]
test ecx, ecx
mov ebx, dword [esp + 8]
je 0x1c73651
mov edx, ecx
not edx
cmp dword [esi + 4], edx
je 0x1c73653
jmp 0x1c7323b
movdqu xmm0, xmmword [ebx + 0x328]
pcmpeqd xmm1, xmm1
psubq xmm0, xmm1
movdqu xmmword [ebx + 0x328], xmm0
mov ecx, ebx
push 0x1a
call fcn.01c748f0
mov edx, dword [esp + 0x14]
mov esi, dword [ebx + 0xd0]
test esi, esi
jne 0x1c73228
jmp 0x1c73599
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
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x14]
jne 0x1c73259
xor esi, esi
jmp 0x1c73259
xor eax, eax
bswap eax
add byte [ebx + 0xd4], 0xff
mov dword [ebx + 0xd0], eax
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 4]
jmp 0x1c73259
push 0x1d0b680
call fcn.01cb3187
add esp, 4
cmp dword [0x1d0b680], 0xffffffff
jne 0x1c73188
mov dword [esp + 0x30], 0x1000000
mov byte [esp + 0x34], 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 [esp + 0x3c]
mov byte [esp + 4], al
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov ecx, 0x1d0a4e0
call fcn.01c74c60
push 0x1d0b680
call fcn.01cb31fd
add esp, 4
jmp 0x1c73188
lea eax, [esp + 0x30]
mov ecx, 0x1d0a830
push eax
push 0x50
push 0
push 0x1d0a4e0
call fcn.01c76d00
mov esi, eax
mov ebx, dword [esp + 8]
jmp 0x1c7365c
movdqu xmm0, xmmword [ebx + 0x328]
pcmpeqd xmm1, xmm1
psubq xmm0, xmm1
movdqu xmmword [ebx + 0x328], xmm0
mov ecx, ebx
push 0x1a
call fcn.01c748f0
mov esi, dword [ebx + 0xd0]
test esi, esi
mov edx, dword [esp + 0x14]
jne 0x1c73561
jmp 0x1c73599