Function at 0x10104420
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x101d2014]
mov ebx, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
lock inc dword [edi + 8]
push edi
call fcn.10101400
add esp, 4
mov esi, eax
push edi
call fcn.10101380
add esp, 4
test esi, esi
je 0x101044ac
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebx + 4]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x10104672
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], edi
xor ebx, ebx
cmp esi, 0xce534351
je 0x101044b3
cmp esi, 1
mov eax, 0
je 0x101044b8
cmp esi, 0xce534353
jne 0x101045ce
xor eax, eax
inc eax
jmp 0x101044b8
xor ebx, ebx
jmp 0x10104612
mov eax, 2
mov edi, dword [ebp + 8]
mov edx, eax
mov esi, eax
mov ecx, edi
call fcn.10104390
test eax, eax
je 0x10104607
mov edi, dword [edi + esi*4 + 0x24]
mov dword [ebp - 0x18], esi
test edi, edi
je 0x1010452d
mov edx, dword [edi]
test edx, edx
je 0x1010452d
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ecx, dword [eax + 4]
mov eax, 8
mov dword [ebp - 0x1c], ecx
mov edx, dword [edx + 4]
cmp dword [edx + 4], ecx
jne 0x1010450b
mov ecx, edi
mov edi, dword [edx]
mov ebx, dword [ebp + 0xc]
cmp edi, dword [ebx]
mov edi, ecx
mov ecx, dword [ebp - 0x1c]
je 0x10104626
mov edx, dword [edi + esi*4 + 4]
inc esi
add eax, 4
test edx, edx
jne 0x101044ef
test esi, esi
je 0x1010452d
push eax
push edi
call fcn.100ff760
add esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
jmp 0x10104541
push 8
push 0
call fcn.100ff2b0
add esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
xor esi, esi
mov dword [ecx + edx*4 + 0x24], eax
test eax, eax
je 0x101045c4
push 0x10
push 0
call fcn.100ff2b0
add esp, 8
mov ebx, eax
test eax, eax
je 0x101045a9
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov dword [ebx], eax
mov eax, dword [ecx + 4]
lock inc dword [eax + 8]
mov dword [ebx + 4], eax
mov eax, dword [ecx + 8]
mov dword [ebx + 8], eax
mov edi, dword [ecx + 0xc]
test edi, edi
je 0x101045a9
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
inc eax
mov dword [ebp - 0x1c], eax
push eax
push 0
call fcn.100ff2b0
add esp, 8
test eax, eax
je 0x101045a6
push dword [ebp - 0x1c]
push edi
push eax
mov edi, eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, edi
add esp, 0xc
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x101045d3
test eax, eax
jne 0x101045e2
lea eax, [ebp - 0x14]
mov ecx, ebx
mov edx, 0x1019ef34
push eax
push 0xa
jmp 0x101045ef
xor ebx, ebx
mov dword [ebp - 0x14], 0xffffffff
dec ebx
mov edi, dword [ebp + 8]
jmp 0x10104607
lea eax, [ebp - 0x14]
mov ecx, ebx
mov edx, 0x1019ef5c
push eax
push 0xb
jmp 0x101045ef
lea eax, [ebp - 0x14]
mov ecx, ebx
mov edx, 0x1019ef88
push eax
push 7
call fcn.101048c0
add esp, 8
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [edi + ecx*4 + 0x24]
mov dword [ecx + esi*4], eax
mov ebx, dword [ebp - 0x14]
push dword [edi + 4]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10192ef0
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [edx + 4], 0
mov eax, dword [edi + esi*4]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x10104659
push dword [ebx + 4]
call fcn.10101a60
add esp, 4
push dword [ebx + 0xc]
call fcn.100ff3c0
add esp, 4
push ebx
call fcn.100ff3c0
add esp, 4
mov eax, dword [edi + esi*4]
push dword [eax]
call fcn.100ff520
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov eax, dword [eax + ecx*4 + 0x24]
jmp 0x10104545
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov edi, eax
jmp 0x1010447a