Function at 0x10132d60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [0x101d2014]
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
xor ebx, ebx
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 8]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x2c], 1
mov dword [ecx], ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
mov dword [eax], ebx
push ecx
push eax
push esi
push edi
push 0x106
push 0x104
push dword [ebp + 8]
call fcn.10132bd0
add esp, 0x1c
test eax, eax
je 0x10132de2
cmp dword [edi + 0x1c], 0
lea ebx, [edi + 0x18]
je 0x10132f25
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x10132f54
mov ecx, esi
push dword [ebp + 0x18]
push ebx
push dword [ebp + 8]
call fcn.10133070
add esp, 0xc
mov ebx, eax
jmp 0x1013300c
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
test eax, eax
mov dword [ebp - 0x4c], eax
cmovne edi, eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x50], edi
test eax, eax
mov dword [ebp - 0x48], eax
cmovne esi, eax
test ecx, ecx
mov edx, dword [esi + 8]
mov dword [ebp - 0x3c], esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x30], edx
jne 0x10132e2d
xor eax, eax
push eax
push eax
push esi
call fcn.10123c10
mov edx, dword [ebp - 0x30]
add esp, 0xc
mov ebx, eax
test eax, eax
mov ecx, eax
je 0x10133020
mov eax, dword [ecx + 4]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], eax
mov eax, dword [ecx + 8]
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
lea ebx, [ebp - 0x2c]
mov eax, dword [esi + 8]
mov dword [ebp - 0x14], eax
push ebx
push edx
call fcn.10127d30
mov ecx, dword [ebp - 0x30]
add esp, 8
cmp dword [ebx], 0
mov edi, dword [ebp - 0x50]
mov dword [ebp - 0x44], eax
je 0x10132e69
cmp dword [ecx + 0x30], 0
jne 0x10132e95
mov esi, dword [ecx + 0x3c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x10133053
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], ebx
mov ecx, dword [ebp - 0x30]
mov esi, dword [ebp + 0x18]
mov eax, dword [ecx]
mov ebx, dword [esi + 4]
mov esi, dword [edi + 4]
mov ecx, dword [eax + 0xf2]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x40], eax
call dword [section..00cfg]
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x28]
push eax
push ebx
push esi
push dword [ebp - 0x40]
push edx
mov esi, dword [ebp - 0x44]
push esi
call ecx
mov ecx, dword [ebp - 0x30]
add esp, 0x18
mov ebx, eax
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10132eda
cmp dword [ecx + 0x30], 0
jne 0x10132eeb
push dword [ecx + 0x3c]
call sym.nss3.dll_PR_Unlock
mov ecx, dword [ebp - 0x30]
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
push esi
push ecx
call fcn.10127df0
add esp, 0xc
test ebx, ebx
je 0x10132f89
cmp dword [edi + 0x1c], 0
mov esi, dword [ebp + 0x18]
lea ebx, [edi + 0x18]
je 0x10132fbe
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x34]
push esi
push ebx
push dword [ebp + 8]
call fcn.10133070
add esp, 0xc
mov ebx, eax
jmp 0x10132f94
mov eax, dword [edi + 8]
test eax, eax
je 0x10132feb
push ebx
push 0
push 0x11
push dword [edi + 4]
push eax
call fcn.10127630
add esp, 0x14
test eax, eax
jne 0x10132ffa
mov eax, dword [edi + 0x20]
mov dword [edi + 0x30], eax
jmp 0x10132dbf
xor eax, eax
push eax
push eax
mov eax, dword [ebp + 8]
mov esi, eax
push eax
call fcn.10123c10
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov edi, eax
mov edx, eax
push dword [ebp + 0x18]
push ebx
push esi
call fcn.10133070
add esp, 0xc
mov ebx, eax
test edi, edi
je 0x1013300c
push 1
push edi
jmp 0x10132fb4
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x18]
xor ebx, ebx
mov dword [ecx + 8], eax
push dword [ebp - 0x4c]
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
push dword [ebp - 0x48]
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x1013300c
push 1
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
jmp 0x1013300c
mov eax, dword [edi + 8]
test eax, eax
je 0x1013303c
push ebx
push 0
push 0x11
push dword [edi + 4]
push eax
call fcn.10127630
add esp, 0x14
mov ecx, ebx
mov ebx, eax
test eax, eax
jne 0x10132f94
mov eax, dword [edi + 0x20]
mov ebx, ecx
mov dword [edi + 0x30], eax
jmp 0x10132f0e
push 0
push 0xffffe028
call sym.nss3.dll_PR_SetError
add esp, 8
push 0
push 0xffffe040
call sym.nss3.dll_PR_SetError
add esp, 8
xor ebx, ebx
dec ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10192ef0
mov eax, ebx
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x34], 0
jmp 0x10132e3c
push 0
push 0xffffe028
call sym.nss3.dll_PR_SetError
add esp, 8
xor ebx, ebx
dec ebx
jmp 0x10132f94
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov ebx, eax
jmp 0x10132e82