Function at 0x101a6350
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov esi, ecx
mov eax, dword [0x102b0014]
xor eax, ebp
mov dword [ebp - 0x10], eax
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov dword [ebp - 0x1c], eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x40], ecx
call fcn.101405b0
mov edi, dword [esi + 0x58]
test edi, edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x24], esi
je 0x101a63c9
mov eax, edi
shr eax, 1
and eax, 0x55555555
mov ecx, edi
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
and eax, 0xf0f0f0f
imul ecx, eax, 0x1010101
shr ecx, 0x18
cmp ecx, 1
ja 0x101a63d2
lea edx, [edi - 1]
mov ebx, dword [ebp - 0x1c]
and edx, ebx
jmp 0x101a63e4
mov dword [ebp - 0x20], 0xffffffff
jmp 0x101a6435
mov ebx, dword [ebp - 0x1c]
mov edx, ebx
cmp ebx, edi
jb 0x101a63e4
mov eax, ebx
xor edx, edx
div edi
mov ebx, dword [ebp - 0x1c]
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x20], edx
mov esi, dword [eax + edx*4]
test esi, esi
je 0x101a6435
lea edx, [edi - 1]
mov edi, dword [ebp - 0x34]
jmp 0x101a6410
and eax, edx
cmp eax, dword [ebp - 0x20]
jne 0x101a6435
cmp dword [esi + 8], ebx
je 0x101a6a3c
mov esi, dword [esi]
test esi, esi
je 0x101a6435
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x101a6407
cmp ecx, 1
jbe 0x101a6400
cmp eax, edi
jb 0x101a6402
mov ebx, edx
xor edx, edx
div edi
mov eax, edx
mov edx, ebx
mov ebx, dword [ebp - 0x1c]
jmp 0x101a6402
call fcn.101aafb0
mov esi, eax
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x18], 0xffffffff
cmp byte [eax], 2
jne 0x101a6459
mov al, byte [0x102b323c]
cmp al, 2
je 0x101a6c2a
cmp byte [esi + 2], 0
mov dword [ebp - 0x2c], esi
je 0x101a6a58
mov esi, dword [0x102b910c]
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test ebx, ebx
jne 0x101a6ab8
cmp edi, 2
jb 0x101a6ac8
add dword [edi + 0x310], 1
adc dword [edi + 0x314], 0
mov ebx, dword [edi + 0x40]
test ebx, ebx
mov esi, dword [ebp - 0x24]
je 0x101a6ae8
add dword [edi + 0x318], 1
adc dword [edi + 0x31c], 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebx]
test eax, eax
je 0x101a64d5
mov ecx, eax
not ecx
cmp dword [ebx + 4], ecx
jne 0x101a6cfe
bswap eax
prefetcht0 byte [eax]
jmp 0x101a64d7
bswap eax
add byte [edi + 0x44], 0xff
mov dword [edi + 0x40], eax
movzx eax, word [edi + 0x46]
mov dword [ebp - 0x18], eax
sub dword [edi + 0x308], eax
test ebx, ebx
je 0x101a6b1b
mov eax, dword [ebp + 8]
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], eax
mov dword [ebx + 4], edx
mov dword [ebx], 0
mov eax, dword [esi + 0x60]
add eax, 1
movd xmm0, eax
lea ecx, [esi + 0x5c]
movq xmm1, qword [0x10253170]
por xmm0, xmm1
subsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
mov edi, dword [ebp - 0x34]
movd xmm2, edi
por xmm2, xmm1
subsd xmm2, xmm1
cvtsd2ss xmm2, xmm2
movss xmm1, dword [esi + 0x64]
mulss xmm2, xmm1
ucomiss xmm0, xmm2
ja 0x101a6553
test edi, edi
je 0x101a6553
mov edx, dword [ebp - 0x20]
jmp 0x101a69f4
mov dword [ebp - 0x30], ecx
divss xmm0, xmm1
cvtss2sd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
call fcn.102300f0
add esp, 8
fstp dword [ebp - 0x48]
movss xmm0, dword [ebp - 0x48]
movss xmm2, dword [0x10245cf0]
movaps xmm1, xmm0
subss xmm1, xmm2
cvttss2si eax, xmm1
xor eax, 0x80000000
cvttss2si ecx, xmm0
ucomiss xmm0, xmm2
cmovae ecx, eax
lea eax, [edi + edi]
cmp edi, 2
mov dword [ebp - 0x3c], ebx
jbe 0x101a65b4
lea edx, [edi - 1]
xor ebx, ebx
test edi, edx
setne bl
or eax, ebx
mov esi, dword [ebp - 0x24]
jmp 0x101a65b7
or eax, 1
cmp eax, ecx
cmovb eax, ecx
mov ecx, 2
cmp eax, 1
mov edx, dword [ebp - 0x1c]
je 0x101a65de
lea ecx, [eax - 1]
test eax, ecx
je 0x101a65dc
push eax
call fcn.1012aef8
mov edx, dword [ebp - 0x1c]
add esp, 4
mov ecx, eax
mov edi, dword [esi + 0x58]
cmp ecx, edi
jbe 0x101a66e8
mov esi, ecx
call fcn.101aafb0
mov ebx, eax
mov dword [ebp - 0x34], esi
lea esi, [esi*4]
mov eax, 0x20
mov ecx, 0x20
test esi, esi
je 0x101a6610
bsr ecx, esi
xor ecx, 0x1f
sub eax, ecx
mov cl, byte [eax + 0x102641e0]
mov edx, esi
shr edx, cl
and edx, 7
mov ecx, dword [eax*4 + 0x10264204]
mov dword [ebp - 0x28], esi
and ecx, esi
lea esi, [edx + eax*8]
cmp ecx, 1
sbb esi, 0xffffffff
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x18], 0xffffffff
cmp byte [ebx], 2
jne 0x101a6651
mov al, byte [0x102b323c]
cmp al, 2
je 0x101a6d52
movzx eax, word [esi + esi + 0x10263fcc]
cmp byte [ebx + 2], 0
mov dword [ebp - 0x2c], ebx
je 0x101a6bc8
mov dword [ebp - 0x20], eax
mov esi, dword [0x102b910c]
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test edi, edi
jne 0x101a6c34
cmp ebx, 2
mov edx, dword [ebp - 0x20]
jb 0x101a6c40
add dword [ebx + 0x310], 1
adc dword [ebx + 0x314], 0
cmp dx, 0x31
jae 0x101a6c57
cmp dword [ebx + edx*8], 0
je 0x101a6d1b
add dword [ebx + 0x318], 1
adc dword [ebx + 0x31c], 0
mov esi, dword [ebx + edx*8]
mov eax, dword [esi]
test eax, eax
je 0x101a67b9
mov ecx, eax
not ecx
cmp dword [esi + 4], ecx
jne 0x101a6cfe
bswap eax
prefetcht0 byte [eax]
jmp 0x101a67bb
jae 0x101a6928
mov esi, ecx
mov eax, dword [ebp - 0x24]
movss xmm0, dword [eax + 0x60]
orpd xmm0, xmmword [0x1025a6d0]
subsd xmm0, qword [0x10253170]
cvtsd2ss xmm0, xmm0
divss xmm0, dword [eax + 0x64]
cvtss2sd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
call fcn.102300f0
add esp, 8
fstp dword [ebp - 0x44]
movss xmm0, dword [ebp - 0x44]
movaps xmm1, xmm0
movss xmm2, dword [0x10245cf0]
subss xmm1, xmm2
cvttss2si ecx, xmm1
xor ecx, 0x80000000
cvttss2si eax, xmm0
ucomiss xmm0, xmm2
cmovae eax, ecx
cmp edi, 3
jb 0x101a68cc
mov ecx, edi
shr ecx, 1
and ecx, 0x55555555
mov edx, edi
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 0x101a68cc
cmp eax, 2
jb 0x101a68d5
add eax, 0xffffffff
bsr ecx, eax
xor ecx, 0x1f
neg cl
mov eax, 1
shl eax, cl
jmp 0x101a68d5
bswap eax
add byte [ebx + edx*8 + 4], 0xff
mov dword [ebx + edx*8], eax
movzx eax, word [ebx + edx*8 + 6]
mov dword [ebp - 0x18], eax
movzx eax, word [ebx + edx*8 + 6]
sub dword [ebx + 0x308], eax
test esi, esi
mov edi, dword [ebp - 0x24]
je 0x101a6c73
mov ecx, dword [edi + 0x54]
mov dword [edi + 0x54], esi
test ecx, ecx
je 0x101a67f0
call fcn.101a88b0
mov eax, dword [ebp - 0x34]
mov dword [edi + 0x58], eax
lea edx, [eax - 1]
and eax, 3
xor ecx, ecx
mov dword [ebp - 0x28], edx
cmp edx, 3
jb 0x101a6842
mov edx, dword [ebp - 0x34]
and edx, 0xfffffffc
xor ecx, ecx
nop
nop
mov esi, dword [edi + 0x54]
mov dword [esi + ecx*4], 0
mov esi, dword [edi + 0x54]
mov dword [esi + ecx*4 + 4], 0
mov esi, dword [edi + 0x54]
mov dword [esi + ecx*4 + 8], 0
mov esi, dword [edi + 0x54]
mov dword [esi + ecx*4 + 0xc], 0
add ecx, 4
cmp edx, ecx
jne 0x101a6810
test eax, eax
je 0x101a6862
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [edi + 0x54]
mov dword [edx + ecx*4], 0
add ecx, 1
add eax, 0xffffffff
jne 0x101a6850
mov esi, dword [edi + 0x5c]
test esi, esi
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x34]
je 0x101a6928
mov edi, dword [esi + 4]
mov eax, ecx
shr eax, 1
and eax, 0x55555555
mov edx, ecx
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
imul eax, eax, 0x1010101
shr eax, 0x18
mov dword [ebp - 0x20], eax
cmp eax, 1
ja 0x101a68ba
and edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
jmp 0x101a6913
cmp edi, ecx
mov eax, edi
mov edi, ecx
mov ecx, dword [ebp - 0x24]
jae 0x101a690d
mov edx, dword [ebp - 0x1c]
mov edi, eax
jmp 0x101a6916
push eax
call fcn.1012aef8
add esp, 4
mov edx, dword [ebp - 0x1c]
mov ecx, esi
cmp esi, eax
cmovb ecx, eax
cmp ecx, edi
jae 0x101a6928
test ecx, ecx
mov esi, dword [ebp - 0x24]
jne 0x101a65e9
mov ecx, dword [esi + 0x54]
mov dword [esi + 0x54], 0
test ecx, ecx
je 0x101a6904
call fcn.101a88b0
mov edx, dword [ebp - 0x1c]
mov dword [esi + 0x58], 0
jmp 0x101a6928
xor edx, edx
div edi
mov edi, edx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0x54]
mov ecx, dword [ebp - 0x30]
mov dword [eax + edi*4], ecx
mov ebx, dword [esi]
test ebx, ebx
mov ecx, dword [ebp - 0x34]
jne 0x101a6958
mov esi, dword [ebp - 0x24]
mov edi, dword [esi + 0x58]
lea eax, [edi - 1]
test edi, eax
jne 0x101a69e4
and eax, edx
mov ebx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x30]
mov edx, eax
jmp 0x101a69f4
mov esi, ebx
mov ebx, dword [esi]
test ebx, ebx
je 0x101a6928
mov eax, dword [ebx + 4]
cmp dword [ebp - 0x20], 1
ja 0x101a6970
and eax, dword [ebp - 0x28]
jmp 0x101a697d
cmp eax, ecx
jb 0x101a697d
xor edx, edx
div ecx
mov eax, edx
mov edx, dword [ebp - 0x1c]
cmp eax, edi
je 0x101a6950
mov dword [ebp - 0x2c], edi
mov ecx, dword [ebp - 0x24]
mov edi, dword [ecx + 0x54]
cmp dword [edi + eax*4], 0
mov edx, ebx
je 0x101a69d2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edi, edx
mov edx, dword [edx]
test edx, edx
je 0x101a69b0
mov ecx, dword [ebx + 8]
cmp ecx, dword [edx + 8]
je 0x101a69a0
mov dword [esi], edx
mov edx, dword [ebp - 0x24]
mov ecx, dword [edx + 0x54]
mov ecx, dword [ecx + eax*4]
mov ecx, dword [ecx]
mov dword [edi], ecx
mov ecx, dword [edx + 0x54]
mov eax, dword [ecx + eax*4]
mov dword [eax], ebx
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x2c]
jmp 0x101a6952
mov dword [edi + eax*4], esi
mov esi, ebx
mov edi, eax
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x34]
jmp 0x101a6952
cmp edx, edi
mov ebx, dword [ebp - 0x3c]
jb 0x101a69f1
mov eax, edx
xor edx, edx
div edi
mov ecx, dword [ebp - 0x30]
mov eax, dword [esi + 0x54]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x101a6a04
mov ecx, dword [eax]
mov dword [ebx], ecx
jmp 0x101a6a36
mov eax, dword [esi + 0x5c]
mov dword [ebx], eax
mov dword [esi + 0x5c], ebx
mov eax, dword [esi + 0x54]
mov dword [eax + edx*4], ecx
mov eax, dword [ebx]
test eax, eax
je 0x101a6a38
mov eax, dword [eax + 4]
lea ecx, [edi - 1]
test edi, ecx
jne 0x101a6a26
and eax, ecx
jmp 0x101a6a30
cmp eax, edi
jb 0x101a6a30
xor edx, edx
div edi
mov eax, edx
shl eax, 2
add eax, dword [esi + 0x54]
mov dword [eax], ebx
add dword [esi + 0x60], 1
mov ecx, dword [ebp - 0x40]
call fcn.101405bc
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10205d16
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret 4
lea eax, [esi + 0x110]
mov dword [ebp - 0x28], eax
mov ebx, esi
add ebx, 8
mov esi, 1
mov dword [ebp - 0x30], 0
mov edi, dword [sym.imp.kernel32.dll_TryAcquireSRWLockExclusive]
push ebx
call edi
test al, al
jne 0x101a6aae
mov ecx, esi
mov eax, esi
test esi, esi
jle 0x101a6a91
pause
add eax, 0xffffffff
jne 0x101a6a87
add dword [ebp - 0x30], esi
add esi, esi
cmp esi, 0x40
mov eax, 0x40
cmovge esi, eax
cmp dword [ebp - 0x30], 0x3e8
jl 0x101a6a78
push ebx
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx]
jmp 0x101a6b7f
push ebx
call dword [sym.imp.kernel32.dll_SetLastError]
cmp edi, 2
jae 0x101a648e
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
push eax
push 8
call fcn.101a1710
mov ebx, eax
mov esi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
test ebx, ebx
jne 0x101a64f3
jmp 0x101a6b1b
add dword [edi + 0x328], 1
adc dword [edi + 0x32c], 0
add dword [edi + 0x320], 1
adc dword [edi + 0x324], 0
mov ecx, edi
push 8
call fcn.101a3420
mov ebx, dword [edi + 0x40]
test ebx, ebx
mov edx, dword [ebp - 0x1c]
jne 0x101a64bb
mov ebx, dword [ebp - 0x2c]
lea esi, [ebx + 0x110]
add ebx, 8
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x30], 0
mov edi, dword [sym.imp.kernel32.dll_TryAcquireSRWLockExclusive]
push ebx
call edi
test al, al
jne 0x101a6b7b
mov ecx, dword [ebp - 0x28]
mov eax, ecx
test ecx, ecx
jle 0x101a6b58
pause
add eax, 0xffffffff
jne 0x101a6b4b
mov eax, dword [ebp - 0x28]
add dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x28]
add eax, eax
cmp eax, 0x40
mov ecx, 0x40
cmovge eax, ecx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x30], 0x3e8
jl 0x101a6b3b
push ebx
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov ecx, esi
mov eax, dword [esi]
mov esi, dword [eax]
test esi, esi
je 0x101a6d5c
mov byte [ebp - 0x11], 0
mov ecx, dword [esi]
test ecx, ecx
je 0x101a6ba9
mov edx, ecx
not edx
cmp dword [esi + 4], edx
jne 0x101a6cfe
mov edi, esi
bswap ecx
prefetcht0 byte [ecx]
jmp 0x101a6bad
mov edi, esi
bswap ecx
mov dword [eax], ecx
add word [eax + 0xc], 1
push ebx
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov esi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
mov ebx, edi
jmp 0x101a64f3
shl eax, 5
lea esi, [ebx + eax]
add esi, 0x10
add ebx, 8
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x38], 0
mov edi, dword [sym.imp.kernel32.dll_TryAcquireSRWLockExclusive]
push ebx
call edi
test al, al
jne 0x101a6cd6
mov ecx, dword [ebp - 0x20]
mov eax, ecx
test ecx, ecx
jle 0x101a6c09
pause
add eax, 0xffffffff
jne 0x101a6bfc
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x38], 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 - 0x38], 0x3e8
jl 0x101a6be8
jmp 0x101a6ccf
call fcn.101a12f0
jmp 0x101a6459
push edi
call dword [sym.imp.kernel32.dll_SetLastError]
jmp 0x101a6688
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
push eax
push edx
call fcn.101a1710
mov edx, dword [ebp - 0x20]
mov esi, eax
jmp 0x101a67d6
add dword [ebx + 0x330], 1
adc dword [ebx + 0x334], 0
add dword [ebx + 0x320], 1
adc dword [ebx + 0x324], 0
shl edx, 5
mov ebx, dword [ebp - 0x2c]
lea esi, [ebx + edx]
add esi, 0x10
add ebx, 8
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x38], 0
mov edi, dword [sym.imp.kernel32.dll_TryAcquireSRWLockExclusive]
push ebx
call edi
test al, al
jne 0x101a6cd6
mov ecx, dword [ebp - 0x20]
mov eax, ecx
test ecx, ecx
jle 0x101a6cb3
pause
add eax, 0xffffffff
jne 0x101a6ca6
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x38], 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 - 0x38], 0x3e8
jl 0x101a6c96
push ebx
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov ecx, esi
mov eax, dword [esi]
mov esi, dword [eax]
test esi, esi
je 0x101a6d82
mov byte [ebp - 0x11], 0
mov ecx, dword [esi]
test ecx, ecx
je 0x101a6d03
mov edx, ecx
not edx
cmp dword [esi + 4], edx
jne 0x101a6cfe
bswap ecx
prefetcht0 byte [ecx]
jmp 0x101a6d05
call fcn.1002c4d0
bswap ecx
mov dword [eax], ecx
add word [eax + 0xc], 1
push ebx
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov edi, dword [ebp - 0x24]
jmp 0x101a67e1
add dword [ebx + 0x328], 1
adc dword [ebx + 0x32c], 0
add dword [ebx + 0x320], 1
adc dword [ebx + 0x324], 0
mov ecx, ebx
push edx
call fcn.101a3420
mov edx, dword [ebp - 0x20]
mov esi, dword [ebx + edx*8]
test esi, esi
jne 0x101a66c7
jmp 0x101a6c73
call fcn.101a12f0
jmp 0x101a6651
lea eax, [ebp - 0x11]
push eax
push 0x4000
push 0x10
push 0
push dword [ebp - 0x2c]
call fcn.1002bc80
mov edi, eax
test eax, eax
jne 0x101a6bb4
xor edi, edi
jmp 0x101a6bb4
lea eax, [ebp - 0x11]
push eax
push 0x4000
push dword [ebp - 0x28]
push 0
push dword [ebp - 0x2c]
call fcn.1002bc80
mov esi, eax
test eax, eax
jne 0x101a6d0c
xor esi, esi
jmp 0x101a6d0c