Function at 0x601c5620
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
xor ebx, ebx
xor esi, esi
cmp eax, 3
push edi
jle 0x601c563b
mov dword [esp + 0x20], 3
jmp 0x601c5643
cmp eax, ebx
jge 0x601c5643
mov dword [esp + 0x20], ebx
cmp dword [0x601d3208], ebx
jne 0x601c5650
call fcn.601bba70
mov eax, dword [esp + 0x30]
test ah, 2
jne 0x601c565e
call fcn.601c7410
mov ebp, dword [esp + 0x24]
cmp ebp, ebx
jne 0x601c566b
mov ebp, 1
cmp dword [0x601d320c], ebx
je 0x601c567c
mov ebp, 1
mov edx, ebp
jmp 0x601c568f
cmp ebp, 1
je 0x601c5686
cmp ebp, 2
jne 0x601c568d
mov edx, 1
jmp 0x601c568f
xor edx, edx
mov eax, dword [esp + 0x2c]
cmp eax, ebx
jne 0x601c5699
xor eax, eax
mov ecx, dword [0x601d335c]
mov edi, 1
shl edi, cl
lea edi, [edi + eax - 1]
shr edi, cl
shl edi, cl
cmp edx, ebx
je 0x601c5802
mov ebx, dword [esp + 0x30]
mov eax, dword [0x601d32ec]
and bh, 0xfd
or bl, 0x80
test eax, eax
jbe 0x601c56ef
mov eax, dword [0x601d32e0]
push eax
call sym.nspr4.dll_PR_Lock
mov eax, dword [0x601d32ec]
add esp, 4
test eax, eax
jne 0x601c571a
mov ecx, dword [0x601d32e0]
push ecx
call sym.nspr4.dll_PR_Unlock
add esp, 4
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ebx
push edi
push eax
mov eax, dword [esp + 0x24]
push ebp
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
call sym.nspr4.dll__PR_NativeCreateThread
add esp, 0x20
mov esi, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov edx, dword [0x601d32d0]
mov eax, dword [edx + 4]
mov ecx, dword [edx]
lea esi, [edx - 0xb4]
mov dword [eax], ecx
mov edx, dword [esi + 0xb4]
mov eax, dword [esi + 0xb8]
mov dword [edx + 4], eax
mov edi, dword [0x601d32ec]
mov ecx, dword [0x601d32e0]
dec edi
push ecx
mov dword [0x601d32ec], edi
call sym.nspr4.dll_PR_Unlock
push esi
call fcn.601c5af0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esi + 8], eax
mov eax, ebx
add esp, 8
or al, 0x80
cmp ecx, 1
mov dword [esi + 0xc], edx
mov dword [esi + 0xdc], eax
jne 0x601c578e
or al, 1
push 0x601d3320
mov dword [esi + 0xdc], eax
jmp 0x601c5793
push 0x601d3334
call sym.nspr4.dll_PR_AtomicIncrement
mov eax, dword [esp + 0x2c]
add esp, 4
test eax, eax
mov eax, dword [esi + 0xe4]
jne 0x601c57c1
test eax, eax
jne 0x601c57d8
mov ecx, dword [0x601d3318]
push ecx
call sym.nspr4.dll_PR_NewCondVar
mov dword [esi + 0xe4], eax
jmp 0x601c57d5
test eax, eax
je 0x601c57d8
push eax
call sym.nspr4.dll_PR_DestroyCondVar
mov dword [esi + 0xe4], 0
add esp, 4
mov eax, dword [esp + 0x20]
lea edx, [esi + 0xfc]
push eax
push edx
mov dword [esi + 4], eax
call fcn.601c72e0
push esi
mov dword [esi], 2
call fcn.601c74d0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp dword [0x601d32e4], ebx
jbe 0x601c5830
mov edx, dword [0x601d32e0]
push edx
call sym.nspr4.dll_PR_Lock
mov eax, dword [0x601d32e4]
add esp, 4
cmp eax, ebx
jne 0x601c5858
mov eax, dword [0x601d32e0]
push eax
call sym.nspr4.dll_PR_Unlock
add esp, 4
push edi
call fcn.601c4d30
mov edx, eax
add esp, 4
cmp edx, ebx
jne 0x601c5978
push ebx
push 0xffffe890
call sym.nspr4.dll_PR_SetError
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [0x601d32f0]
cmp eax, 0x601d32f0
je 0x601c58b2
mov ecx, dword [eax - 0xa4]
lea esi, [eax - 0xb4]
cmp dword [ecx + 0x1c], edi
jb 0x601c587d
cmp dword [esi + 0xe0], ebx
je 0x601c588a
mov eax, dword [eax]
xor esi, esi
cmp eax, 0x601d32f0
jne 0x601c5864
jmp 0x601c58b2
mov edx, dword [esi + 0xb8]
mov eax, dword [esi + 0xb4]
mov dword [edx], eax
mov ecx, dword [esi + 0xb4]
mov edx, dword [esi + 0xb8]
mov dword [ecx + 4], edx
mov eax, dword [0x601d32e4]
dec eax
mov dword [0x601d32e4], eax
mov eax, dword [0x601d32e0]
push eax
call sym.nspr4.dll_PR_Unlock
add esp, 4
cmp esi, ebx
je 0x601c5830
push esi
call fcn.601c5af0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x2c]
add esp, 4
cmp eax, ebx
mov eax, dword [esi + 0xe4]
mov dword [esi + 0xc], ecx
mov dword [esi + 8], edx
jne 0x601c5963
cmp eax, ebx
jne 0x601c590d
mov ecx, dword [0x601d3318]
push ecx
call sym.nspr4.dll_PR_NewCondVar
add esp, 4
mov dword [esi + 0xe4], eax
mov ebp, 1
mov eax, dword [0x601d32d8]
push eax
call sym.nspr4.dll_PR_Lock
mov ecx, dword [esp + 0x34]
add esp, 4
mov dword [esi + 0xdc], ecx
mov eax, dword [0x601d3310]
inc eax
mov dword [0x601d3310], eax
mov dword [esi + 0xd8], eax
cmp dword [esp + 0x14], ebp
jne 0x601c5a7e
mov ecx, dword [esi + 0xdc]
or ecx, ebp
mov dword [esi + 0xdc], ecx
mov eax, dword [0x601d3320]
inc eax
mov dword [0x601d3320], eax
jmp 0x601c5a84
cmp eax, ebx
je 0x601c590d
push eax
call sym.nspr4.dll_PR_DestroyCondVar
add esp, 4
mov dword [esi + 0xe4], ebx
jmp 0x601c590d
mov esi, dword [edx + 0x18]
mov ecx, 0x50
sub esi, 0x140
xor eax, eax
mov edi, esi
mov dword [edx + 0x24], esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edx
mov edx, dword [esp + 0x20]
lea eax, [esi + 0xc4]
mov ebp, 1
push esi
mov dword [esi + 0xec], ebp
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [eax], eax
mov dword [esi + 0xc8], eax
call fcn.601c71d0
add esp, 4
cmp eax, 0xffffffff
jne 0x601c5a05
cmp dword [esi + 0xec], ebp
jne 0x601c59e7
mov edx, dword [esi + 0x10]
push edx
call fcn.601c4f00
jmp 0x601c59ed
push esi
call sym.nspr4.dll_PR_Free
add esp, 4
push ebx
push 0xffffe8aa
call sym.nspr4.dll_PR_SetError
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
lea edi, [esi + 0x3c]
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [esp + 0x28]
mov dword [esi + 0x54], ebx
cmp eax, ebx
mov dword [esi + 0xa0], ebx
jne 0x601c5912
mov eax, dword [0x601d3318]
push eax
call sym.nspr4.dll_PR_NewCondVar
add esp, 4
cmp eax, ebx
mov dword [esi + 0xe4], eax
jne 0x601c5912
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
cmp dword [esi + 0xec], ebp
jne 0x601c5a62
mov ecx, dword [esi + 0x10]
push ecx
call fcn.601c4f00
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov edx, dword [esi + 0x24]
push edx
call sym.nspr4.dll_PR_Free
push esi
mov dword [esi + 0x24], ebx
call sym.nspr4.dll_PR_Free
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
inc dword [0x601d3334]
mov dword [esi], ebp
mov edx, dword [0x601d32d8]
push edx
call sym.nspr4.dll_PR_Unlock
mov eax, dword [esi + 0xdc]
mov edi, 0x200
add esp, 4
test edi, eax
jne 0x601c5aab
call sym.nspr4.dll__PR_GetPrimordialCPU
jmp 0x601c5ab7
mov eax, dword [0x601d32c8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esi + 0xe8], eax
mov eax, dword [esi + 0xdc]
test edi, eax
je 0x601c5ad7
push ebx
call fcn.601c74d0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.601c74d0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret