Function at 0x10129ef0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov dword [ebp - 0x24], edx
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
lea edi, [ebp - 0x14]
mov ecx, dword [0x101d2014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x1c]
mov eax, dword [edx]
mov edx, dword [ebp + 0x1c]
mov dword [edi], 0
mov dword [ecx], eax
lea eax, [ebp - 0x18]
mov dword [eax], 0x100
push edx
push 1
push edi
push eax
push ecx
call fcn.101396c0
add esp, 0x14
test eax, eax
je 0x10129fb6
mov esi, eax
push 0
push ebx
push eax
call sym.nss3.dll_PK11_ImportPublicKey
add esp, 0xc
test eax, eax
je 0x10129fc2
cmp dword [esi + 0x30], 0
mov dword [ebp - 0x28], eax
jne 0x10129f8b
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x2c], eax
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
mov dword [ebp - 0x30], eax
je 0x1012a1cc
mov ebx, dword [ebp - 0x2c]
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x30]
mov dword [ebx + 8], eax
mov eax, dword [esi]
mov ebx, dword [esi + 0x40]
mov ecx, dword [eax + 0x32]
call dword [section..00cfg]
push edi
push sym.nss3.dll_PR_DuplicateEnvironment
push esi
push 4
push ebx
call ecx
add esp, 0x14
test eax, eax
je 0x10129fdd
mov eax, dword [esi + 0x38]
mov bl, 1
mov dword [ebp - 0x14], eax
jmp 0x10129fdf
push 0
push 0xffffe040
jmp 0x1012a193
lock dec dword [esi + 0x48]
jne 0x10129fd1
push esi
call fcn.10135de0
add esp, 4
push 0
push 0xffffe00e
jmp 0x1012a193
xor ebx, ebx
cmp dword [esi + 0x30], 0
jne 0x10129ff0
push dword [esi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov edi, dword [ebp - 0x14]
test bl, bl
mov dword [ebp - 0x30], ebx
jne 0x1012a000
cmp dword [esi + 0x30], 0
jne 0x1012a02c
mov ebx, dword [esi + 0x3c]
mov dword [ebp - 0x2c], edi
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x1012a1b6
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
mov edi, dword [ebp - 0x2c]
mov eax, dword [esi]
mov ecx, dword [eax + 0x76]
call dword [section..00cfg]
push dword [ebp - 0x28]
push dword [ebp + 0x18]
push edi
call ecx
add esp, 0xc
test eax, eax
je 0x1012a0d7
cmp byte [ebp - 0x30], 0
mov ebx, eax
jne 0x1012a0b7
cmp dword [esi + 0x30], 0
jne 0x1012a0a0
push dword [esi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp dword [esi + 0x30], 0
jne 0x1012a0a0
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], eax
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
mov dword [ebp - 0x24], eax
je 0x1012a1e3
mov edi, dword [ebp - 0x28]
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x24]
mov dword [edi + 8], eax
mov edi, dword [ebp - 0x2c]
mov eax, dword [esi]
mov ecx, dword [eax + 0x36]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
cmp dword [esi + 0x30], 0
jne 0x1012a0c2
push dword [esi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
lock dec dword [esi + 0x48]
jne 0x1012a0d1
push esi
call fcn.10135de0
add esp, 4
push ebx
jmp 0x1012a188
mov eax, dword [esi]
mov ebx, dword [ebp + 0x10]
mov ecx, dword [eax + 0x7a]
call dword [section..00cfg]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
push dword [ebp + 0x14]
push ebx
mov ebx, edi
push edi
call ecx
add esp, 0x14
cmp byte [ebp - 0x30], 0
mov edi, eax
jne 0x1012a161
cmp dword [esi + 0x30], 0
jne 0x1012a14a
push dword [esi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp dword [esi + 0x30], 0
jne 0x1012a14a
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x24], eax
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
mov dword [ebp - 0x28], eax
je 0x1012a1fa
mov eax, dword [ebp - 0x24]
add eax, 0x1c
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 8], eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x36]
call dword [section..00cfg]
push ebx
call ecx
add esp, 4
cmp dword [esi + 0x30], 0
jne 0x1012a16c
push dword [esi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov ebx, dword [ebp + 8]
lock dec dword [esi + 0x48]
jne 0x1012a17e
push esi
call fcn.10135de0
add esp, 4
mov eax, dword [ebp - 0x20]
test edi, edi
mov dword [ebx], eax
je 0x1012a1b2
push edi
call fcn.10115520
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10192ef0
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
jmp 0x1012a19e
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov edi, eax
jmp 0x1012a01c
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov dword [ebp - 0x30], eax
jmp 0x10129f78
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov dword [ebp - 0x24], eax
jmp 0x1012a08a
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov dword [ebp - 0x28], eax
jmp 0x1012a134