Function at 0x1010a6a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
cmp dword [ebp + 0x10], 0
je 0x1010ace7
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x1010ace7
mov dword [ebp - 0x2c], ecx
push 0
push esi
call fcn.10107d40
add esp, 8
cmp dword [esi + 0x24], 1
mov dword [ebp - 0x10], eax
jne 0x1010a6e6
mov ecx, esi
xor edx, edx
call fcn.101064f0
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x14], esi
mov edi, dword [eax]
push dword [0x101d4d30]
mov eax, dword [sym.imp.kernel32.dll_TlsGetValue]
call eax
mov esi, eax
test eax, eax
je 0x1010ac79
lea eax, [edi + 0x1c]
push eax
mov eax, dword [sym.imp.kernel32.dll_EnterCriticalSection]
call eax
mov dword [edi + 8], esi
mov eax, dword [ebx + 0x14]
mov ebx, dword [eax + 8]
mov edi, dword [ebx + 8]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x1010ac8f
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov esi, dword [ebp - 0x14]
push esi
push dword [ebx + 0xc]
call sym.nss3.dll_PL_HashTableLookup
add esp, 8
mov edi, eax
push dword [ebx + 8]
call sym.nss3.dll_PR_Unlock
add esp, 4
test edi, edi
je 0x1010a813
inc dword [edi + 4]
call sym.nss3.dll_PR_Now
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
mov eax, dword [ebp + 8]
mov edi, dword [edi]
test edi, edi
je 0x1010a77e
lock inc dword [edi + 4]
mov eax, dword [eax + 0x14]
push dword [eax]
call sym.nss3.dll_PR_Unlock
add esp, 4
push dword [ebp - 0x10]
call fcn.100ff3c0
add esp, 4
push esi
call fcn.10107e50
add esp, 4
test eax, eax
je 0x1010ad1c
mov ebx, eax
mov eax, dword [eax]
mov dword [ebp - 0x10], edi
test eax, eax
je 0x1010a7e4
xor edi, edi
push eax
call fcn.10103740
add esp, 4
test eax, eax
je 0x1010acf4
mov esi, eax
push eax
push dword [ebp - 0x10]
call fcn.101078a0
add esp, 8
test eax, eax
jne 0x1010aceb
mov eax, dword [ebx + edi*4 + 4]
inc edi
test eax, eax
jne 0x1010a7b4
push ebx
call fcn.10103830
add esp, 4
mov esi, dword [ebp - 0x10]
cmp dword [esi + 0x54], 0
je 0x1010a800
xor edx, edx
mov ecx, esi
inc edx
call fcn.101064f0
push dword [ebp - 0x14]
call fcn.10104ae0
add esp, 4
mov ebx, dword [ebp + 8]
jmp 0x1010a914
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x1c], eax
push 0x18
push dword [esi]
call fcn.100ff2b0
add esp, 8
mov edi, eax
test eax, eax
je 0x1010a849
mov dword [edi], esi
mov dword [edi + 4], 1
call sym.nss3.dll_PR_Now
mov dword [edi + 0xc], edx
mov dword [edi + 8], eax
mov dword [edi + 0x14], 0
push edi
push esi
mov eax, dword [ebp - 0x1c]
push dword [eax + 8]
call fcn.100ffc40
add esp, 0xc
test eax, eax
jne 0x1010ad30
call fcn.100ff230
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x1010ad3d
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebp - 0x14]
mov edi, dword [ecx + 0xc]
add eax, 0x40
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], eax
mov ebx, dword [edi + 8]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x1010aca5
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x18]
mov dword [ebx + 8], esi
push eax
push dword [edi + 0xc]
call sym.nss3.dll_PL_HashTableLookup
add esp, 8
mov ebx, eax
push dword [edi + 8]
call sym.nss3.dll_PR_Unlock
add esp, 4
test ebx, ebx
je 0x1010a92c
inc dword [ebx + 4]
call sym.nss3.dll_PR_Now
mov esi, dword [ebp - 0x14]
mov dword [ebx + 0xc], edx
mov dword [ebx + 8], eax
push esi
push dword [ebx]
call fcn.10100360
add esp, 8
mov edi, dword [ebp - 0x10]
test eax, eax
jne 0x1010ad4b
push dword [ebp - 0x1c]
call fcn.100ff520
add esp, 4
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x14]
push dword [eax]
call sym.nss3.dll_PR_Unlock
add esp, 4
push edi
call fcn.100ff3c0
add esp, 4
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + ecx*4], esi
inc ecx
cmp ecx, dword [ebp + 0x10]
jne 0x1010a6bb
jmp 0x1010ace7
push 0
mov edi, dword [ebp - 0x1c]
push edi
call fcn.100fffc0
add esp, 8
mov esi, dword [ebp - 0x14]
test eax, eax
mov dword [ebp - 0x24], eax
je 0x1010ad48
push 0x18
push edi
call fcn.100ff2b0
add esp, 8
test eax, eax
je 0x1010ad48
mov ebx, eax
mov eax, dword [ebp - 0x24]
mov dword [ebx], eax
mov dword [ebx + 4], 1
call sym.nss3.dll_PR_Now
mov dword [ebx + 0xc], edx
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edi
mov edi, dword [ebp - 0x10]
mov dword [ebx + 0x14], 0
test edi, edi
je 0x1010a9bc
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov esi, eax
inc esi
push esi
push dword [ebp - 0x1c]
call fcn.100ff2b0
add esp, 8
mov ecx, edi
mov edi, eax
test eax, eax
je 0x1010a9b4
push esi
push ecx
push edi
mov esi, ecx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, esi
add esp, 0xc
mov esi, dword [ebp - 0x14]
mov dword [ebx + 0x14], edi
mov edi, ecx
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x14], 0x101051a0
push esi
push eax
call fcn.10100360
add esp, 8
test eax, eax
jne 0x1010ad4b
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.100ffee0
add esp, 0xc
test eax, eax
je 0x1010ad4b
push ebx
push eax
mov eax, dword [ebp - 0x28]
push dword [eax + 0xc]
call fcn.100ffc40
add esp, 0xc
test eax, eax
jne 0x1010ad4b
test edi, edi
je 0x1010aaf8
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov edi, dword [eax + 0x10]
mov dword [ebp - 0x18], eax
mov ebx, dword [edi + 8]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x1010acbb
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
push dword [ebp - 0x10]
push dword [edi + 0xc]
call sym.nss3.dll_PL_HashTableLookup
add esp, 8
mov esi, eax
push dword [edi + 8]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov ebx, 2
test esi, esi
jne 0x1010ad40
push 0x18
mov edi, dword [ebp - 0x1c]
push edi
call fcn.100ff2b0
add esp, 8
test eax, eax
je 0x1010ae40
mov ebx, eax
mov eax, dword [ebp - 0x24]
mov dword [ebx], eax
mov dword [ebx + 4], 1
call sym.nss3.dll_PR_Now
mov dword [ebx + 0xc], edx
mov dword [ebx + 8], eax
mov dword [ebx + 0x14], 0
push dword [ebp - 0x10]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov esi, eax
inc esi
push esi
push edi
call fcn.100ff2b0
add esp, 8
test eax, eax
je 0x1010ae40
mov edi, eax
push esi
push dword [ebp - 0x10]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push ebx
push edi
mov eax, dword [ebp - 0x18]
push dword [eax + 0x10]
call fcn.100ffc40
add esp, 0xc
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov ecx, 3
test eax, eax
mov ebx, 2
je 0x1010aafd
jmp 0x1010ad4e
mov ecx, 2
mov ebx, dword [esi + 0x50]
test ebx, ebx
je 0x1010a8fb
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x1010acd1
mov edi, dword [ebp - 0x18]
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
push ebx
mov esi, dword [ebp - 0x28]
push dword [esi + 0xc]
call sym.nss3.dll_PL_HashTableLookup
add esp, 8
mov ebx, eax
push dword [esi + 8]
call sym.nss3.dll_PR_Unlock
add esp, 4
test ebx, ebx
je 0x1010ab99
push dword [ebp - 0x24]
push dword [ebx]
call fcn.10100360
add esp, 8
inc dword [ebx + 4]
mov esi, eax
call sym.nss3.dll_PR_Now
test esi, esi
mov dword [ebx + 0xc], edx
mov dword [ebx + 8], eax
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
je 0x1010a8fb
jmp 0x1010ad4e
call fcn.100ff230
mov edi, dword [ebp - 0x10]
test eax, eax
je 0x1010ae53
mov ebx, eax
push 1
push eax
call fcn.100fffc0
add esp, 8
mov esi, dword [ebp - 0x14]
test eax, eax
je 0x1010ae50
push dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
push eax
call fcn.10100360
add esp, 8
test eax, eax
jne 0x1010ae50
push 0x18
push ebx
call fcn.100ff2b0
add esp, 8
mov ecx, ebx
test eax, eax
je 0x1010ae5e
mov ebx, eax
mov eax, dword [ebp - 0x18]
mov edi, ecx
mov dword [ebx], eax
mov dword [ebx + 4], 1
call sym.nss3.dll_PR_Now
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], 0
mov eax, 1
mov dword [ebp - 0x18], edi
mov esi, dword [esi + 0x50]
test esi, esi
je 0x1010ac2b
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
inc eax
mov edi, eax
mov dword [ebp - 0x24], esi
push eax
push dword [ebp - 0x18]
call fcn.100ff2b0
add esp, 8
test eax, eax
je 0x1010ae6f
mov esi, eax
push edi
push dword [ebp - 0x24]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push ebx
push esi
mov eax, dword [ebp - 0x30]
push dword [eax + 0x14]
call fcn.100ffc40
add esp, 0xc
test eax, eax
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
je 0x1010a8fb
jmp 0x1010ae82
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x1010a705
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x1010a732
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x1010a89c
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x1010aa35
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x1010ab36
xor eax, eax
jmp 0x1010ad28
push esi
call fcn.10103710
add esp, 4
test edi, edi
je 0x1010ad10
xor esi, esi
mov eax, dword [ebx + esi*4]
push dword [eax + 4]
push dword [ebp - 0x10]
call fcn.10107a60
add esp, 8
inc esi
cmp edi, esi
jne 0x1010acfa
push ebx
call fcn.10103830
add esp, 4
mov edi, dword [ebp - 0x10]
push edi
call fcn.10104ae0
add esp, 4
xor eax, eax
dec eax
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [ebp - 0x10]
call fcn.100ff3c0
jmp 0x1010ae2b
xor ebx, ebx
inc ebx
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
jmp 0x1010ad4e
mov edi, dword [ebp - 0x10]
xor ebx, ebx
inc ebx
push edi
call fcn.100ff3c0
add esp, 4
mov edi, esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x14]
push edi
push dword [eax + 8]
call fcn.100ffcd0
add esp, 8
cmp ebx, 2
jb 0x1010ae1e
mov eax, dword [esi + 0x14]
lea ecx, [edi + 0x40]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x10], ecx
mov edi, dword [eax + 0xc]
mov ebx, dword [edi + 8]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x1010ae9c
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
mov esi, dword [ebp - 0x10]
push esi
push dword [edi + 0xc]
call sym.nss3.dll_PL_HashTableLookup
add esp, 8
mov ebx, eax
push dword [edi + 8]
call sym.nss3.dll_PR_Unlock
add esp, 4
test ebx, ebx
je 0x1010ae2e
mov edi, esi
push dword [ebp - 0x14]
push dword [ebx]
call fcn.10100400
add esp, 8
mov eax, dword [ebx + 0x10]
mov esi, dword [ebx]
cmp dword [ebp - 0x2c], 3
mov dword [ebp - 0x1c], eax
jne 0x1010adff
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x1010adff
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x14]
push eax
push dword [ecx + 0x10]
call fcn.100ffcd0
add esp, 8
test esi, esi
je 0x1010ae1e
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
push edi
push dword [eax + 0xc]
call fcn.100ffcd0
add esp, 8
push esi
call fcn.10100060
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1010ae2e
push eax
call fcn.100ff520
add esp, 4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
push dword [eax]
call sym.nss3.dll_PR_Unlock
jmp 0x1010ad22
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov ebx, 2
jmp 0x1010ad4e
push ebx
jmp 0x1010ae5f
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x14]
jmp 0x1010ad4e
push ecx
call fcn.100ff520
add esp, 4
mov ebx, dword [ebp - 0x20]
jmp 0x1010ad4e
push dword [ebp - 0x18]
call fcn.100ff520
add esp, 4
mov ebx, dword [ebp - 0x20]
jmp 0x1010ad40
push dword [ebp - 0x18]
mov ebx, edi
mov edi, eax
call fcn.100ff520
add esp, 4
mov eax, edi
mov edi, ebx
mov ebx, eax
jmp 0x1010ad4e
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x1010ad9c