Function at 0x10084530
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 [0x101f1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ecx, dword [0x101f50a4]
mov ebx, dword [0x101f50a0]
cmp dword [ebp + 0x14], 0
je 0x100845c7
xor esi, esi
push 2
mov dword [ebp - 0x28], ecx
push ecx
push ebx
push esi
push esi
call fcn.1009ca00
add esp, 0x14
test eax, eax
je 0x1008464b
mov edi, eax
push 0x58
push dword [eax]
call fcn.10094240
add esp, 8
test eax, eax
je 0x10084655
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 0x10084660
lea ecx, [esi + 0x30]
push eax
push dword [edx + 8]
push ecx
push dword [esi]
call fcn.10094e70
add esp, 0x10
jmp 0x10084669
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 0x100845f6
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x100845f6
mov edi, ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.1009eb90
mov ecx, edi
add esp, 8
mov edi, eax
test esi, esi
je 0x10084611
test edi, edi
jne 0x10084611
lea eax, [ebp - 0x18]
push eax
push esi
mov esi, ecx
call fcn.100a0e40
mov ecx, esi
add esp, 8
mov edi, eax
test edi, edi
je 0x10084558
lea eax, [edi + 0x30]
lea ecx, [ebp - 0x18]
push 0
push ecx
push eax
call fcn.10094f60
add esp, 0xc
test eax, eax
je 0x100847d5
mov ecx, edi
xor edx, edx
call fcn.1009b6a0
mov esi, eax
test eax, eax
jne 0x100847c1
jmp 0x100847ef
call fcn.100840b0
jmp 0x100847c1
call fcn.100840b0
push edi
jmp 0x100847b7
mov dword [esi + 0x30], eax
mov eax, dword [edx + 8]
mov dword [esi + 0x34], eax
mov ecx, esi
xor edx, edx
call fcn.1009b6a0
test eax, eax
je 0x100847b1
mov edi, eax
lea eax, [esi + 0x38]
push dword [edi + 0x4c]
push dword [edi + 0x50]
push eax
push dword [esi]
call fcn.10094e70
add esp, 0x10
lea eax, [esi + 0x40]
push dword [edi + 0x58]
push dword [edi + 0x5c]
push eax
push dword [esi]
call fcn.10094e70
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.1007b4f0
add esp, 8
mov eax, dword [ebx + 4]
test eax, eax
je 0x100847b6
mov ebx, dword [ebp + 0x10]
mov ecx, esi
add ecx, 0x48
push eax
push dword [ebp - 0x1c]
push ecx
push dword [esi]
call fcn.10094e70
add esp, 0x10
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x100846f3
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test ebx, ebx
je 0x10084711
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.10095930
add esp, 0x10
mov dword [esi + 0x20], eax
mov edi, dword [edi + 0x118]
test edi, edi
je 0x1008473a
cmp byte [edi], 0
je 0x1008473a
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.10095930
add esp, 0x10
mov dword [esi + 0x50], eax
push esi
push dword [ebp - 0x28]
call fcn.1009a8d0
add esp, 8
test eax, eax
je 0x100847b1
mov edi, eax
push esi
call fcn.10099ca0
add esp, 4
mov ecx, edi
xor edx, edx
call fcn.1009b6a0
test eax, eax
je 0x100847ef
mov esi, eax
mov ebx, dword [0x101f5020]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100847ff
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 [0x101f5020]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100847c1
call fcn.100840b0
push esi
call fcn.1009cc00
add esp, 4
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
mov eax, esi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
push edi
call fcn.10099ca0
add esp, 4
push 0
push 0xffffe08a
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100847bf
push edi
call fcn.10099ca0
add esp, 4
call fcn.100840b0
jmp 0x100847bf
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov edi, eax
jmp 0x10084780