Function at 0x10101400
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x88
mov eax, dword [0x101d2014]
mov edi, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x48]
cmp dword [eax + 0xc], 0
je 0x10101430
xor ebx, ebx
cmp dword [eax + 0x18], 0
sete bl
jmp 0x101016dc
mov ebx, dword [edi + 0x4c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x101018bf
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
mov esi, dword [edi + 0x3c]
mov ebx, dword [edi + 0x54]
cmp dword [0x101d4d40], 0
je 0x1010198b
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x101018d5
cmp ebx, eax
je 0x101015a2
cmp byte [0x101d5804], 0
jne 0x101014a2
cmp dword [0x101d4d40], 0
je 0x1010199f
mov byte [0x101d5804], 1
cmp dword [0x101d4d40], 0
je 0x10101995
call dword [sym.imp.winmm.dll_timeGetTime]
cmp esi, 2
jne 0x101014d6
sub eax, dword [edi + 0x38]
xor ecx, ecx
cmp byte [0x101d5804], 0
mov edx, 0x3e8
cmove edx, ecx
cmp eax, edx
jb 0x101015a2
push dword [edi + 0x4c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [edi + 0x44]
test eax, eax
je 0x101015b8
mov ebx, dword [edi + 0x4c]
mov dword [ebp - 0x90], eax
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x101018e9
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
cmp dword [edi + 0x54], 0
je 0x1010152d
push 0xffffffffffffffff
push dword [edi + 0x50]
call sym.nss3.dll_PR_WaitCondVar
add esp, 8
jmp 0x10101518
mov esi, dword [edi + 0x3c]
cmp dword [0x101d4d40], 0
je 0x101019a9
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x101018ff
test eax, eax
je 0x101015a2
cmp byte [0x101d5804], 0
jne 0x10101572
cmp dword [0x101d4d40], 0
je 0x101019c7
mov byte [0x101d5804], 1
cmp dword [0x101d4d40], 0
je 0x101019b3
call dword [sym.imp.winmm.dll_timeGetTime]
cmp esi, 2
jne 0x101015bf
sub eax, dword [edi + 0x38]
xor ecx, ecx
cmp byte [0x101d5804], 0
mov edx, 0x3e8
cmove edx, ecx
cmp eax, edx
jae 0x101015bf
mov ebx, dword [edi + 0x20]
push dword [edi + 0x4c]
call sym.nss3.dll_PR_Unlock
add esp, 4
and ebx, 1
jmp 0x101016dc
xor ebx, ebx
jmp 0x101016dc
mov dword [edi + 0x3c], 1
cmp dword [0x101d4d40], 0
je 0x101019bd
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10101913
mov dword [edi + 0x54], eax
push dword [edi + 0x4c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov ebx, dword [edi + 0x40]
test ebx, ebx
je 0x1010161f
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x10101941
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
mov eax, dword [ebp - 0x90]
mov esi, dword [edi + 0x1c]
mov ecx, dword [eax + 0x16]
call dword [section..00cfg]
lea eax, [ebp - 0x78]
push eax
push esi
call ecx
add esp, 8
mov esi, eax
mov eax, dword [edi + 0x40]
test eax, eax
je 0x1010164d
push eax
call sym.nss3.dll_PR_Unlock
add esp, 4
test esi, esi
je 0x101016f3
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 0xc]
mov byte [eax], 0
xor ebx, ebx
mov eax, dword [edi + 0x4c]
mov dword [ebp - 0x8c], eax
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
mov dword [ebp - 0x90], eax
je 0x10101927
mov esi, dword [ebp - 0x8c]
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x90]
mov dword [esi + 8], eax
cmp dword [edi + 0x3c], 1
jne 0x101016bf
cmp dword [0x101d4d40], 0
je 0x101019d1
call dword [sym.imp.winmm.dll_timeGetTime]
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 2
mov dword [edi + 0x54], 0
push dword [edi + 0x50]
call sym.nss3.dll_PR_NotifyAllCondVar
add esp, 4
push dword [edi + 0x4c]
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, 0x88
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp - 0x18]
mov dword [edi + 0x20], ecx
test cl, 1
mov eax, dword [edi + 0x18]
jne 0x101017d5
xor ebx, ebx
test eax, eax
je 0x10101660
mov esi, dword [eax + 0x24]
test esi, esi
je 0x1010179c
mov eax, dword [esi]
test eax, eax
mov dword [ebp - 0x8c], eax
je 0x1010175f
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
mov dword [ebp - 0x94], eax
je 0x10101971
mov eax, dword [ebp - 0x8c]
add eax, 0x1c
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x8c]
mov dword [ecx + 8], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x1010178d
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x8c], eax
mov ecx, dword [ecx + 0x36]
call dword [section..00cfg]
push dword [ebp - 0x8c]
call ecx
add esp, 4
mov dword [esi + 4], 0
mov eax, dword [esi]
test eax, eax
je 0x1010179c
push eax
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 0xc]
cmp byte [eax], 0
je 0x101017bf
mov byte [eax], 0
mov eax, dword [edi + 0x18]
push eax
push dword [eax + 0x28]
call fcn.1010a2b0
add esp, 8
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 0xc]
mov byte [eax], 0
mov eax, dword [edi + 0x18]
push dword [eax + 0x30]
call fcn.10103940
add esp, 4
jmp 0x10101660
mov ebx, dword [eax + 0x24]
test ebx, ebx
je 0x1010187e
mov esi, dword [ebx]
test esi, esi
je 0x10101813
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
mov dword [ebp - 0x8c], eax
je 0x10101957
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x8c]
mov dword [esi + 8], eax
mov esi, dword [ebx + 4]
test esi, esi
je 0x10101862
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 0x3e]
call dword [section..00cfg]
lea eax, [ebp - 0x88]
push eax
push esi
call ecx
add esp, 8
test eax, eax
je 0x10101859
mov eax, dword [ebp - 0x90]
mov esi, dword [ebx + 4]
mov ecx, dword [eax + 0x36]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
mov dword [ebx + 4], 0
cmp dword [ebx + 4], 0
sete cl
jmp 0x10101864
mov cl, 1
mov eax, dword [ebx]
test eax, eax
je 0x10101877
push eax
mov ebx, ecx
call sym.nss3.dll_PR_Unlock
mov ecx, ebx
add esp, 4
test cl, cl
je 0x101018b7
mov eax, dword [edi + 0x18]
push eax
push dword [eax + 0x28]
call fcn.1010a2b0
add esp, 8
mov eax, dword [edi + 0x18]
push dword [eax + 0x30]
call fcn.10103940
add esp, 4
push edi
call fcn.1010c210
add esp, 4
test eax, eax
je 0x101018b7
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 0xc]
mov byte [eax], 0
and byte [edi + 0x20], 0xfe
jmp 0x1010165e
xor ebx, ebx
inc ebx
jmp 0x10101660
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x10101449
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
jmp 0x1010147d
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x1010150b
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
jmp 0x10101551
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
jmp 0x101015e7
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov dword [ebp - 0x90], eax
jmp 0x10101683
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x10101612
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov dword [ebp - 0x8c], eax
jmp 0x10101800
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov dword [ebp - 0x94], eax
jmp 0x10101740
call sym.nss3.dll_PR_Init
jmp 0x10101469
call fcn.100da0a0
jmp 0x101014af
call fcn.100da0a0
jmp 0x1010149b
call sym.nss3.dll_PR_Init
jmp 0x1010153d
call fcn.100da0a0
jmp 0x1010157f
call sym.nss3.dll_PR_Init
jmp 0x101015d3
call fcn.100da0a0
jmp 0x1010156b
call fcn.100da0a0
jmp 0x101016af