Function at 0x100a5d20
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 0x100a6388
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x100a6388
mov dword [ebp - 0x2c], ecx
push 0
push esi
call fcn.100a3200
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [esi + 0x24], 1
jne 0x100a5d66
mov ecx, esi
xor edx, edx
call fcn.100a1930
mov dword [ebp - 0x14], esi
mov eax, dword [ebx + 0x14]
mov edi, dword [eax]
push dword [0x101de1f0]
mov eax, dword [sym.imp.kernel32.dll_TlsGetValue]
call eax
mov esi, eax
test eax, eax
je 0x100a62f7
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 [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100a6314
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 0x100a5e93
inc dword [edi + 4]
call sym.nss3.dll_PR_Now
mov dword [edi + 0xc], edx
mov dword [edi + 8], eax
mov edi, dword [edi]
test edi, edi
mov eax, dword [ebp + 8]
je 0x100a5dfe
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.1009a580
add esp, 4
push esi
call fcn.100a3300
add esp, 4
test eax, eax
je 0x100a63bd
mov ebx, eax
mov dword [ebp - 0x10], edi
mov eax, dword [eax]
test eax, eax
je 0x100a5e64
xor edi, edi
push eax
call fcn.1009eaa0
add esp, 4
test eax, eax
je 0x100a6395
mov esi, eax
push eax
push dword [ebp - 0x10]
call fcn.100a2d30
add esp, 8
test eax, eax
jne 0x100a638c
mov eax, dword [ebx + edi*4 + 4]
inc edi
test eax, eax
jne 0x100a5e34
push ebx
call fcn.1009eb90
add esp, 4
mov esi, dword [ebp - 0x10]
cmp dword [esi + 0x54], 0
je 0x100a5e80
mov ecx, esi
xor edx, edx
inc edx
call fcn.100a1930
push dword [ebp - 0x14]
call fcn.1009fed0
add esp, 4
mov ebx, dword [ebp + 8]
jmp 0x100a5f94
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x1c], eax
push 0x18
push dword [esi]
call fcn.1009a460
add esp, 8
mov edi, eax
test eax, eax
je 0x100a5ec9
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.1009ae70
add esp, 0xc
test eax, eax
jne 0x100a63d6
call fcn.1009a3e0
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x100a63e3
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebp - 0x14]
add eax, 0x40
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], ecx
mov edi, dword [ecx + 0xc]
mov ebx, dword [edi + 8]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100a6331
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
mov eax, dword [ebp - 0x18]
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 0x100a5fac
inc dword [ebx + 4]
call sym.nss3.dll_PR_Now
mov dword [ebx + 0xc], edx
mov dword [ebx + 8], eax
mov esi, dword [ebp - 0x14]
push esi
push dword [ebx]
call fcn.1009b5d0
add esp, 8
test eax, eax
mov edi, dword [ebp - 0x10]
jne 0x100a63d1
push dword [ebp - 0x1c]
call fcn.1009a6f0
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.1009a580
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 0x100a5d3b
jmp 0x100a6388
push 0
mov edi, dword [ebp - 0x1c]
push edi
call fcn.1009b200
add esp, 8
mov dword [ebp - 0x24], eax
test eax, eax
mov esi, dword [ebp - 0x14]
je 0x100a63eb
push 0x18
push edi
call fcn.1009a460
add esp, 8
test eax, eax
je 0x100a63eb
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 dword [ebx + 0x14], 0
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x100a603c
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.1009a460
add esp, 8
mov ecx, edi
mov edi, eax
test eax, eax
je 0x100a6034
push esi
push ecx
push edi
mov esi, ecx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, esi
add esp, 0xc
mov dword [ebx + 0x14], edi
mov esi, dword [ebp - 0x14]
mov edi, ecx
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x14], 0x100a05e0
push esi
push eax
call fcn.1009b5d0
add esp, 8
test eax, eax
jne 0x100a63d1
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.1009b120
add esp, 0xc
test eax, eax
je 0x100a63d1
push ebx
push eax
mov eax, dword [ebp - 0x28]
push dword [eax + 0xc]
call fcn.1009ae70
add esp, 0xc
test eax, eax
jne 0x100a63d1
test edi, edi
je 0x100a6178
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x18], eax
mov edi, dword [eax + 0x10]
mov ebx, dword [edi + 8]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100a634e
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 0x100a63e6
push 0x18
mov edi, dword [ebp - 0x1c]
push edi
call fcn.1009a460
add esp, 8
test eax, eax
je 0x100a64e3
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.1009a460
add esp, 8
test eax, eax
je 0x100a64e3
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.1009ae70
add esp, 0xc
mov ecx, 3
test eax, eax
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov ebx, 2
je 0x100a617d
jmp 0x100a63f1
mov ecx, 2
mov ebx, dword [esi + 0x50]
test ebx, ebx
je 0x100a5f7b
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 8]
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 [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100a636b
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 0x100a6219
push dword [ebp - 0x24]
push dword [ebx]
call fcn.1009b5d0
add esp, 8
mov esi, eax
inc dword [ebx + 4]
call sym.nss3.dll_PR_Now
mov dword [ebx + 0xc], edx
mov dword [ebx + 8], eax
mov ebx, dword [ebp - 0x20]
test esi, esi
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
je 0x100a5f7b
jmp 0x100a63f1
call fcn.1009a3e0
test eax, eax
mov edi, dword [ebp - 0x10]
je 0x100a64f6
mov ebx, eax
push 1
push eax
call fcn.1009b200
add esp, 8
test eax, eax
mov esi, dword [ebp - 0x14]
je 0x100a64f3
push dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
push eax
call fcn.1009b5d0
add esp, 8
test eax, eax
jne 0x100a64f3
push 0x18
push ebx
call fcn.1009a460
add esp, 8
mov ecx, ebx
test eax, eax
je 0x100a6501
mov ebx, eax
mov eax, dword [ebp - 0x18]
mov dword [ebx], eax
mov dword [ebx + 4], 1
mov edi, ecx
call sym.nss3.dll_PR_Now
mov dword [ebx + 0xc], edx
mov dword [ebx + 8], eax
mov dword [ebp - 0x18], edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], 0
mov esi, dword [esi + 0x50]
xor eax, eax
inc eax
test esi, esi
je 0x100a62a9
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
inc eax
mov dword [ebp - 0x24], esi
mov edi, eax
push eax
push dword [ebp - 0x18]
call fcn.1009a460
add esp, 8
test eax, eax
je 0x100a6512
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.1009ae70
add esp, 0xc
test eax, eax
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
je 0x100a5f7b
jmp 0x100a6525
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x100a5d85
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x100a5db2
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x100a5f1c
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x100a60b5
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x100a61b6
xor eax, eax
jmp 0x100a63c9
push esi
call fcn.1009ea70
add esp, 4
test edi, edi
je 0x100a63b1
xor esi, esi
mov eax, dword [ebx + esi*4]
push dword [eax + 4]
push dword [ebp - 0x10]
call fcn.100a2ef0
add esp, 8
inc esi
cmp edi, esi
jne 0x100a639b
push ebx
call fcn.1009eb90
add esp, 4
mov edi, dword [ebp - 0x10]
push edi
call fcn.1009fed0
add esp, 4
xor eax, eax
dec eax
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
inc ebx
jmp 0x100a63f1
push dword [ebp - 0x10]
call fcn.1009a580
jmp 0x100a64ce
xor ebx, ebx
inc ebx
mov esi, dword [ebp - 0x14]
jmp 0x100a63ee
xor ebx, ebx
inc ebx
mov edi, dword [ebp - 0x10]
push edi
call fcn.1009a580
add esp, 4
mov edi, esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x14]
push edi
push dword [eax + 8]
call fcn.1009af00
add esp, 8
cmp ebx, 2
jb 0x100a64c1
mov dword [ebp - 0x2c], ebx
mov eax, dword [esi + 0x14]
lea ecx, [edi + 0x40]
mov dword [ebp - 0x10], ecx
mov edi, dword [eax + 0xc]
mov ebx, dword [edi + 8]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100a653f
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 0x100a64d1
mov edi, esi
push dword [ebp - 0x14]
push dword [ebx]
call fcn.1009b680
add esp, 8
mov esi, dword [ebx]
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x2c], 3
jne 0x100a64a2
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x100a64a2
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x14]
push eax
push dword [ecx + 0x10]
call fcn.1009af00
add esp, 8
test esi, esi
je 0x100a64c1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
push edi
push dword [eax + 0xc]
call fcn.1009af00
add esp, 8
push esi
call fcn.1009b2a0
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100a64d1
push eax
call fcn.1009a6f0
add esp, 4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
push dword [eax]
call sym.nss3.dll_PR_Unlock
jmp 0x100a63c3
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov ebx, 2
jmp 0x100a63f1
push ebx
jmp 0x100a6502
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x14]
jmp 0x100a63f1
push ecx
call fcn.1009a6f0
add esp, 4
mov ebx, dword [ebp - 0x20]
jmp 0x100a63f1
push dword [ebp - 0x18]
call fcn.1009a6f0
add esp, 4
mov ebx, dword [ebp - 0x20]
jmp 0x100a63e6
push dword [ebp - 0x18]
mov ebx, edi
mov edi, eax
call fcn.1009a6f0
add esp, 4
mov eax, edi
mov edi, ebx
mov ebx, eax
jmp 0x100a63f1
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x100a643f