Function at 0x10133070
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 ebx, ecx
mov ecx, dword [ebp + 8]
xor eax, ebp
test edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x30], edx
mov edi, dword [ebx + 8]
mov dword [ebp - 0x20], ecx
je 0x101330a7
mov eax, dword [edx + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [edx + 8]
jmp 0x101330b0
xor eax, eax
mov dword [ebp - 0x1c], 0
lea esi, [ebp - 0x24]
mov dword [ebp - 0x18], eax
push esi
push edi
call fcn.10127d30
add esp, 8
cmp dword [esi], 0
mov dword [ebp - 0x28], eax
je 0x101330ce
cmp dword [edi + 0x30], 0
jne 0x101330fa
mov dword [ebp - 0x2c], ebx
mov ebx, dword [edi + 0x3c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x10133249
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
mov ebx, dword [ebp - 0x2c]
mov eax, dword [edi]
mov esi, dword [ebx + 4]
mov ecx, dword [eax + 0x76]
call dword [section..00cfg]
lea eax, [ebp - 0x20]
push esi
push eax
mov esi, dword [ebp - 0x28]
push esi
call ecx
add esp, 0xc
test eax, eax
je 0x1013316d
mov ebx, eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10133129
cmp dword [edi + 0x30], 0
jne 0x10133137
push dword [edi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
push esi
push edi
call fcn.10127df0
add esp, 0xc
push ebx
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
mov esi, dword [ebp + 0xc]
push dword [ebp - 0x30]
push dword [ebp + 8]
call sym.nss3.dll_PK11_GetBlockSize
add esp, 8
push eax
push esi
call fcn.101274b0
add esp, 8
test eax, eax
je 0x10133217
mov edx, dword [ebp + 0x10]
mov esi, eax
lea ecx, [ebp - 0x14]
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov eax, dword [edi]
mov ebx, dword [edx + 4]
mov edx, dword [esi + 4]
mov ecx, dword [eax + 0x7a]
mov dword [ebp - 0x2c], ebx
mov ebx, dword [esi + 8]
mov dword [ebp - 0x30], edx
call dword [section..00cfg]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x2c]
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x28]
call ecx
add esp, 0x14
mov ebx, eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x101331d9
cmp dword [edi + 0x30], 0
jne 0x101331e7
push dword [edi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
push dword [ebp - 0x28]
push edi
call fcn.10127df0
add esp, 0xc
push 1
push esi
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
test ebx, ebx
mov dword [ecx + 8], eax
jne 0x10133142
xor esi, esi
jmp 0x10133159
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10133224
cmp dword [edi + 0x30], 0
jne 0x10133232
push dword [edi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
push dword [ebp - 0x28]
push edi
call fcn.10127df0
add esp, 0xc
mov eax, 0xffffe013
jmp 0x1013314b
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x101330ea