Function at 0x10100c20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
test byte [ecx + 0x1d], 4
jne 0x10100c50
push dword [ecx + 0x170]
call sym.nss3.dll_PR_EnterMonitor
mov ecx, dword [ebp + 8]
add esp, 4
movzx esi, word [esi + 1]
rol si, 8
movzx edi, si
mov ebx, 0xffffd01c
cmp edi, 0x300
jb 0x10100d8f
xor eax, eax
mov dword [ecx + 0x454], eax
mov dword [ecx + 0x45c], eax
mov dword [ecx + 0x46c], eax
mov eax, dword [ecx + 0x478]
test eax, eax
je 0x10100ca2
push 1
push eax
call sym.nss3.dll_PK11_DestroyContext
mov ecx, dword [ebp + 8]
add esp, 8
mov dword [ecx + 0x478], 0
mov eax, dword [ecx + 0x47c]
test eax, eax
je 0x10100cc4
push 1
push eax
call sym.nss3.dll_PK11_DestroyContext
mov ecx, dword [ebp + 8]
add esp, 8
mov dword [ecx + 0x47c], 0
mov eax, dword [ecx + 0x480]
test eax, eax
je 0x10100ce6
push 1
push eax
call sym.nss3.dll_PK11_DestroyContext
mov ecx, dword [ebp + 8]
add esp, 8
mov dword [ecx + 0x480], 0
mov eax, dword [ecx + 0x484]
test eax, eax
je 0x10100d08
push 1
push eax
call sym.nss3.dll_PK11_DestroyContext
mov ecx, dword [ebp + 8]
add esp, 8
mov dword [ecx + 0x484], 0
cmp dword [ecx + 0x450], 1
jne 0x10100d3b
mov eax, dword [ebp + 0xc]
movzx edx, word [eax + 3]
movzx ebx, word [eax + 5]
mov dword [ebp - 0x20], ebx
movzx ebx, word [eax + 7]
mov word [ecx + 0x5a], di
mov eax, 0x2f
cmp edi, 0x303
jbe 0x10100d47
mov ebx, 0xffffd01c
jmp 0x10100d80
mov eax, 0xa
mov ebx, 0xffffd02a
jmp 0x10100d80
mov dword [ebp - 0x24], ebx
mov ebx, 0xffffd009
cmp dword [ecx + 0x614], 0
mov eax, 0xffffd009
je 0x10100dc5
push 0
push eax
call sym.nss3.dll_PR_SetError
mov ecx, dword [ebp + 8]
add esp, 8
cmp edi, 0x300
mov eax, 0x46
mov edx, 0x28
cmova edx, eax
mov eax, edx
push eax
push 2
push ecx
call fcn.100fa900
mov ecx, dword [ebp + 8]
add esp, 0xc
test byte [ecx + 0x1d], 4
jne 0x10100da3
push dword [ecx + 0x170]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
push 0
push ebx
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
dec edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x1c], edx
movzx edx, word [ecx + 0x24]
test dx, dx
je 0x10100e14
mov eax, 0xffffd009
cmp dx, si
mov edx, dword [ebp - 0x1c]
ja 0x10100d5d
movzx eax, word [ecx + 0x26]
cmp ax, si
cmovbe esi, eax
cmp dword [ecx + 0x38], 0
je 0x10100e1e
mov eax, 0xffffd009
cmp word [ecx + 0x58], si
jne 0x10100d5d
mov word [ecx + 0x58], si
or byte [ecx + 0x540], 0x11
mov ebx, dword [ebp - 0x24]
jmp 0x10100ec2
mov eax, 0xffffd014
jmp 0x10100d5d
mov word [ecx + 0x58], si
or byte [ecx + 0x540], 0x11
test byte [ecx + 0x1d], 4
jne 0x10100e44
push dword [ecx + 0x174]
call fcn.100dab60
mov ecx, dword [ebp + 8]
add esp, 4
movzx esi, word [ecx + 0x58]
mov eax, dword [ecx + 0x3b8]
mov word [eax + 0x10], si
movzx edi, word [ecx + 0x58]
mov edx, dword [ecx + 0x9f8]
cmp edi, 0x304
mov ebx, dword [ebp - 0x24]
jb 0x10100e75
cmp edx, 1
mov edx, 0xfefd
mov edi, 0x303
cmove edi, edx
jmp 0x10100e9e
cmp edx, 1
jne 0x10100e9e
movzx ecx, di
cmp ecx, 0x303
mov edx, 0xfefd
mov esi, 0xffff
cmove esi, edx
cmp ecx, 0x302
mov edi, 0xfeff
cmovne edi, esi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov word [eax + 0x12], di
test byte [ecx + 0x1d], 4
jne 0x10100ec2
push dword [ecx + 0x174]
call fcn.100dac50
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
add esp, 4
shl edx, 0x10
bswap edx
mov edi, dword [ebp - 0x20]
shl edi, 0x10
bswap edi
shl ebx, 0x10
bswap ebx
movzx eax, byte [ebp + 0x14]
add eax, edx
add eax, edi
add eax, ebx
add eax, 9
cmp eax, dword [ebp + 0x10]
jne 0x10100fdb
mov dword [ebp - 0x1c], edx
lea eax, [ebx - 0x10]
mov esi, ebx
mov ebx, 0xffffd01c
cmp eax, 0x10
mov eax, 0x2f
ja 0x10100d80
mov eax, dword [ebp + 0xc]
add eax, 9
add eax, dword [ebp - 0x1c]
add eax, edi
lea edx, [ecx + 0x410]
xorps xmm0, xmm0
movups xmmword [ecx + 0x420], xmm0
movups xmmword [ecx + 0x410], xmm0
sub edx, esi
add edx, 0x20
push esi
push eax
push edx
mov esi, ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, esi
call fcn.100fa0e0
test eax, eax
je 0x10101146
xor edx, edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x20], edx
lea esi, [ecx + edx*4]
add esi, 0x210
movzx eax, word [ecx + 0x58]
mov word [ebp - 0x14], ax
mov word [ebp - 0x12], ax
mov eax, ecx
movzx edx, byte [ecx + 0x3e0]
mov ecx, esi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.100fa5b0
add esp, 8
cmp dword [ebp - 0x1c], 3
jb 0x10100fbc
test eax, eax
je 0x10100fbc
movzx eax, word [esi]
movzx ecx, ax
mov edx, 5
mov esi, dword [ebp + 0xc]
movzx edi, byte [esi + edx + 4]
shl edi, 0x10
movzx ebx, byte [esi + edx + 5]
shl ebx, 8
or ebx, edi
movzx edi, byte [esi + edx + 6]
or edi, ebx
cmp edi, ecx
je 0x10100fea
cmp edx, dword [ebp - 0x1c]
jae 0x10100fbc
add edx, 3
jmp 0x10100f92
mov edx, dword [ebp - 0x20]
inc edx
mov eax, 0x28
mov ebx, 0xffffd002
cmp edx, 0x47
mov ecx, dword [ebp + 8]
jne 0x10100f4d
jmp 0x10100d80
mov ebx, 0xffffd01c
mov eax, 0x2f
jmp 0x10100d80
mov edx, dword [ebp + 8]
mov word [edx + 0x490], ax
xor ecx, ecx
mov esi, dword [ebp + 0xc]
cmp word [ecx + 0x101b00b0], ax
je 0x10101035
add ecx, 0x14
cmp ecx, 0x5a0
jne 0x10100ff9
xor esi, esi
push esi
push 0xffffd016
mov edi, edx
call sym.nss3.dll_PR_SetError
add esp, 8
mov dword [edi + 0x494], esi
push esi
push 0xffffe001
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x10101068
lea eax, [ecx + 0x101b00b0]
mov dword [edx + 0x494], eax
mov eax, dword [eax + 0xc]
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x101b0650]
mov dword [edx + 0x48c], eax
or byte [edx + 0x540], 2
push edx
call fcn.100fcd30
add esp, 4
test eax, eax
je 0x10101096
cmp dword [0x101de200], 0
je 0x101012aa
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10101259
mov ebx, dword [eax + 0x28]
mov eax, 0x50
jmp 0x1010116f
mov ecx, dword [ebp + 8]
movzx eax, word [ecx + 0x26]
cmp ax, word [ecx + 0x5a]
jbe 0x101010c8
mov eax, 5
movzx edx, word [esi + eax + 5]
shl edx, 0x10
bswap edx
cmp edx, 0x5600
je 0x10101177
cmp eax, dword [ebp - 0x1c]
jae 0x101010c8
add eax, 3
jmp 0x101010a8
mov eax, 5
movzx ecx, byte [esi + eax + 4]
shl ecx, 0x10
movzx edx, byte [esi + eax + 5]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + eax + 6]
or ecx, edx
cmp ecx, 0xff
je 0x101010f8
cmp eax, dword [ebp - 0x1c]
jae 0x1010111a
add eax, 3
jmp 0x101010cd
mov dword [ebp - 0x14], 0x101b0894
lea eax, [ebp - 0x18]
mov dword [eax], 5
push 1
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call fcn.1010bf60
add esp, 0x10
mov ecx, dword [ebp + 8]
cmp word [ecx + 0x1c], 0
jns 0x1010113d
push 0xff01
push ecx
call fcn.1010ba70
mov ecx, dword [ebp + 8]
add esp, 8
test eax, eax
je 0x10101225
call fcn.10100870
test eax, eax
je 0x10101186
cmp dword [0x101de200], 0
je 0x101012b4
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10101274
mov ebx, dword [eax + 0x28]
mov eax, 0x28
mov ecx, dword [ebp + 8]
jmp 0x10100d80
mov eax, 0x56
mov ebx, 0xffffd083
jmp 0x10100d80
lock inc dword [0x101df63c]
push 1
push dword [ebp + 8]
call fcn.100fee40
add esp, 8
test eax, eax
je 0x101011fd
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc4], eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
call fcn.100fd000
add esp, 0x10
test eax, eax
jne 0x101011fd
mov eax, dword [ebp + 8]
test byte [eax + 0x1d], 4
jne 0x101011d6
mov eax, dword [ebp + 8]
push dword [eax + 0x168]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.101012d0
mov edi, eax
test byte [esi + 0x1d], 4
jne 0x101011f9
mov eax, dword [ebp + 8]
push dword [eax + 0x168]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
test edi, edi
je 0x10101234
cmp dword [0x101de200], 0
je 0x101012be
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1010128f
mov ebx, dword [eax + 0x28]
mov ecx, dword [ebp + 8]
jmp 0x10100d8f
mov eax, 0x28
mov ebx, 0xffffd071
jmp 0x10100d80
xor edi, edi
mov eax, dword [ebp + 8]
test byte [eax + 0x1d], 4
jne 0x10100db1
mov eax, dword [ebp + 8]
push dword [eax + 0x170]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
jmp 0x10100db1
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x10101089
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x10101167
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x1010121a
call fcn.100745e0
jmp 0x10101075
call fcn.100745e0
jmp 0x10101153
call fcn.100745e0
jmp 0x1010120a