Function at 0x101299d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov esi, dword [0x101d2014]
mov eax, dword [ebp + 0xc]
mov ebx, ecx
xor esi, ebp
mov dword [ebp - 0x10], esi
mov esi, dword [ebx + 8]
mov dword [ebp - 0x24], eax
cmp dword [ebx + 4], 1
jne 0x10129a98
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x28], ebx
test al, 1
jne 0x10129aa4
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x11]
mov dword [ebp - 0x1c], eax
mov byte [eax], 0
mov dword [ebp - 0x18], 1
mov edi, dword [esi + 0x3c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x10129e14
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], ebx
mov eax, dword [esi]
mov edi, dword [esi + 0x38]
mov ecx, dword [eax + 0x62]
call dword [section..00cfg]
lea eax, [ebp - 0x20]
push 1
push eax
push dword [ebp - 0x2c]
push edi
call ecx
add esp, 0x10
mov ebx, eax
push dword [esi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
test ebx, ebx
je 0x10129cea
push ebx
call fcn.10115520
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
mov ebx, dword [ebp - 0x28]
jmp 0x10129ab4
push 0
push 0xffffe028
jmp 0x10129dc6
test al, 2
je 0x10129ab4
push dword [ebx + 0x14]
push esi
call fcn.1010f2e0
add esp, 8
cmp dword [esi + 0x30], 0
jne 0x10129ae3
mov edi, dword [esi + 0x3c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x10129e2a
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], ebx
mov ebx, dword [ebp - 0x28]
mov eax, dword [esi]
mov edi, dword [esi + 0x40]
mov ecx, dword [eax + 0x32]
call dword [section..00cfg]
lea eax, [ebp - 0x20]
push eax
push sym.nss3.dll_PR_DuplicateEnvironment
push esi
push 4
push edi
call ecx
add esp, 0x14
test eax, eax
je 0x10129b11
mov eax, dword [esi + 0x38]
mov cl, 1
mov dword [ebp - 0x20], eax
jmp 0x10129b13
xor ecx, ecx
cmp dword [esi + 0x30], 0
jne 0x10129b28
push dword [esi + 0x3c]
mov edi, ecx
call sym.nss3.dll_PR_Unlock
mov ecx, edi
add esp, 4
mov eax, dword [ebp - 0x20]
test cl, cl
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
jne 0x10129b50
cmp dword [esi + 0x30], 0
je 0x10129b50
mov al, 1
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], eax
jmp 0x10129b8b
mov edi, dword [esi + 0x3c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x10129dfe
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], ebx
mov ebx, dword [ebp - 0x28]
mov al, 1
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], eax
xor eax, eax
inc eax
mov dword [ebp - 0x40], eax
mov eax, dword [esi]
mov edi, dword [ebx + 0xc]
mov ecx, dword [eax + 0x86]
call dword [section..00cfg]
push edi
push dword [ebp + 0x18]
push dword [ebp - 0x2c]
call ecx
add esp, 0xc
test eax, eax
je 0x10129c30
cmp byte [ebp - 0x38], 0
mov ebx, eax
je 0x10129bc3
push dword [esi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp byte [ebp - 0x30], 0
jne 0x10129dba
cmp dword [esi + 0x30], 0
jne 0x10129c03
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x30], eax
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
mov dword [ebp - 0x28], eax
je 0x10129e40
mov edi, dword [ebp - 0x30]
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x28]
mov dword [edi + 8], eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x36]
call dword [section..00cfg]
push dword [ebp - 0x2c]
call ecx
add esp, 4
cmp dword [esi + 0x30], 0
jne 0x10129dba
push dword [esi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x10129dba
mov ecx, ebx
mov ebx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x18]
test al, 1
jne 0x10129cfc
mov edx, dword [ecx + 8]
mov ebx, dword [ecx + 0xc]
cmp byte [ebp - 0x34], 0
lea eax, [ebp - 0x11]
mov dword [ebp - 0x20], 0x202
mov dword [ebp - 0x1c], eax
mov byte [eax], 0
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x3c], edx
je 0x10129c95
mov edi, dword [edx + 0x3c]
mov dword [ebp - 0x48], ebx
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x10129e57
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], ebx
mov edx, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x48]
mov eax, dword [edx]
mov edi, dword [edx + 0x38]
mov ecx, dword [eax + 0x62]
call dword [section..00cfg]
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push edi
call ecx
add esp, 0x10
cmp byte [ebp - 0x34], 0
mov ebx, eax
je 0x10129cc6
mov eax, dword [ebp - 0x3c]
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov edi, dword [ebp - 0x44]
test ebx, ebx
je 0x10129de9
push ebx
call fcn.10115520
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
mov ebx, dword [ebp + 0x10]
jmp 0x10129d19
cmp byte [ebp - 0x11], 0
mov ebx, dword [ebp - 0x28]
jne 0x10129aa8
jmp 0x10129ab4
mov edi, dword [ebp - 0x44]
test al, 4
je 0x10129d19
push 1
push dword [ebp - 0x40]
push dword [ecx + 0x14]
push 0
push dword [ebp - 0x2c]
push esi
call fcn.1010f5c0
add esp, 0x18
mov eax, dword [esi]
mov ecx, dword [eax + 0x8a]
call dword [section..00cfg]
lea eax, [ebp - 0x24]
push eax
push edi
push dword [ebp + 0x14]
push ebx
push dword [ebp - 0x2c]
call ecx
add esp, 0x14
cmp byte [ebp - 0x38], 0
mov ebx, eax
je 0x10129d4b
push dword [esi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov edi, dword [ebp + 8]
cmp byte [ebp - 0x30], 0
jne 0x10129db1
cmp dword [esi + 0x30], 0
jne 0x10129d8d
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x30], eax
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
mov dword [ebp - 0x28], eax
je 0x10129e6d
mov edi, dword [ebp - 0x30]
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x28]
mov dword [edi + 8], eax
mov edi, dword [ebp + 8]
mov eax, dword [esi]
mov ecx, dword [eax + 0x36]
call dword [section..00cfg]
push dword [ebp - 0x2c]
call ecx
add esp, 4
cmp dword [esi + 0x30], 0
jne 0x10129db1
push dword [esi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x24]
test ebx, ebx
mov dword [edi], eax
je 0x10129de5
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, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
jmp 0x10129dd1
cmp byte [ebp - 0x11], 0
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ebp + 0x10]
jne 0x10129d03
jmp 0x10129d19
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov ebx, eax
jmp 0x10129b69
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov ebx, eax
jmp 0x10129a40
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov ebx, eax
jmp 0x10129ad3
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov dword [ebp - 0x28], eax
jmp 0x10129bf0
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov ebx, eax
jmp 0x10129c82
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov dword [ebp - 0x28], eax
jmp 0x10129d77