Function at 0x10106d10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [0x101d2014]
mov ebx, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edi, dword [0x101d5788]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x10106fc6
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov esi, dword [ebx + 0x15c]
push dword [0x101d5788]
call sym.nss3.dll_PR_Unlock
add esp, 4
test esi, esi
je 0x10106d7b
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10192ef0
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.100ffab0
call fcn.100ff230
xor esi, esi
test eax, eax
je 0x10106d67
mov ebx, eax
push 0x58
push eax
call fcn.100ff2b0
add esp, 8
test eax, eax
je 0x10106fa8
mov ecx, dword [ebp + 8]
mov edi, eax
xor esi, esi
mov eax, dword [ecx + 0x40]
mov dword [edi + 0x30], eax
mov eax, dword [ecx + 0x44]
mov dword [edi + 0x34], eax
mov dword [edi + 0x24], 1
push 2
push esi
push dword [ecx + 0x11c]
push esi
push ebx
call fcn.101077e0
add esp, 0x14
test eax, eax
je 0x10106fa8
mov edx, dword [ebp + 8]
mov dword [ebp - 0x20], edi
mov esi, eax
mov edi, dword [ebp - 0x20]
lea ecx, [edx + 0x3c]
mov dword [ebp - 0x24], ecx
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
mov esi, edx
mov edi, dword [ebp - 0x20]
lea eax, [edi + 0x38]
push dword [edx + 0x4c]
push dword [edx + 0x50]
push eax
push ebx
call fcn.100ffe70
add esp, 0x10
lea eax, [edi + 0x40]
push dword [esi + 0x58]
push dword [esi + 0x5c]
push eax
push ebx
call fcn.100ffe70
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x24]
call fcn.100e7940
add esp, 8
cmp eax, 0xffffffff
je 0x10106fb6
mov eax, edi
add eax, 0x48
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push eax
push ebx
call fcn.100ffe70
add esp, 0x10
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10106e56
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x118]
test esi, esi
je 0x10106e81
cmp byte [esi], 0
je 0x10106e81
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push esi
push 2
push ebx
call fcn.10100820
add esp, 0x10
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x17c], 0
je 0x10106ef7
push 0x10
push ebx
call fcn.100ff2b0
add esp, 8
test eax, eax
je 0x10106fb6
mov ecx, dword [ebp + 8]
mov esi, eax
mov eax, dword [ecx + 0x17c]
mov eax, dword [eax + 0x13c]
lock inc dword [eax + 8]
mov dword [esi + 4], eax
mov eax, dword [ecx + 0x180]
mov dword [esi], eax
mov dword [esi + 8], 1
mov edi, dword [ecx + 0x154]
test edi, edi
je 0x10106eea
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push edi
push 5
push ebx
call fcn.10100820
add esp, 0x10
mov dword [esi + 0xc], eax
push esi
mov edi, dword [ebp - 0x20]
push edi
call fcn.101078a0
add esp, 8
push 0x34
push 0
call fcn.100ff2b0
add esp, 8
mov ebx, dword [ebp + 8]
test eax, eax
je 0x10106f60
mov dword [eax], 1
mov dword [eax + 4], ebx
mov dword [eax + 8], 0x10105da0
mov dword [eax + 0xc], 0x10105dc0
mov dword [eax + 0x10], 0x10105de0
mov dword [eax + 0x14], 0x10105eb0
mov dword [eax + 0x18], sym.nss3.dll_PR_DuplicateEnvironment
mov dword [eax + 0x1c], 0x10105ef0
mov dword [eax + 0x20], 0x10105f20
mov dword [eax + 0x24], 0x10105f50
mov dword [eax + 0x28], 0x10105ff0
mov dword [eax + 0x2c], 0x101060c0
mov dword [eax + 0x30], 0x101060f0
mov dword [edi + 0x54], eax
mov ebx, edi
mov edi, dword [0x101d5788]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x10106fdc
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
mov dword [edi + 8], esi
mov dword [eax + 0x15c], ebx
push dword [0x101d5788]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov esi, ebx
jmp 0x10106d67
push ebx
call fcn.100ff520
add esp, 4
jmp 0x10106d67
push ebx
call fcn.100ff520
add esp, 4
xor esi, esi
jmp 0x10106d67
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x10106d42
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x10106f7d