Function at 0x10114380
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [0x101d2014]
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
cmp dword [esi + 0x14], 0
mov eax, dword [esi + 8]
je 0x101143b3
cmp dword [eax + 0x30], 0
je 0x101143b3
mov ebx, dword [esi + 0x10]
jmp 0x101143b6
mov ebx, dword [eax + 0x3c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10114731
mov edi, eax
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
cmp dword [esi + 0x14], 0
je 0x10114428
mov edx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0xc]
cmp dword [esi + 0x30], 0
je 0x1011448a
mov eax, dword [esi]
cmp eax, 0x105
je 0x10114441
cmp eax, 0x104
mov dword [ebp - 0x28], edi
jne 0x1011448d
cmp dword [esi + 0x14], 0
mov eax, dword [esi + 8]
je 0x10114647
cmp dword [eax + 0x30], 0
je 0x10114647
lea eax, [esi + 0x10]
jmp 0x1011464a
mov eax, dword [esi + 4]
mov edi, dword [esi + 0x20]
mov ebx, dword [esi + 0x1c]
test eax, eax
je 0x101145d9
mov eax, dword [eax + 4]
jmp 0x101145db
mov edx, 8
lea eax, [ebp - 0x1c]
mov dword [eax], edx
mov eax, dword [esi + 8]
mov ebx, dword [esi + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax + 0x8e]
call dword [section..00cfg]
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x18]
push edx
push eax
mov eax, 8
push eax
push edi
push ebx
call ecx
mov edx, dword [ebp + 0x1c]
add esp, 0x14
lea eax, [ebp - 0x1c]
mov ebx, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esi + 0x30], 0
add edi, eax
sub edx, eax
mov dword [ebp - 0x28], edi
xor edi, edi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov ecx, dword [esi]
cmp ecx, 0x105
je 0x101144f0
mov eax, 0x91
cmp ecx, 0x104
jne 0x1011452c
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x24], edi
mov edi, edx
mov dword [ecx], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax + 0x7e]
call dword [section..00cfg]
lea eax, [ebp - 0x1c]
push eax
push ebx
push edi
push dword [ebp - 0x28]
push dword [ebp - 0x20]
call ecx
add esp, 0x14
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x1c]
add dword [edx], ecx
jmp 0x10114525
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x24], edi
mov edi, edx
mov dword [ecx], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax + 0x8e]
call dword [section..00cfg]
lea eax, [ebp - 0x1c]
push eax
push ebx
push edi
push dword [ebp - 0x28]
push dword [ebp - 0x20]
call ecx
add esp, 0x14
mov ebx, dword [ebp - 0x24]
test eax, eax
je 0x10114547
push eax
call fcn.10115520
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
xor ebx, ebx
xor eax, eax
dec ebx
jmp 0x1011454a
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp dword [esi + 0x30], 0
je 0x10114586
cmp dword [esi], 0x104
jne 0x1011457f
push dword [ebp - 0x1c]
mov edi, dword [ebp - 0x2c]
push edi
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
test edi, edi
je 0x1011457f
push dword [ebp - 0x2c]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov dword [esi + 0x30], 0
cmp dword [esi + 0x14], 0
je 0x10114591
mov eax, dword [esi + 8]
jmp 0x101145be
mov edx, dword [esi + 0x1c]
lea eax, [esi + 0x20]
mov ecx, esi
push eax
call fcn.10112ff0
add esp, 4
xor ecx, ecx
cmp eax, 1
mov dword [esi + 0x1c], eax
sbb ecx, ecx
or ebx, ecx
mov ecx, esi
call fcn.10113840
cmp dword [esi + 0x14], 0
mov eax, dword [esi + 8]
je 0x101145c9
cmp dword [eax + 0x30], 0
je 0x101145c9
push dword [esi + 0x10]
jmp 0x101145cc
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x1011471d
xor eax, eax
test ebx, ebx
je 0x10114618
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x28], edx
mov ecx, dword [eax + 0x46]
call dword [section..00cfg]
push 0
push dword [ebp - 0x24]
push edi
push ebx
push dword [ebp - 0x28]
call ecx
add esp, 0x14
test eax, eax
je 0x101143df
push eax
call fcn.10115520
add esp, 4
jmp 0x1011461d
mov eax, 0xffffe001
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
cmp dword [esi + 0x14], 0
mov eax, dword [esi + 8]
je 0x1011463f
cmp dword [eax + 0x30], 0
je 0x1011463f
push dword [esi + 0x10]
jmp 0x10114712
push dword [eax + 0x3c]
jmp 0x10114712
add eax, 0x3c
push dword [eax]
call sym.nss3.dll_PR_Unlock
add esp, 4
lea eax, [ebp - 0x18]
push 8
push eax
call sym.nss3.dll_PK11_GenerateRandom
add esp, 8
mov dword [ebp - 0x24], eax
cmp dword [esi + 0x14], 0
mov eax, dword [esi + 8]
je 0x10114679
cmp dword [eax + 0x30], 0
je 0x10114679
mov edi, dword [esi + 0x10]
jmp 0x1011467c
mov edi, dword [eax + 0x3c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10114745
mov ebx, eax
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], ebx
mov ebx, dword [ebp + 0x14]
push ebx
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x101146f7
mov ecx, dword [esi + 8]
mov edi, eax
mov eax, dword [esi + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x20], eax
mov ecx, dword [edx + 0x7e]
call dword [section..00cfg]
lea eax, [ebp - 0x1c]
push eax
push edi
push 8
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x20]
call ecx
add esp, 0x14
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x2c], edi
mov edx, dword [ebp + 0x1c]
mov eax, dword [eax]
sub ebx, eax
add edi, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], ebx
mov ebx, edi
mov edi, dword [ebp - 0x24]
jmp 0x1011449d
cmp dword [esi + 0x14], 0
mov eax, dword [esi + 8]
je 0x1011470d
cmp dword [eax + 0x30], 0
je 0x1011470d
add esi, 0x10
mov eax, esi
jmp 0x10114710
add eax, 0x3c
push dword [eax]
call sym.nss3.dll_PR_Unlock
add esp, 4
xor ebx, ebx
dec ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10192ef0
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
jmp 0x101143ca
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
jmp 0x10114690