Function at 0x1010e720
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov eax, dword [0x101d2014]
mov ebx, dword [ebp + 0x10]
xor esi, esi
xor eax, ebp
test ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
je 0x1010e7e8
cmp dword [ebp + 0x14], 0
je 0x1010e7e8
xor esi, esi
lea eax, [ebp - 0x14]
push dword [ebp + 0x18]
push esi
push esi
push eax
push esi
push esi
push dword [ebp + 0xc]
call fcn.1012f120
add esp, 0x1c
test eax, eax
je 0x1010ea22
mov edi, eax
push 0x800
call sym.nss3.dll_PORT_NewArena_Util
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x44], eax
dec ecx
test eax, eax
mov dword [ebp - 0x38], ecx
je 0x1010e7ff
mov dword [ebp - 0x3c], edi
push 0x28
push eax
mov edi, eax
call sym.nss3.dll_PORT_ArenaAlloc_Util
add esp, 8
test eax, eax
je 0x1010e7fc
mov ecx, dword [ebp + 8]
mov esi, eax
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], eax
mov dword [esi], edi
test ecx, ecx
jne 0x1010e7ce
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x38], ecx
push dword [ebp - 0x14]
call sym.nss3.dll_SECOID_FindOIDByTag_Util
add esp, 4
mov edi, dword [ebp - 0x3c]
test eax, eax
je 0x1010e80f
mov eax, dword [eax + 0x14]
jmp 0x1010e812
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x1010ea22
mov edi, dword [ebp - 0x3c]
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x34], 0
jmp 0x1010e9a3
xor eax, eax
dec eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x38]
mov ecx, dword [ecx + 8]
cmp edx, ecx
je 0x1010e836
push eax
push ecx
call sym.nss3.dll_PK11_DoesMechanism
mov edx, dword [ebp - 0x38]
add esp, 8
test eax, eax
je 0x1010e836
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 8]
push dword [ebp + 0x1c]
push 0
push ebx
push edi
push edx
call sym.nss3.dll_PK11_PBEKeyGen
add esp, 0x14
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x34], 0
dec eax
test ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x38], eax
je 0x1010e896
lea eax, [ebp - 0x18]
push 0
push ebx
push eax
push edi
call fcn.1012fce0
add esp, 0x10
cmp eax, 0xffffffff
je 0x1010e9a0
push eax
call sym.nss3.dll_PK11_GetPadMechanism
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x2c]
test eax, eax
je 0x1010e89d
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov eax, dword [eax + 8]
jmp 0x1010e8a6
xor ebx, ebx
jmp 0x1010e9a3
mov dword [ebp - 0x24], 0
xor eax, eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 8]
cmp dword [ebx + 8], eax
je 0x1010e8e4
xor ecx, ecx
push ebx
push ecx
mov dword [ebp - 0x34], 0
push ecx
push 0x106
push dword [ebx]
push eax
call fcn.10132150
add esp, 0x18
test eax, eax
je 0x1010e8ed
push ebx
mov ebx, eax
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
mov ecx, dword [ebp + 0x14]
jmp 0x1010e90c
mov dword [ebp - 0x34], 0
jmp 0x1010e90c
mov ecx, dword [ebx + 8]
mov edx, dword [ebp + 0x14]
push 0x4a
push 0
call fcn.1010df00
add esp, 8
test eax, eax
je 0x1010e803
mov dword [ebp - 0x34], eax
mov ecx, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x4c], ecx
mov eax, dword [ecx + 8]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x30], eax
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x1010eaff
mov edi, dword [ebp - 0x30]
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
mov dword [edi + 8], eax
mov edi, dword [ebp - 0x4c]
mov ebx, dword [ebx + 4]
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 8]
mov dword [ebp - 0x40], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 0x38]
mov ecx, dword [ecx + 0xf2]
mov dword [ebp - 0x30], eax
call dword [section..00cfg]
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x28]
push edx
push 0
push dword [ebp - 0x40]
push ebx
push eax
push dword [ebp - 0x30]
call ecx
add esp, 0x18
mov ebx, eax
mov eax, dword [edi + 8]
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
test ebx, ebx
je 0x1010ea36
mov edi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1010e9bc
push 1
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
mov dword [ebp - 0x18], 0
test ebx, ebx
je 0x1010e9c9
push ebx
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x1010e9d9
push eax
call sym.nss3.dll_SECKEY_DestroyPrivateKey
add esp, 4
mov eax, edi
mov ebx, edi
xor edi, edi
add eax, 0xc
push edi
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
push edi
push ebx
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x44]
cmp ecx, 0xffffffff
cmove esi, edi
test eax, eax
je 0x1010ea22
cmp ecx, 0xffffffff
jne 0x1010ea22
push 1
push eax
call sym.nss3.dll_PORT_FreeArena_Util
add esp, 8
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10192ef0
mov eax, esi
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [ebp - 0x1c]
push dword [ebp - 0x44]
call sym.nss3.dll_PORT_ArenaAlloc_Util
add esp, 8
test eax, eax
mov dword [esi + 0x20], eax
je 0x1010e99d
mov eax, dword [edi + 8]
mov ebx, dword [eax + 0x3c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
mov dword [ebp - 0x30], eax
je 0x1010eb16
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x30]
mov dword [ebx + 8], eax
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 8]
mov ebx, dword [esi + 0x20]
mov dword [ebp - 0x40], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ecx + 0xf2]
mov eax, dword [eax + 4]
mov dword [ebp - 0x48], eax
call dword [section..00cfg]
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp - 0x40]
push dword [ebp - 0x48]
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x30]
call ecx
add esp, 0x18
mov ebx, eax
mov eax, dword [edi + 8]
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x1c]
test ebx, ebx
mov dword [esi + 0x24], eax
jne 0x1010e99d
mov edi, dword [ebp - 0x3c]
test eax, eax
je 0x1010e9a0
mov eax, esi
add eax, 4
push edi
push eax
push dword [ebp - 0x44]
call sym.nss3.dll_SECOID_CopyAlgorithmID_Util
add esp, 0xc
mov dword [ebp - 0x38], eax
jmp 0x1010e9a0
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov dword [ebp - 0x2c], eax
jmp 0x1010e936
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov dword [ebp - 0x30], eax
jmp 0x1010ea6c