Function at 0x100a2170
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov ebx, dword [ebp + 8]
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edi, dword [0x101dec48]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100a242a
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov ebx, dword [ebx + 0x15c]
push dword [0x101dec48]
call sym.nss3.dll_PR_Unlock
add esp, 4
test ebx, ebx
je 0x100a21db
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.1009ace0
call fcn.1009a3e0
xor ebx, ebx
test eax, eax
je 0x100a21c7
mov edi, eax
push 0x58
push eax
call fcn.1009a460
add esp, 8
test eax, eax
je 0x100a240c
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x40]
mov dword [eax + 0x30], ecx
mov ecx, dword [esi + 0x44]
mov dword [eax + 0x34], ecx
mov dword [eax + 0x24], 1
xor ebx, ebx
push 2
push ebx
push dword [esi + 0x11c]
push ebx
push edi
mov esi, eax
call fcn.100a2c70
add esp, 0x14
test eax, eax
je 0x100a240c
mov ebx, dword [ebp + 8]
lea ecx, [ebx + 0x3c]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax + 0x20]
mov dword [esi + 0x20], ecx
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
movups xmmword [esi + 0x10], xmm1
movups xmmword [esi], xmm0
lea eax, [esi + 0x38]
push dword [ebx + 0x4c]
push dword [ebx + 0x50]
push eax
push edi
call fcn.1009b0b0
add esp, 0x10
lea eax, [esi + 0x40]
push dword [ebx + 0x58]
push dword [ebx + 0x5c]
push eax
push edi
call fcn.1009b0b0
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
call fcn.10081ed0
add esp, 8
cmp eax, 0xffffffff
je 0x100a241a
mov dword [ebp - 0x20], esi
add esi, 0x48
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push esi
push edi
call fcn.1009b0b0
add esp, 0x10
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100a22b7
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x118]
test ebx, ebx
je 0x100a22e5
cmp byte [ebx], 0
je 0x100a22e5
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push ebx
push 2
push edi
call fcn.1009bae0
add esp, 0x10
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x50], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x17c], 0
je 0x100a235d
push 0x10
push edi
call fcn.1009a460
add esp, 8
test eax, eax
je 0x100a241a
mov ebx, eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x17c]
mov eax, dword [eax + 0x13c]
lock inc dword [eax + 8]
mov dword [ebx + 4], eax
mov eax, dword [ecx + 0x180]
mov dword [ebx], eax
mov dword [ebx + 8], 1
mov esi, dword [ecx + 0x154]
test esi, esi
je 0x100a234e
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push esi
push 5
push edi
call fcn.1009bae0
add esp, 0x10
mov dword [ebx + 0xc], eax
push ebx
push dword [ebp - 0x20]
call fcn.100a2d30
add esp, 8
mov esi, dword [ebp + 8]
push 0x34
push 0
call fcn.1009a460
add esp, 8
test eax, eax
je 0x100a23c3
mov dword [eax], 1
mov dword [eax + 4], esi
mov dword [eax + 8], 0x100a11e0
mov dword [eax + 0xc], 0x100a1200
mov dword [eax + 0x10], 0x100a1220
mov dword [eax + 0x14], 0x100a12f0
mov dword [eax + 0x18], sym.nss3.dll_SECMOD_CanDeleteInternalModule
mov dword [eax + 0x1c], 0x100a1330
mov dword [eax + 0x20], 0x100a1360
mov dword [eax + 0x24], 0x100a1390
mov dword [eax + 0x28], 0x100a1430
mov dword [eax + 0x2c], 0x100a1500
mov dword [eax + 0x30], 0x100a1530
mov esi, dword [ebp - 0x20]
mov dword [esi + 0x54], eax
mov ebx, dword [0x101dec48]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100a2447
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
mov eax, dword [ebp + 8]
mov dword [eax + 0x15c], esi
push dword [0x101dec48]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov ebx, esi
jmp 0x100a21c7
push edi
call fcn.1009a6f0
add esp, 4
jmp 0x100a21c7
push edi
call fcn.1009a6f0
add esp, 4
xor ebx, ebx
jmp 0x100a21c7
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x100a21a2
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov edi, eax
jmp 0x100a23e1