Function at 0x10114760
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [ebp + 0x3c]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x30]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x18]
mov edx, dword [0x101d2014]
xor edx, ebp
mov dword [esp + 0x88], edx
mov edx, dword [ebp + 0xc]
mov ebx, dword [esi + 0x38]
mov esi, dword [ebp + 0x14]
cmp ebx, 0x4020
jg 0x101147e9
cmp ebx, 0xce53436c
je 0x101147f8
mov edi, dword [ebp + 0x34]
cmp ebx, 0x1087
je 0x10114842
cmp ebx, 0x1088
jne 0x101149fd
mov ebx, dword [ebp + 0x3c]
lea ecx, [esp + 0x2c]
mov dword [ecx], ebx
lea ebx, [esp + 0x2c]
mov ecx, dword [ebp + 0x30]
mov dword [ebx + 4], esi
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
mov edx, dword [ebp + 0x10]
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x18], edi
jmp 0x1011485d
add ebx, 0xffffbfdf
cmp ebx, 1
ja 0x101149fd
mov edi, dword [ebp + 8]
lea ebx, [esp + 0x2c]
mov dword [esp + 8], 0xc
mov dword [ebx], esi
mov dword [ebx + 4], eax
mov dword [ebx + 8], ecx
mov cl, 1
mov dword [esp + 4], ecx
cmp dword [edi], 0x82000104
jne 0x1011483e
mov ecx, edi
push eax
push esi
push dword [ebp + 0x10]
call fcn.10114f70
add esp, 0xc
mov ebx, eax
test eax, eax
jne 0x10114bd7
xor eax, eax
lea ebx, [esp + 0x2c]
jmp 0x10114872
xor eax, eax
jmp 0x10114872
lea ebx, [esp + 0x2c]
shl edi, 3
mov dword [ebx], esi
mov dword [ebx + 4], eax
mov dword [ebx + 0xc], edx
mov edx, dword [ebp + 0x10]
mov dword [ebx + 8], edx
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], edi
mov edi, dword [ebp + 8]
mov al, 1
mov dword [esp + 8], 0x18
mov dword [esp + 4], 0
mov edx, dword [ebp + 0x2c]
mov esi, dword [ebp + 0x28]
mov dword [esp + 0x48], edx
mov dword [esi], 0
movzx ecx, byte [edi + 3]
shl ecx, 0x18
cmp ecx, 0x82000000
jne 0x10114bc5
mov dword [esp + 0x24], edx
mov ecx, dword [ebp + 0x38]
mov edx, dword [ebp + 0x24]
cmp dword [edi + 0x34], 0
mov dword [esp + 0x28], ecx
je 0x101148ef
mov ecx, dword [ebp + 0x2c]
mov dword [esp + 0x84], ecx
mov ecx, dword [edi + 0x38]
mov dword [esp + 8], ecx
xor ecx, ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x68], ecx
mov dword [esi], ecx
mov ecx, dword [edi]
cmp ecx, 0x82000104
je 0x1011497d
cmp ecx, 0x82000105
jne 0x10114bc5
mov cl, 1
mov dword [esp + 0x1c], ecx
jmp 0x10114985
cmp dword [edi + 0x14], 0
mov eax, dword [edi + 8]
mov dword [esp + 0xc], ebx
je 0x10114907
cmp dword [eax + 0x30], 0
je 0x10114907
mov eax, dword [edi + 0x10]
jmp 0x1011490a
mov eax, dword [eax + 0x3c]
mov dword [esp + 4], eax
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10114f50
mov esi, dword [esp + 4]
mov ebx, eax
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], ebx
cmp dword [edi + 0x14], 0
je 0x10114a09
mov ecx, 0x7dfffefc
mov eax, 0x91
add ecx, dword [edi]
cmp ecx, 6
ja case.0x10114954.2
jmp dword [ecx*4 + 0x1019f5c8]
mov eax, dword [ebp + 0x2c]
lea esi, [esp + 0x48]
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0x28]
mov dword [esi], eax
mov eax, dword [edi + 8]
mov edi, dword [ecx + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax + 0x126]
jmp 0x10114c0c
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 8]
cmp ecx, 0x4020
jg 0x101149b7
cmp ecx, 0xce53436c
je 0x10114a22
cmp ecx, 0x1087
je 0x10114af9
cmp ecx, 0x1088
je 0x10114bc5
jmp 0x101149fd
lea eax, [ecx - 0x4021]
cmp eax, 1
ja 0x101149fd
cmp byte [esp + 4], 0
je 0x10114bc5
mov eax, dword [ebx]
lea ecx, [esp + 0x6c]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x64], ecx
mov dword [ecx], eax
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0x1c]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0x20]
mov dword [ecx + 0xc], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x18], eax
mov eax, 0x10
jmp 0x10114a62
push 0
push 0xffffe006
jmp 0x10114bcc
mov eax, dword [edi + 4]
mov esi, dword [edi + 0x20]
mov ebx, dword [edi + 0x1c]
test eax, eax
je 0x10114d20
mov edi, dword [eax + 4]
jmp 0x10114d22
cmp byte [esp + 4], 0
je 0x10114bc5
mov eax, dword [ebx]
lea ecx, [esp + 0x6c]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x64], ecx
mov dword [ecx], eax
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0x20]
mov dword [ecx + 0xc], eax
mov eax, 0x14
mov dword [ecx + 0x10], 0x10
cmp byte [esp + 0x1c], 0
mov dword [esp + 0x68], eax
mov dword [esp + 4], 0x10
jne 0x10114b5d
mov edx, dword [ebp + 0x3c]
mov esi, dword [ebp + 0x2c]
cmp esi, edx
jl 0x10114bc5
mov eax, dword [esp + 4]
mov ebx, dword [ebp + 0x38]
mov dword [esp + 0x14], 0
lea ecx, [eax + edx]
mov eax, dword [ebp + 0x24]
cmp ecx, esi
jbe 0x10114ac1
mov esi, ecx
push ecx
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x10114bd4
mov edx, dword [ebp + 0x3c]
mov dword [esp + 0x84], esi
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x84]
push edx
push ebx
mov dword [esp + 0x2c], esi
push esi
push ecx
mov dword [esp + 0x20], eax
push eax
lea eax, [esp + 0x74]
push eax
push dword [esp + 0x20]
push dword [edi + 4]
add edi, 4
call sym.nss3.dll_PK11_Encrypt
add esp, 0x20
mov esi, dword [ebp + 0x28]
mov edx, dword [ebp + 0x24]
mov ebx, eax
jmp 0x10114ddf
test al, al
je 0x10114bc5
mov esi, dword [ebx + 4]
mov eax, dword [ebx]
lea ecx, [esp + 0x6c]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], 0x18
lea edx, [esi*8]
mov dword [ecx], eax
mov dword [ecx + 4], esi
mov dword [ecx + 8], edx
mov edx, dword [ebp + 0x1c]
mov dword [ecx + 0xc], edx
mov edx, dword [ebp + 0x20]
mov dword [ecx + 0x10], edx
mov edx, dword [ebx + 0x14]
mov dword [ecx + 0x14], edx
add edx, 7
mov ecx, dword [ebx + 0x10]
shr edx, 3
cmp byte [esp + 0x1c], 0
mov dword [esp + 4], edx
mov dword [esp + 0x18], ecx
je 0x10114e71
mov esi, dword [ebp + 0x28]
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x3c]
mov ebx, dword [ebp + 0x38]
mov ecx, dword [esp + 4]
add eax, ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x3c]
add ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x18], eax
je 0x10114d99
push ecx
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x10114bd4
mov ebx, eax
mov eax, dword [ebp + 0x3c]
push eax
push dword [ebp + 0x38]
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, ebx
add eax, dword [ebp + 0x3c]
push dword [esp + 4]
push dword [esp + 0x1c]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov edx, dword [ebp + 0x24]
mov dword [esp + 0x14], ebx
jmp 0x10114da1
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
xor ebx, ebx
dec ebx
mov ecx, dword [esp + 0x88]
xor ecx, ebp
call fcn.10192ef0
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x2c]
lea esi, [esp + 0x48]
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0x28]
mov dword [esi], eax
mov eax, dword [edi + 8]
mov edi, dword [ecx + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax + 0x13a]
call dword [section..00cfg]
push esi
push dword [ebp + 0x24]
push dword [ebp + 0x3c]
push dword [ebp + 0x38]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [esp + 0x20]
push dword [esp + 0x28]
push edi
mov edi, dword [ebp + 8]
call ecx
add esp, 0x24
jmp 0x10114ca8
mov eax, dword [ebp + 0x2c]
lea esi, [esp + 0x48]
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0x28]
mov dword [esi], eax
mov eax, dword [edi + 8]
mov edi, dword [ecx + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax + 0x14e]
call dword [section..00cfg]
push esi
push dword [ebp + 0x24]
push dword [ebp + 0x3c]
push dword [ebp + 0x38]
push dword [esp + 0x18]
push dword [esp + 0x20]
push edi
mov edi, dword [ebp + 8]
jmp 0x10114ca3
mov eax, dword [ebp + 0x2c]
mov ebx, dword [ebp + 0x28]
mov dword [esp + 0x48], eax
mov eax, dword [edi + 8]
mov esi, dword [edi + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax + 0x162]
call dword [section..00cfg]
push dword [ebp + 0x2c]
push dword [ebp + 0x24]
push dword [ebp + 0x3c]
push dword [ebp + 0x38]
push dword [esp + 0x18]
push dword [esp + 0x20]
push esi
call ecx
add esp, 0x1c
test eax, eax
je 0x10114cc5
push eax
call fcn.10115520
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
xor ebx, ebx
dec ebx
jmp 0x10114ccd
mov eax, dword [esp + 0x48]
mov dword [ebx], eax
xor ebx, ebx
cmp dword [edi + 0x14], 0
je 0x10114cd8
mov eax, dword [edi + 8]
jmp 0x10114d05
mov edx, dword [edi + 0x1c]
lea eax, [edi + 0x20]
mov ecx, edi
push eax
call fcn.10112ff0
add esp, 4
xor ecx, ecx
cmp eax, 1
mov dword [edi + 0x1c], eax
sbb ecx, ecx
or ebx, ecx
mov ecx, edi
call fcn.10113840
cmp dword [edi + 0x14], 0
mov eax, dword [edi + 8]
je 0x10114d10
cmp dword [eax + 0x30], 0
je 0x10114d10
push dword [edi + 0x10]
jmp 0x10114d13
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x10114bd7
xor edi, edi
test ebx, ebx
je 0x10114d62
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov eax, dword [eax]
mov dword [esp + 4], edx
mov ecx, dword [eax + 0x46]
call dword [section..00cfg]
push 0
push edi
mov edi, dword [ebp + 8]
push esi
push ebx
push dword [esp + 0x14]
call ecx
add esp, 0x14
test eax, eax
je 0x1011493f
push eax
call fcn.10115520
add esp, 4
jmp 0x10114d6a
mov edi, dword [ebp + 8]
mov eax, 0xffffe001
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
cmp dword [edi + 0x14], 0
mov eax, dword [edi + 8]
je 0x10114d89
cmp dword [eax + 0x30], 0
je 0x10114d89
push dword [edi + 0x10]
jmp 0x10114d8c
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x10114bd4
mov dword [esp + 0x14], 0
lea ecx, [esp + 0x84]
lea eax, [esp + 0x60]
push dword [esp + 0x10]
mov dword [esp + 0x2c], ebx
push ebx
push dword [ebp + 0x2c]
push ecx
push edx
push eax
push dword [esp + 0x20]
push dword [edi + 4]
add edi, 4
mov ebx, edx
call sym.nss3.dll_PK11_Decrypt
mov edx, ebx
add esp, 0x20
mov ecx, dword [esp + 0x10]
mov ebx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x1c]
test ebx, ebx
je 0x10114ebf
cmp dword [esp + 8], 0x1087
jne 0x10114f38
call sym.nss3.dll_PR_GetCurrentThread
cmp dword [eax + 0x28], 0xffffe002
mov eax, dword [esp + 0x1c]
jne 0x10114f38
mov edx, dword [esp + 0xc]
mov ebx, eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], 0x14
test bl, bl
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0x1c]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0x20]
mov dword [ecx + 0xc], eax
mov eax, dword [edx + 0x14]
lea edx, [esp + 0x60]
mov dword [ecx + 0x10], eax
lea ecx, [esp + 0x84]
mov eax, dword [edi]
je 0x10114e92
push dword [esp + 0x20]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push ecx
push dword [esp + 0x20]
push edx
push 0x1087
push eax
call sym.nss3.dll_PK11_Decrypt
jmp 0x10114eaf
mov edx, dword [ebx + 0xc]
mov ecx, edi
push esi
push eax
push dword [ebx + 8]
call fcn.10114f70
add esp, 0xc
mov ebx, eax
test eax, eax
jne 0x10114bd7
jmp 0x10114a79
push dword [esp + 0x20]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push ecx
push dword [esp + 0x20]
push edx
push 0x1087
push eax
call sym.nss3.dll_PK11_Encrypt
add esp, 0x20
mov ebx, eax
test eax, eax
mov edx, dword [ebp + 0x24]
mov eax, dword [esp + 0x1c]
jne 0x10114f38
test al, al
jne 0x10114f19
mov eax, dword [esp + 0x84]
mov ebx, dword [esp + 4]
mov edi, esi
mov esi, eax
sub esi, ebx
jb 0x10114f26
mov ecx, dword [esp + 0x20]
add ecx, ebx
cmp eax, ecx
ja 0x10114f26
mov eax, dword [esp + 0x14]
mov dword [esp + 0x84], esi
test eax, eax
je 0x10114efa
push esi
push eax
push edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [esp + 0x10]
add ecx, esi
mov esi, edi
cmp dword [esp + 0x18], ecx
je 0x10114f19
push dword [esp + 4]
push ecx
push dword [esp + 0x20]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x84]
xor ebx, ebx
mov dword [esi], eax
jmp 0x10114f38
push 0
push 0xffffe001
call sym.nss3.dll_PR_SetError
add esp, 8
xor ebx, ebx
dec ebx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10114bd7
push eax
call dword [sym.imp.mozglue.dll_free]
jmp 0x10114d18
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
jmp 0x10114922