Function at 0x100fc150
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x60]
mov dword [edi + 0x540], 0
test ebx, ebx
je 0x100fc27c
mov esi, dword [edi]
mov ecx, dword [edi + 0xdc]
mov edi, dword [edi + 0xe0]
call dword [section..00cfg]
push ebx
push 1
push esi
push edi
call ecx
add esp, 0x10
test eax, eax
je 0x100fc217
mov esi, eax
cmp dword [0x101f4f80], 0
je 0x100fc49b
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100fc465
mov eax, dword [eax + 0x28]
test eax, eax
mov edi, 0xffffd004
cmovne edi, eax
cmp esi, 0xfffffffe
je 0x100fc1fb
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x104]
test ecx, ecx
je 0x100fc1ee
mov esi, dword [eax]
mov ebx, dword [eax + 0x108]
call dword [section..00cfg]
push esi
push ebx
call ecx
add esp, 8
mov esi, eax
test esi, esi
je 0x100fc217
cmp esi, 0xfffffffe
jne 0x100fc380
mov edi, 0xffffd076
mov eax, dword [ebp + 8]
cmp dword [eax + 0x60], 0
jne 0x100fc451
mov dword [eax + 0x540], 1
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xc4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x100fc230
push eax
call sym.nss3.dll_CERT_DestroyCertificate
add esp, 4
mov esi, dword [edi + 0x78]
test esi, esi
je 0x100fc248
push esi
call fcn.1009bef0
add esp, 4
test eax, eax
je 0x100fc248
lock inc dword [eax + 4]
mov eax, dword [edi + 0xc4]
mov dword [eax + 0x18], esi
cmp dword [edi + 0x60], 0
movzx eax, word [edi + 0x58]
movzx eax, ax
je 0x100fc318
cmp eax, 0x303
ja 0x100fc31f
mov dword [edi + 0x450], 4
jmp 0x100fc329
movzx eax, word [edi + 0x58]
cmp eax, 0x304
jb 0x100fc2bd
push edi
call fcn.10128b60
add esp, 4
test eax, eax
je 0x100fc2bd
mov eax, dword [edi + 0xa10]
mov dword [ebp - 0x10], eax
mov ecx, dword [eax + 0x14]
call fcn.1008e690
test eax, eax
je 0x100fc330
mov esi, eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [edi + 0x88], eax
jmp 0x100fc2d0
mov ecx, 0xd4
add ecx, dword [edi + 0x78]
call fcn.1008e690
mov esi, eax
test eax, eax
je 0x100fc330
push esi
push edi
call fcn.100fc4b0
add esp, 8
mov dword [ebp - 0x10], eax
push esi
call sym.nss3.dll_SECKEY_DestroyPublicKey
add esp, 4
cmp dword [ebp - 0x10], 0
jne 0x100fc33f
movzx eax, word [edi + 0x58]
cmp eax, 0x303
ja 0x100fc16f
mov eax, dword [edi + 0x48c]
mov ecx, dword [eax + 0xc]
mov dword [edi + 0x80], ecx
mov eax, dword [eax + 4]
mov dword [edi + 0x8c], eax
jmp 0x100fc16f
cmp eax, 0x304
jb 0x100fc368
mov dword [edi + 0x450], 0x85
xor eax, eax
jmp 0x100fc45d
push 0
push 0xffffd043
call sym.nss3.dll_PR_SetError
add esp, 8
cmp dword [0x101f4f80], 0
je 0x100fc4a5
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100fc480
mov edi, dword [eax + 0x28]
jmp 0x100fc451
mov eax, dword [edi + 0x48c]
cmp dword [eax + 0x10], 0
je 0x100fc3b9
mov dword [edi + 0x450], 0xb
jmp 0x100fc329
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x58]
cmp edi, 0xffffe01d
jg 0x100fc3df
lea ecx, [edi + 0x1ff5]
cmp ecx, 0xa
ja case.default.0x100fc39a
jmp dword [ecx*4 + 0x101c61dc]
movzx eax, ax
xor ecx, ecx
cmp eax, 0x301
setae cl
lea eax, [ecx + ecx]
add eax, 0x2e
jmp 0x100fc443
mov dword [edi + 0x450], 0xc
mov eax, dword [edi + 0x84]
mov dword [edi + 0x90], eax
xor eax, eax
mov dword [edi + 0x88], eax
mov dword [edi + 0x94], eax
jmp 0x100fc45d
lea ecx, [edi + 0x1fa6]
cmp ecx, 2
jae 0x100fc3f1
mov eax, 0x2e
jmp 0x100fc443
cmp edi, 0xffffe01e
jne case.0x100fc39a.8178
movzx eax, ax
xor ecx, ecx
cmp eax, 0x301
setae cl
lea eax, [ecx + ecx*2]
add eax, 0x2d
jmp 0x100fc443
mov eax, 0x2b
cmp edi, 0xffffe001
je 0x100fc443
mov eax, 0x2a
jmp 0x100fc443
mov eax, 0x2d
jmp 0x100fc443
mov eax, 0x2c
jmp 0x100fc443
movzx eax, ax
xor ecx, ecx
cmp eax, 0x301
setae cl
lea eax, [ecx + ecx*2]
add eax, 0x2e
push eax
push 2
push dword [ebp + 8]
call fcn.100f4470
add esp, 0xc
push edi
call fcn.1010c480
add esp, 4
xor eax, eax
dec eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
jmp 0x100fc1b8
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
jmp 0x100fc360
call fcn.1001b2e0
jmp 0x100fc1a4
call fcn.1001b2e0
jmp 0x100fc34c