Function at 0x100f4350
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x80
mov ebx, dword [ebp + 8]
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ebx + 0x6bc], 0
je 0x100f4393
xor esi, esi
dec esi
cmp dword [ebp + 0x10], 0x15
je 0x100f4c36
push 0
push 0xffffd0ac
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100f4c36
mov ecx, dword [ebx + 0xc4]
call fcn.100f4c50
test eax, eax
je 0x100f4427
mov edi, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
cmp dword [ebx + 0x148], 0
je 0x100f443b
mov eax, dword [ebx + 0x1c]
bt eax, 0xa
jb 0x100f43d3
push dword [ebx + 0x174]
call fcn.100d3060
add esp, 4
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x3b8]
movzx esi, word [ecx + 0x4c]
bt eax, 0xa
jb 0x100f43f1
push dword [ebx + 0x174]
call fcn.100d3140
add esp, 4
mov edi, dword [ebx]
mov ecx, dword [ebx + 0x148]
mov ebx, dword [ebx + 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
neg eax
sbb esi, esi
or esi, ebx
jmp 0x100f4c36
push 0
push 0xffffd053
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100f4c33
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x5c], eax
test eax, eax
jne 0x100f444e
mov eax, dword [ebx + 0x3b8]
mov dword [ebp - 0x5c], eax
test edi, edi
jle 0x100f4c0a
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x7c], eax
lea eax, [ebx + 0x64]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x5c]
add eax, 0x34
mov dword [ebp - 0x88], eax
lea eax, [ebx + 0x1f8]
mov dword [ebp - 0x84], eax
xor esi, esi
mov dword [ebp - 0x74], ecx
test byte [ebx + 0x1d], 4
jne 0x100f4493
push dword [ebx + 0x174]
call fcn.100d3060
add esp, 4
mov edx, dword [ebp - 0x5c]
movzx eax, word [edx + 0xf4]
cmp eax, edi
cmovae eax, edi
mov dword [ebp - 0x6c], eax
add eax, 0x64
movzx ecx, word [edx + 0x10]
cmp ecx, 0x302
mov dword [ebp - 0x8c], edi
jb 0x100f44c6
mov ecx, dword [edx + 0x14]
cmp dword [ecx + 0x10], 1
jne 0x100f44c6
add eax, dword [ecx + 0x14]
mov ecx, dword [ebx + 0x6c]
sub ecx, dword [ebx + 0x68]
cmp eax, ecx
jbe 0x100f44eb
push eax
push dword [ebp - 0x68]
call fcn.1010a300
add esp, 8
xor edi, edi
mov ebx, 0
test eax, eax
jne 0x100f45b3
mov edi, dword [ebp - 0x5c]
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 0x100f45a0
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x68]
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call fcn.100f4290
add esp, 0x14
test eax, eax
jne 0x100f45af
cmp dword [ebp - 0x54], 0
je 0x100f453c
lea eax, [ebp - 0x58]
push eax
push 2
push dword [ebp - 0x68]
call fcn.1010a770
add esp, 0xc
test eax, eax
jne 0x100f45af
movzx eax, word [edi + 0x10]
cmp eax, 0x304
jb 0x100f471a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x68]
mov ebx, dword [eax + 0x64]
mov dword [ebp - 0x60], ecx
add ebx, ecx
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
push dword [ebp - 0x74]
push dword [ebp + 0x10]
push edi
push eax
call fcn.1011ec90
add esp, 0x18
test eax, eax
jne 0x100f45af
mov eax, dword [ebp + 8]
cmp dword [eax + 0xa24], 1
jne 0x100f4b8e
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x68]
sub eax, dword [ebp - 0x60]
push eax
push ebx
push dword [ecx + 0x64]
push edi
push ecx
call fcn.100f0a70
add esp, 0x14
jmp 0x100f4b86
push 0
push 0xffffd099
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
xor ebx, ebx
mov eax, dword [ebp + 8]
test byte [eax + 0x1d], 4
jne 0x100f45ca
push dword [eax + 0x174]
call fcn.100d3140
add esp, 4
test bl, bl
mov ebx, dword [ebp + 8]
je 0x100f4c2c
mov ecx, dword [ebp - 0x7c]
mov eax, ecx
and eax, 0x40000000
or eax, dword [ebx + 0x1fc]
jne 0x100f4679
mov dword [ebx + 0x40], 1
mov eax, ecx
and eax, 0x80ffffff
push eax
push dword [ebx + 0x68]
push dword [ebx + 0x64]
push ebx
call fcn.10109fd0
add esp, 0x10
test eax, eax
jns 0x100f463f
cmp dword [0x101f2f50], 0
je 0x100f4bf6
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ecx, eax
test eax, eax
je 0x100f4bbe
xor eax, eax
cmp dword [ecx + 0x28], 0xffffe892
jne 0x100f4c0e
mov ecx, dword [ebx + 0x68]
sub ecx, eax
jbe 0x100f46f5
cmp dword [ebx + 0xa24], 1
je 0x100f4c1d
mov edx, dword [ebp - 0x68]
add eax, dword [edx]
push ecx
push eax
push dword [ebp - 0x84]
call fcn.1010a420
add esp, 0xc
test eax, eax
je 0x100f46f5
jmp 0x100f4c2c
push dword [ebx + 0x68]
push dword [ebx + 0x64]
push dword [ebp - 0x84]
call fcn.1010a420
add esp, 0xc
test eax, eax
jne 0x100f4c2c
bt dword [ebp - 0x7c], 0x1e
jb 0x100f46f5
mov dword [ebx + 0x40], 1
push ebx
call fcn.1010e850
add esp, 4
test eax, eax
jns 0x100f46de
cmp dword [0x101f2f50], 0
je 0x100f4c00
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100f4bdb
cmp dword [eax + 0x28], 0xffffe892
jne 0x100f4c0e
mov ecx, dword [ebp - 0x7c]
mov eax, ecx
or eax, 0x40000000
cmp dword [ebx + 0x1fc], 0
cmovne ecx, eax
mov dword [ebp - 0x7c], ecx
mov ecx, dword [ebp - 0x74]
add ecx, edi
mov eax, dword [ebp - 0x8c]
sub eax, edi
mov dword [ebx + 0x68], 0
add esi, edi
mov edi, eax
test eax, eax
jg 0x100f447c
jmp 0x100f4c36
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0xa24], 1
sete byte [ebp - 0x60]
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
lea edx, [ebp - 0x1d]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], 0xd
mov dword [ebp - 0x40], 1
mov ecx, dword [edi + 0x14]
cmp dword [ecx + 0x10], 1
jne 0x100f47f6
movzx edx, ax
cmp edx, 0x302
jb 0x100f47f6
mov edx, ebx
mov ebx, dword [ecx + 0x14]
mov eax, dword [edx + 0x68]
mov ecx, dword [edx + 0x6c]
sub ecx, eax
cmp ebx, ecx
jbe 0x100f477d
push 0
push 0xffffe001
jmp 0x100f491e
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 0x100f47a6
push 0xffffd041
mov ebx, eax
call fcn.1010aec0
mov eax, ebx
add esp, 4
jmp 0x100f4b86
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 0x100f4b30
cmp dword [ebp - 0x50], ebx
jne 0x100f4b30
push 0
push ebx
push dword [ebp - 0x68]
call fcn.1010a770
add esp, 0xc
mov eax, dword [ebp - 0x5c]
movzx eax, word [eax + 0x10]
xor ebx, ebx
mov cl, byte [ebp - 0x60]
mov bl, cl
mov ecx, dword [ebp - 0x5c]
movzx ecx, word [ecx + 0x12]
mov dword [ebp - 0x60], ecx
movzx ecx, ax
xor eax, eax
cmp ecx, 0x301
setae al
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x58]
mov ecx, dword [ebp - 0x5c]
movzx ecx, word [ecx + 0x4c]
lea edi, [ebp - 0x4c]
push edi
push dword [ebp - 0x6c]
mov dword [ebp - 0x64], ebx
push ebx
push dword [ebp - 0x60]
mov edi, dword [ebp - 0x5c]
push eax
push dword [ebp + 0x10]
push dword [edi + 0x5c]
call fcn.100f41f0
add esp, 0x1c
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx + 0x10]
cmp eax, 2
jne 0x100f492e
mov edx, dword [ebp + 8]
mov edi, dword [ecx + 0x1c]
mov ebx, dword [ecx + 0x20]
mov eax, dword [ebp - 0x6c]
add eax, ebx
mov dword [ebp - 0x60], edi
add eax, edi
mov edi, dword [edx + 0x6c]
sub edi, dword [edx + 0x68]
mov edx, 0xffffe001
cmp eax, edi
mov edi, dword [ebp - 0x5c]
ja 0x100f491b
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x70], edx
lea eax, [edx - 8]
xor ecx, ecx
test ebx, ebx
sete cl
cmovne eax, edx
lea ecx, [ecx + ecx + 2]
mov dword [ebp - 0x80], 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.1011e3a0
add esp, 0x18
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp + 8]
mov eax, ebx
mov ebx, ecx
mov ecx, dword [ecx + 0x68]
mov edx, dword [ebx + 0x6c]
lea edi, [eax + ecx]
mov dword [ebp - 0x78], edi
add ecx, dword [ebx + 0x64]
sub edx, dword [ebp - 0x78]
add ecx, eax
mov dword [ebp - 0x78], eax
mov edi, dword [ebp - 0x70]
add edi, eax
mov ebx, dword [ebp - 0x64]
shl ebx, 3
push dword [ebp - 0x6c]
push dword [ebp - 0x74]
push dword [ebp - 0x60]
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 edi
mov edi, dword [ebp - 0x5c]
lea eax, [ebp - 0x38]
push eax
push eax
push ebx
push dword [ebp - 0x80]
push ecx
push dword [edi + 0x20]
call fcn.1011e400
add esp, 0x44
mov edx, 0xffffd046
test eax, eax
je 0x100f4b47
push 0
push edx
call sym.nss3.dll_PR_SetError
add esp, 8
xor eax, eax
dec eax
jmp 0x100f4b86
mov ebx, dword [ecx + 0x18]
mov ecx, dword [edi + 0x18]
cmp dword [ecx], 0
je 0x100f49cc
mov dword [ebp - 0x78], ebx
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x64]
add ebx, dword [eax + 0x68]
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x70], edx
add ebx, dword [ebp - 0x6c]
mov ecx, dword [ecx + 0xc]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], edi
mov edi, dword [edi + 0x30]
push edi
call sym.nss3.dll_PK11_DigestBegin
add esp, 4
mov dword [ebp - 0x80], eax
push dword [ebp - 0x70]
push dword [ebp - 0x64]
push edi
call sym.nss3.dll_PK11_DigestOp
add esp, 0xc
or eax, dword [ebp - 0x80]
mov dword [ebp - 0x64], eax
push dword [ebp - 0x6c]
push dword [ebp - 0x74]
push edi
call sym.nss3.dll_PK11_DigestOp
add esp, 0xc
or eax, dword [ebp - 0x64]
mov dword [ebp - 0x64], eax
push dword [ebp - 0x60]
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 0x100f49d7
mov edi, 0xffffd04b
push edi
call fcn.1010aec0
add esp, 4
push edi
call fcn.1010aec0
add esp, 4
jmp 0x100f4b3f
mov dword [ebp - 0x3c], 0
xor ecx, ecx
jmp 0x100f49e6
mov ecx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x5c]
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0x10]
mov ebx, dword [ebp - 0x78]
xor edx, edx
cmp eax, 1
jne 0x100f4a44
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x60], ecx
add ecx, eax
xor edx, edx
div ebx
dec ebx
mov eax, ecx
not eax
and eax, ebx
lea ebx, [eax + 1]
test eax, eax
js 0x100f4a3f
mov dword [ebp - 0x64], edx
mov edx, ebx
mov dword [ebp - 0x70], ebx
test ebx, ebx
jle 0x100f4a16
xor edx, edx
inc edx
mov ebx, dword [ebp + 8]
mov edi, dword [ebx + 0x64]
add ecx, edx
add ecx, dword [ebx + 0x68]
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 - 0x5c]
mov edx, dword [ebp - 0x64]
mov ebx, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x60]
add ecx, ebx
mov eax, dword [ebp - 0x6c]
mov ebx, eax
sub ebx, edx
cmp eax, 0x100
cmovb edx, eax
mov eax, 0
cmovb ebx, eax
test edx, edx
je 0x100f4a81
add ecx, edx
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x64]
add eax, dword [ecx + 0x68]
add eax, ebx
mov ecx, dword [ebp - 0x74]
add ecx, ebx
push edx
push ecx
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
jmp 0x100f4a84
mov dword [ebp - 0x60], ecx
test ebx, ebx
je 0x100f4ad5
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 - 0x74]
push ebx
lea eax, [ebp - 0x38]
push eax
push edi
push dword [ebp - 0x64]
call ecx
add esp, 0x18
test eax, eax
jne 0x100f4b30
cmp dword [ebp - 0x38], ebx
jne 0x100f4b30
push 0
push ebx
push dword [ebp - 0x68]
call fcn.1010a770
add esp, 0xc
mov edi, dword [ebp - 0x5c]
xor eax, eax
cmp dword [ebp - 0x60], 0
je 0x100f4b86
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 ebx, dword [edx + 0x20]
call dword [section..00cfg]
push dword [ebp - 0x60]
push edi
push dword [ebp - 0x60]
lea eax, [ebp - 0x38]
push eax
push edi
push ebx
call ecx
mov ecx, dword [ebp - 0x60]
add esp, 0x18
test eax, eax
jne 0x100f4b30
cmp dword [ebp - 0x38], ecx
jne 0x100f4b30
push 0
push ecx
push dword [ebp - 0x68]
call fcn.1010a770
add esp, 0xc
mov edi, dword [ebp - 0x5c]
jmp 0x100f4b84
push 0
push 0xffffd046
call sym.nss3.dll_PR_SetError
add esp, 8
xor eax, eax
dec eax
mov edi, dword [ebp - 0x5c]
jmp 0x100f4b86
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x78]
add eax, ebx
mov dword [ebp - 0x50], eax
test ebx, ebx
je 0x100f4b76
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x64]
add eax, dword [ecx + 0x68]
lea ecx, [edx + ebp]
add ecx, 0xffffffc8
push ebx
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.1010a770
add esp, 0xc
xor eax, eax
test eax, eax
jne 0x100f45af
cmp dword [ebp - 0x54], 0
je 0x100f4bac
push 2
push dword [ebp - 0x58]
push dword [ebp - 0x68]
call fcn.1010a800
add esp, 0xc
test eax, eax
jne 0x100f45af
add dword [edi + 0x58], 1
adc dword [edi + 0x5c], 0
mov bl, 1
mov edi, dword [ebp - 0x6c]
jmp 0x100f45b3
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov ecx, eax
jmp 0x100f4630
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
jmp 0x100f46d1
call fcn.100029d0
jmp 0x100f461a
call fcn.100029d0
jmp 0x100f46bd
xor esi, esi
jmp 0x100f4c36
push 0xffffd048
call fcn.1010aec0
add esp, 4
jmp 0x100f4c2c
push 0
push 0xffffe892
call sym.nss3.dll_PR_SetError
add esp, 8
mov dword [ebx + 0x68], 0
xor esi, esi
dec esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, esi
add esp, 0x80
pop esi
pop edi
pop ebx
pop ebp
ret