Function at 0x10082f90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov edx, dword [ebp + 0xc]
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ecx, dword [0x101f3074]
mov ebx, dword [0x101f3070]
cmp dword [ebp + 0x14], 0
je 0x10083027
xor esi, esi
push 2
mov dword [ebp - 0x28], ecx
push ecx
push ebx
push esi
push esi
call fcn.1009b440
add esp, 0x14
test eax, eax
je 0x100830ab
mov edi, eax
push 0x58
push dword [eax]
call fcn.10092ca0
add esp, 8
test eax, eax
je 0x100830b5
mov esi, eax
mov ecx, dword [ebp + 0x18]
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
movups xmm0, xmmword [edi]
movups xmm1, xmmword [edi + 0x10]
movups xmmword [esi + 0x10], xmm1
movups xmmword [esi], xmm0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
test ecx, ecx
je 0x100830c0
lea ecx, [esi + 0x30]
push eax
push dword [edx + 8]
push ecx
push dword [esi]
call fcn.100938d0
add esp, 0x10
jmp 0x100830c9
mov esi, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x14], eax
xor edi, edi
test ecx, ecx
je 0x10083056
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x10083056
mov edi, ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.1009d5d0
mov ecx, edi
add esp, 8
mov edi, eax
test esi, esi
je 0x10083071
test edi, edi
jne 0x10083071
lea eax, [ebp - 0x18]
push eax
push esi
mov esi, ecx
call fcn.1009f880
mov ecx, esi
add esp, 8
mov edi, eax
test edi, edi
je 0x10082fb8
lea eax, [edi + 0x30]
lea ecx, [ebp - 0x18]
push 0
push ecx
push eax
call fcn.100939c0
add esp, 0xc
test eax, eax
je 0x10083235
mov ecx, edi
xor edx, edx
call fcn.1009a0e0
mov esi, eax
test eax, eax
jne 0x10083221
jmp 0x1008324f
call fcn.10082b10
jmp 0x10083221
call fcn.10082b10
push edi
jmp 0x10083217
mov dword [esi + 0x30], eax
mov eax, dword [edx + 8]
mov dword [esi + 0x34], eax
mov ecx, esi
xor edx, edx
call fcn.1009a0e0
test eax, eax
je 0x10083211
mov edi, eax
lea eax, [esi + 0x38]
push dword [edi + 0x4c]
push dword [edi + 0x50]
push eax
push dword [esi]
call fcn.100938d0
add esp, 0x10
lea eax, [esi + 0x40]
push dword [edi + 0x58]
push dword [edi + 0x5c]
push eax
push dword [esi]
call fcn.100938d0
add esp, 0x10
xor eax, eax
lea ebx, [ebp - 0x24]
mov dword [ebx + 4], eax
mov dword [ebx], eax
mov dword [ebx + 8], eax
mov eax, edi
add eax, 0x3c
push ebx
push eax
call fcn.10079f50
add esp, 8
mov eax, dword [ebx + 4]
test eax, eax
je 0x10083216
mov ebx, dword [ebp + 0x10]
mov ecx, esi
add ecx, 0x48
push eax
push dword [ebp - 0x1c]
push ecx
push dword [esi]
call fcn.100938d0
add esp, 0x10
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10083153
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test ebx, ebx
je 0x10083171
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push ebx
push 5
push dword [esi]
call fcn.10094390
add esp, 0x10
mov dword [esi + 0x20], eax
mov edi, dword [edi + 0x118]
test edi, edi
je 0x1008319a
cmp byte [edi], 0
je 0x1008319a
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push edi
push 2
push dword [esi]
call fcn.10094390
add esp, 0x10
mov dword [esi + 0x50], eax
push esi
push dword [ebp - 0x28]
call fcn.10099310
add esp, 8
test eax, eax
je 0x10083211
mov edi, eax
push esi
call fcn.100986e0
add esp, 4
mov ecx, edi
xor edx, edx
call fcn.1009a0e0
test eax, eax
je 0x1008324f
mov esi, eax
mov ebx, dword [0x101f2ff0]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x1008325f
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
mov dword [esi + 0x150], 1
mov dword [esi + 0x14c], 0
push dword [0x101f2ff0]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x10083221
call fcn.10082b10
push esi
call fcn.1009b640
add esp, 4
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, esi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
push edi
call fcn.100986e0
add esp, 4
push 0
push 0xffffe08a
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x1008321f
push edi
call fcn.100986e0
add esp, 4
call fcn.10082b10
jmp 0x1008321f
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov edi, eax
jmp 0x100831e0