Function at 0x100fbd00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x80
mov edx, dword [ebp + 8]
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [edx + 0x69c], 0
je 0x100fbd43
xor esi, esi
dec esi
cmp dword [ebp + 0x10], 0x15
je 0x100fc60c
push 0
push 0xffffd0ac
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100fc60c
mov ecx, dword [edx + 0xc4]
mov esi, edx
call fcn.100fc630
test eax, eax
je 0x100fbde4
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
cmp dword [esi + 0x148], 0
mov edx, esi
je 0x100fbdf8
mov eax, dword [edx + 0x1c]
bt eax, 0xa
jb 0x100fbd8a
push dword [edx + 0x174]
call fcn.100da9f0
mov edx, dword [ebp + 8]
add esp, 4
mov eax, dword [edx + 0x1c]
mov ecx, dword [edx + 0x3b8]
movzx esi, word [ecx + 0x4c]
bt eax, 0xa
jb 0x100fbdab
push dword [edx + 0x174]
call fcn.100daad0
mov edx, dword [ebp + 8]
add esp, 4
mov edi, dword [edx]
mov ecx, dword [edx + 0x148]
mov ebx, dword [edx + 0x14c]
call dword [section..00cfg]
movzx eax, si
push ebx
mov ebx, dword [ebp + 0x18]
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call ecx
add esp, 0x18
xor esi, esi
cmp eax, 1
sbb esi, esi
not esi
or esi, ebx
jmp 0x100fc60c
push 0
push 0xffffd053
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100fc609
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x100fbe05
mov edi, dword [edx + 0x3b8]
test ebx, ebx
jle 0x100fc5db
mov ecx, dword [ebp + 0x1c]
lea esi, [edx + 0x64]
mov dword [ebp - 0x68], esi
lea esi, [edi + 0x34]
mov dword [ebp - 0x88], esi
lea esi, [edx + 0x1f8]
mov dword [ebp - 0x84], esi
xor esi, esi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], eax
test byte [edx + 0x1d], 4
jne 0x100fbe4d
push dword [edx + 0x174]
call fcn.100da9f0
mov edx, dword [ebp + 8]
add esp, 4
movzx eax, word [edi + 0xf4]
cmp ebx, eax
cmovb eax, ebx
mov dword [ebp - 0x6c], eax
add eax, 0x64
movzx ecx, word [edi + 0x10]
cmp ecx, 0x302
mov dword [ebp - 0x8c], ebx
jb 0x100fbe7d
mov ecx, dword [edi + 0x14]
cmp dword [ecx + 0x10], 1
jne 0x100fbe7d
add eax, dword [ecx + 0x14]
mov ecx, dword [edx + 0x6c]
sub ecx, dword [edx + 0x68]
cmp eax, ecx
jbe 0x100fbea5
push eax
push dword [ebp - 0x68]
call fcn.10111390
mov edx, dword [ebp + 8]
add esp, 8
xor edi, edi
mov ebx, 0
test eax, eax
jne 0x100fbf70
mov edi, dword [ebp - 0x60]
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x58]
cmp ecx, dword [eax + 0x30]
mov ecx, dword [edi + 0x5c]
sbb ecx, dword [eax + 0x34]
jae 0x100fbf5a
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x68]
push dword [ebp + 0x10]
push edi
push edx
call fcn.100fbc40
add esp, 0x14
test eax, eax
jne 0x100fbf69
cmp dword [ebp - 0x54], 0
je 0x100fbef4
lea eax, [ebp - 0x58]
push eax
push 2
push dword [ebp - 0x68]
call fcn.10111770
add esp, 0xc
test eax, eax
jne 0x100fbf69
movzx eax, word [edi + 0x10]
cmp eax, 0x304
jb 0x100fc0f0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x68]
mov ebx, dword [eax + 0x64]
mov dword [ebp - 0x5c], ecx
add ebx, ecx
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
push dword [ebp + 0x10]
push edi
push eax
call fcn.10125840
add esp, 0x18
test eax, eax
jne 0x100fbf69
mov eax, dword [ebp + 8]
cmp dword [eax + 0x9f8], 1
jne 0x100fc55f
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x68]
sub eax, dword [ebp - 0x5c]
push eax
push ebx
push dword [ecx + 0x64]
push edi
push ecx
call fcn.100f8460
add esp, 0x14
mov ecx, eax
jmp 0x100fc557
push 0
push 0xffffd099
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
xor ebx, ebx
mov edx, dword [ebp + 8]
test byte [edx + 0x1d], 4
jne 0x100fbf87
push dword [edx + 0x174]
call fcn.100daad0
mov edx, dword [ebp + 8]
add esp, 4
test bl, bl
mov ecx, dword [ebp - 0x74]
je 0x100fc602
mov ebx, ecx
and ebx, 0x40000000
mov eax, dword [edx + 0x1fc]
or eax, ebx
je 0x100fc034
push dword [edx + 0x68]
push dword [edx + 0x64]
push dword [ebp - 0x84]
call fcn.10111410
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp + 8]
add esp, 0xc
test eax, eax
jne 0x100fc602
test ebx, ebx
jne 0x100fc0ca
mov dword [edx + 0x40], 1
push edx
mov ebx, edx
call fcn.10115800
add esp, 4
test eax, eax
jns 0x100fc019
cmp dword [0x101de200], 0
je 0x100fc5d1
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100fc5ac
cmp dword [eax + 0x28], 0xffffe892
mov ebx, dword [ebp + 8]
jne 0x100fc5df
mov ecx, dword [ebp - 0x74]
mov eax, ecx
or eax, 0x40000000
cmp dword [ebx + 0x1fc], 0
cmovne ecx, eax
mov edx, ebx
jmp 0x100fc0ca
mov dword [edx + 0x40], 1
mov eax, ecx
and eax, 0x80ffffff
push eax
push dword [edx + 0x68]
push dword [edx + 0x64]
push edx
mov ebx, edx
call fcn.10111050
add esp, 0x10
test eax, eax
jns 0x100fc08d
cmp dword [0x101de200], 0
je 0x100fc5c7
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ecx, eax
test eax, eax
je 0x100fc58f
xor eax, eax
cmp dword [ecx + 0x28], 0xffffe892
mov ebx, dword [ebp + 8]
jne 0x100fc5df
mov ecx, dword [ebx + 0x68]
sub ecx, eax
mov edx, ebx
jbe 0x100fc0c7
cmp dword [edx + 0x9f8], 1
je 0x100fc5f0
mov edx, dword [ebp - 0x68]
add eax, dword [edx]
push ecx
push eax
push dword [ebp - 0x84]
call fcn.10111410
add esp, 0xc
test eax, eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x74]
je 0x100fc0ca
jmp 0x100fc602
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x70]
add eax, edi
mov ebx, dword [ebp - 0x8c]
sub ebx, edi
mov dword [edx + 0x68], 0
add esi, edi
test ebx, ebx
mov edi, dword [ebp - 0x60]
jg 0x100fbe30
jmp 0x100fc60c
mov edx, dword [ebp + 8]
cmp dword [edx + 0x9f8], 1
sete byte [ebp - 0x5c]
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
lea ebx, [ebp - 0x1d]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], 0xd
mov dword [ebp - 0x40], 1
movzx ecx, ax
cmp ecx, 0x302
jb 0x100fc1ca
mov ecx, dword [edi + 0x14]
cmp dword [ecx + 0x10], 1
jne 0x100fc1ca
mov ebx, dword [ecx + 0x14]
mov eax, dword [edx + 0x68]
mov ecx, dword [edx + 0x6c]
sub ecx, eax
cmp ebx, ecx
jbe 0x100fc151
push 0
push 0xffffe001
jmp 0x100fc2ef
mov ecx, dword [ebp - 0x68]
add eax, dword [ecx]
push ebx
push eax
call sym.nss3.dll_PK11_GenerateRandom
add esp, 8
test eax, eax
je 0x100fc17a
push 0xffffd041
mov ebx, eax
call fcn.10111ec0
mov ecx, ebx
add esp, 4
jmp 0x100fc557
mov eax, dword [ebp + 8]
mov edx, edi
mov edi, dword [eax + 0x64]
add edi, dword [eax + 0x68]
mov ecx, dword [edx + 0x1c]
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x64], eax
call dword [section..00cfg]
push ebx
push edi
push ebx
lea eax, [ebp - 0x50]
push eax
push edi
push dword [ebp - 0x64]
call ecx
add esp, 0x18
test eax, eax
jne 0x100fc500
cmp dword [ebp - 0x50], ebx
jne 0x100fc500
push 0
push ebx
push dword [ebp - 0x68]
call fcn.10111770
add esp, 0xc
mov eax, dword [ebp - 0x60]
movzx eax, word [eax + 0x10]
xor edx, edx
mov cl, byte [ebp - 0x5c]
mov dl, cl
mov edi, edx
mov ecx, dword [ebp - 0x60]
movzx ecx, word [ecx + 0x12]
mov dword [ebp - 0x5c], ecx
movzx ecx, ax
xor eax, eax
cmp ecx, 0x300
seta al
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0x58]
mov ecx, dword [ebp - 0x60]
movzx ecx, word [ecx + 0x4c]
lea ebx, [ebp - 0x4c]
push ebx
mov ebx, dword [ebp - 0x6c]
push ebx
mov dword [ebp - 0x64], edi
push edi
push dword [ebp - 0x5c]
mov edi, dword [ebp - 0x60]
push eax
push dword [ebp + 0x10]
push dword [edi + 0x5c]
call fcn.100fbba0
add esp, 0x1c
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx + 0x10]
cmp eax, 2
jne 0x100fc2ff
mov edx, dword [ecx + 0x1c]
mov eax, dword [ecx + 0x20]
mov dword [ebp - 0x5c], eax
add eax, ebx
mov dword [ebp - 0x80], edx
add eax, edx
mov edx, dword [ebp + 8]
mov edi, dword [edx + 0x6c]
sub edi, dword [edx + 0x68]
mov edx, 0xffffe001
cmp eax, edi
mov edi, dword [ebp - 0x60]
ja 0x100fc2ec
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x78], edx
lea eax, [edx - 8]
xor ecx, ecx
cmp dword [ebp - 0x5c], 0
sete cl
cmovne eax, edx
lea ecx, [ecx + ecx + 2]
mov dword [ebp - 0x7c], ecx
movzx ecx, word [edi + 0x4c]
push ecx
push edx
push eax
push dword [ebp - 0x88]
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x64]
call fcn.10124fb0
add esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x68]
mov edx, dword [edx + 0x6c]
mov ebx, dword [ebp - 0x5c]
sub edx, ebx
sub edx, ecx
mov edi, dword [ebp + 8]
add ecx, dword [edi + 0x64]
mov edi, eax
add ecx, ebx
mov eax, dword [ebp - 0x78]
add ebx, eax
mov eax, edi
shl eax, 3
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
push dword [ebp - 0x80]
push edx
lea edx, [ebp - 0x50]
push edx
push ecx
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
xor ecx, ecx
push ecx
push ecx
push ebx
mov edi, dword [ebp - 0x60]
lea edx, [ebp - 0x38]
push edx
push edx
push eax
push dword [ebp - 0x7c]
push ecx
push dword [edi + 0x20]
call fcn.10125010
add esp, 0x44
mov edx, 0xffffd046
test eax, eax
je 0x100fc517
push 0
push edx
call sym.nss3.dll_PR_SetError
add esp, 8
xor ecx, ecx
dec ecx
jmp 0x100fc557
mov ecx, dword [ecx + 0x18]
mov dword [ebp - 0x80], ecx
mov ecx, dword [edi + 0x18]
cmp dword [ecx], 0
mov edx, dword [ebp + 8]
je 0x100fc39b
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x64], eax
mov eax, ebx
mov ebx, dword [edx + 0x64]
add ebx, dword [edx + 0x68]
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x78], edx
add ebx, eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x5c], eax
mov edi, dword [edi + 0x30]
push edi
call sym.nss3.dll_PK11_DigestBegin
add esp, 4
mov dword [ebp - 0x7c], eax
push dword [ebp - 0x78]
push dword [ebp - 0x64]
push edi
call sym.nss3.dll_PK11_DigestOp
add esp, 0xc
or eax, dword [ebp - 0x7c]
mov dword [ebp - 0x64], eax
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
push edi
call sym.nss3.dll_PK11_DigestOp
add esp, 0xc
or eax, dword [ebp - 0x64]
mov dword [ebp - 0x64], eax
push dword [ebp - 0x5c]
lea eax, [ebp - 0x3c]
push eax
push ebx
push edi
call sym.nss3.dll_PK11_DigestFinal
add esp, 0x10
or eax, dword [ebp - 0x64]
je 0x100fc3a6
mov edi, 0xffffd04b
push edi
call fcn.10111ec0
add esp, 4
push edi
call fcn.10111ec0
add esp, 4
jmp 0x100fc50f
mov dword [ebp - 0x3c], 0
xor ecx, ecx
jmp 0x100fc3b5
mov ecx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x60]
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0x10]
mov ebx, dword [ebp - 0x6c]
mov dword [ebp - 0x64], 0
cmp eax, 1
jne 0x100fc414
mov dword [ebp - 0x5c], ecx
add ecx, ebx
mov eax, ebx
xor edx, edx
mov ebx, dword [ebp - 0x80]
div ebx
mov dword [ebp - 0x64], edx
dec ebx
mov eax, ecx
not eax
and eax, ebx
lea ebx, [eax + 1]
test eax, eax
js 0x100fc40c
mov edx, ebx
test ebx, ebx
jle 0x100fc3e9
xor edx, edx
inc edx
add ecx, edx
mov edi, dword [ebp + 8]
add ecx, dword [edi + 0x68]
mov edi, dword [edi + 0x64]
add ecx, edi
dec ecx
mov edi, eax
sub edi, edx
add edi, 2
push edi
push eax
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edi, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
add ecx, ebx
mov ebx, dword [ebp - 0x6c]
mov eax, ebx
mov edx, dword [ebp - 0x64]
sub ebx, edx
cmp eax, 0x100
cmovb edx, eax
mov eax, 0
cmovb ebx, eax
test edx, edx
je 0x100fc451
add ecx, edx
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x64]
add eax, dword [ecx + 0x68]
add eax, ebx
mov ecx, dword [ebp - 0x70]
add ecx, ebx
push edx
push ecx
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
jmp 0x100fc454
mov dword [ebp - 0x5c], ecx
test ebx, ebx
je 0x100fc4a5
mov dword [ebp - 0x38], 0
mov eax, dword [ebp + 8]
mov edx, edi
mov edi, dword [eax + 0x64]
add edi, dword [eax + 0x68]
mov ecx, dword [edx + 0x1c]
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x64], eax
call dword [section..00cfg]
push ebx
push dword [ebp - 0x70]
push ebx
lea eax, [ebp - 0x38]
push eax
push edi
push dword [ebp - 0x64]
call ecx
add esp, 0x18
test eax, eax
jne 0x100fc500
cmp dword [ebp - 0x38], ebx
jne 0x100fc500
push 0
push ebx
push dword [ebp - 0x68]
call fcn.10111770
add esp, 0xc
mov edi, dword [ebp - 0x60]
xor ecx, ecx
cmp dword [ebp - 0x5c], 0
mov eax, dword [ebp + 8]
je 0x100fc557
mov dword [ebp - 0x38], 0
mov edx, edi
mov edi, dword [eax + 0x64]
add edi, dword [eax + 0x68]
mov ecx, dword [edx + 0x1c]
mov ebx, dword [edx + 0x20]
call dword [section..00cfg]
push dword [ebp - 0x5c]
push edi
push dword [ebp - 0x5c]
lea eax, [ebp - 0x38]
push eax
push edi
push ebx
call ecx
mov ecx, dword [ebp - 0x5c]
add esp, 0x18
test eax, eax
jne 0x100fc500
cmp dword [ebp - 0x38], ecx
jne 0x100fc500
push 0
push ecx
push dword [ebp - 0x68]
call fcn.10111770
add esp, 0xc
mov edi, dword [ebp - 0x60]
jmp 0x100fc555
push 0
push 0xffffd046
call sym.nss3.dll_PR_SetError
add esp, 8
xor ecx, ecx
dec ecx
mov edi, dword [ebp - 0x60]
jmp 0x100fc557
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x5c]
add eax, ecx
mov dword [ebp - 0x50], eax
test ecx, ecx
je 0x100fc547
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x64]
add eax, dword [ecx + 0x68]
mov ecx, dword [ebp - 0x78]
add ecx, ebp
add ecx, 0xffffffc8
push dword [ebp - 0x5c]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x50]
push 0
push eax
push dword [ebp - 0x68]
call fcn.10111770
add esp, 0xc
xor ecx, ecx
test ecx, ecx
jne 0x100fbf69
cmp dword [ebp - 0x54], 0
je 0x100fc57d
push 2
push dword [ebp - 0x58]
push dword [ebp - 0x68]
call fcn.10111800
add esp, 0xc
test eax, eax
jne 0x100fbf69
add dword [edi + 0x58], 1
adc dword [edi + 0x5c], 0
mov bl, 1
mov edi, dword [ebp - 0x6c]
jmp 0x100fbf6d
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov ecx, eax
jmp 0x100fc07b
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x100fc009
call fcn.100745e0
jmp 0x100fc065
call fcn.100745e0
jmp 0x100fbff5
xor esi, esi
jmp 0x100fc60c
push 0xffffd048
call fcn.10111ec0
add esp, 4
mov edx, ebx
jmp 0x100fc602
push 0
push 0xffffe892
call sym.nss3.dll_PR_SetError
add esp, 8
mov edx, dword [ebp + 8]
mov dword [edx + 0x68], 0
xor esi, esi
dec esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, esi
add esp, 0x80
pop esi
pop edi
pop ebx
pop ebp
ret