Function at 0x100f5910
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 [0x101f1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ebx + 0x6bc], 0
je 0x100f5953
xor esi, esi
dec esi
cmp dword [ebp + 0x10], 0x15
je 0x100f61f6
push 0
push 0xffffd0ac
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100f61f6
mov ecx, dword [ebx + 0xc4]
call fcn.100f6210
test eax, eax
je 0x100f59e7
mov edi, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
cmp dword [ebx + 0x148], 0
je 0x100f59fb
mov eax, dword [ebx + 0x1c]
bt eax, 0xa
jb 0x100f5993
push dword [ebx + 0x174]
call fcn.100d4620
add esp, 4
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x3b8]
movzx esi, word [ecx + 0x4c]
bt eax, 0xa
jb 0x100f59b1
push dword [ebx + 0x174]
call fcn.100d4700
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 0x100f61f6
push 0
push 0xffffd053
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100f61f3
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x5c], eax
test eax, eax
jne 0x100f5a0e
mov eax, dword [ebx + 0x3b8]
mov dword [ebp - 0x5c], eax
test edi, edi
jle 0x100f61ca
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 0x100f5a53
push dword [ebx + 0x174]
call fcn.100d4620
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 0x100f5a86
mov ecx, dword [edx + 0x14]
cmp dword [ecx + 0x10], 1
jne 0x100f5a86
add eax, dword [ecx + 0x14]
mov ecx, dword [ebx + 0x6c]
sub ecx, dword [ebx + 0x68]
cmp eax, ecx
jbe 0x100f5aab
push eax
push dword [ebp - 0x68]
call fcn.1010b8c0
add esp, 8
xor edi, edi
mov ebx, 0
test eax, eax
jne 0x100f5b73
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 0x100f5b60
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x68]
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call fcn.100f5850
add esp, 0x14
test eax, eax
jne 0x100f5b6f
cmp dword [ebp - 0x54], 0
je 0x100f5afc
lea eax, [ebp - 0x58]
push eax
push 2
push dword [ebp - 0x68]
call fcn.1010bd30
add esp, 0xc
test eax, eax
jne 0x100f5b6f
movzx eax, word [edi + 0x10]
cmp eax, 0x304
jb 0x100f5cda
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.10120250
add esp, 0x18
test eax, eax
jne 0x100f5b6f
mov eax, dword [ebp + 8]
cmp dword [eax + 0xa24], 1
jne 0x100f614e
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.100f2030
add esp, 0x14
jmp 0x100f6146
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 0x100f5b8a
push dword [eax + 0x174]
call fcn.100d4700
add esp, 4
test bl, bl
mov ebx, dword [ebp + 8]
je 0x100f61ec
mov ecx, dword [ebp - 0x7c]
mov eax, ecx
and eax, 0x40000000
or eax, dword [ebx + 0x1fc]
jne 0x100f5c39
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.1010b590
add esp, 0x10
test eax, eax
jns 0x100f5bff
cmp dword [0x101f4f80], 0
je 0x100f61b6
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ecx, eax
test eax, eax
je 0x100f617e
xor eax, eax
cmp dword [ecx + 0x28], 0xffffe892
jne 0x100f61ce
mov ecx, dword [ebx + 0x68]
sub ecx, eax
jbe 0x100f5cb5
cmp dword [ebx + 0xa24], 1
je 0x100f61dd
mov edx, dword [ebp - 0x68]
add eax, dword [edx]
push ecx
push eax
push dword [ebp - 0x84]
call fcn.1010b9e0
add esp, 0xc
test eax, eax
je 0x100f5cb5
jmp 0x100f61ec
push dword [ebx + 0x68]
push dword [ebx + 0x64]
push dword [ebp - 0x84]
call fcn.1010b9e0
add esp, 0xc
test eax, eax
jne 0x100f61ec
bt dword [ebp - 0x7c], 0x1e
jb 0x100f5cb5
mov dword [ebx + 0x40], 1
push ebx
call fcn.1010fe10
add esp, 4
test eax, eax
jns 0x100f5c9e
cmp dword [0x101f4f80], 0
je 0x100f61c0
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100f619b
cmp dword [eax + 0x28], 0xffffe892
jne 0x100f61ce
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 0x100f5a3c
jmp 0x100f61f6
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 0x100f5db6
movzx edx, ax
cmp edx, 0x302
jb 0x100f5db6
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 0x100f5d3d
push 0
push 0xffffe001
jmp 0x100f5ede
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 0x100f5d66
push 0xffffd041
mov ebx, eax
call fcn.1010c480
mov eax, ebx
add esp, 4
jmp 0x100f6146
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 0x100f60f0
cmp dword [ebp - 0x50], ebx
jne 0x100f60f0
push 0
push ebx
push dword [ebp - 0x68]
call fcn.1010bd30
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.100f57b0
add esp, 0x1c
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx + 0x10]
cmp eax, 2
jne 0x100f5eee
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 0x100f5edb
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.1011f960
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.1011f9c0
add esp, 0x44
mov edx, 0xffffd046
test eax, eax
je 0x100f6107
push 0
push edx
call sym.nss3.dll_PR_SetError
add esp, 8
xor eax, eax
dec eax
jmp 0x100f6146
mov ebx, dword [ecx + 0x18]
mov ecx, dword [edi + 0x18]
cmp dword [ecx], 0
je 0x100f5f8c
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 0x100f5f97
mov edi, 0xffffd04b
push edi
call fcn.1010c480
add esp, 4
push edi
call fcn.1010c480
add esp, 4
jmp 0x100f60ff
mov dword [ebp - 0x3c], 0
xor ecx, ecx
jmp 0x100f5fa6
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 0x100f6004
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 0x100f5fff
mov dword [ebp - 0x64], edx
mov edx, ebx
mov dword [ebp - 0x70], ebx
test ebx, ebx
jle 0x100f5fd6
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 0x100f6041
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 0x100f6044
mov dword [ebp - 0x60], ecx
test ebx, ebx
je 0x100f6095
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 0x100f60f0
cmp dword [ebp - 0x38], ebx
jne 0x100f60f0
push 0
push ebx
push dword [ebp - 0x68]
call fcn.1010bd30
add esp, 0xc
mov edi, dword [ebp - 0x5c]
xor eax, eax
cmp dword [ebp - 0x60], 0
je 0x100f6146
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 0x100f60f0
cmp dword [ebp - 0x38], ecx
jne 0x100f60f0
push 0
push ecx
push dword [ebp - 0x68]
call fcn.1010bd30
add esp, 0xc
mov edi, dword [ebp - 0x5c]
jmp 0x100f6144
push 0
push 0xffffd046
call sym.nss3.dll_PR_SetError
add esp, 8
xor eax, eax
dec eax
mov edi, dword [ebp - 0x5c]
jmp 0x100f6146
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 0x100f6136
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.1010bd30
add esp, 0xc
xor eax, eax
test eax, eax
jne 0x100f5b6f
cmp dword [ebp - 0x54], 0
je 0x100f616c
push 2
push dword [ebp - 0x58]
push dword [ebp - 0x68]
call fcn.1010bdc0
add esp, 0xc
test eax, eax
jne 0x100f5b6f
add dword [edi + 0x58], 1
adc dword [edi + 0x5c], 0
mov bl, 1
mov edi, dword [ebp - 0x6c]
jmp 0x100f5b73
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov ecx, eax
jmp 0x100f5bf0
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
jmp 0x100f5c91
call fcn.1001b2e0
jmp 0x100f5bda
call fcn.1001b2e0
jmp 0x100f5c7d
xor esi, esi
jmp 0x100f61f6
push 0xffffd048
call fcn.1010c480
add esp, 4
jmp 0x100f61ec
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.10157a00
mov eax, esi
add esp, 0x80
pop esi
pop edi
pop ebx
pop ebp
ret