Function at 0x10110040
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [ebp + 8]
test byte [esi + 0x180], 1
jne 0x10110069
mov ebx, dword [ebp + 0x14]
test ebx, 0xfffffffd
je 0x10110085
push 0
push 0xffffe89d
jmp 0x10110070
push 0
push 0xffffe8d7
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
dec edi
mov eax, edi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
push esi
call fcn.10116900
add esp, 4
test eax, eax
jne 0x1011014f
mov eax, dword [esi + 0x1c]
bt eax, 8
jb 0x1011014f
bt eax, 0xa
jb 0x101100c0
push dword [esi + 0x168]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
mov eax, dword [esi + 0x1fc]
test eax, eax
je 0x1011013b
push 0
push eax
push dword [esi + 0x1f8]
push esi
call fcn.1010b590
add esp, 0x10
test eax, eax
js 0x1011010d
mov edx, dword [esi + 0x1fc]
mov ecx, edx
sub ecx, eax
mov dword [esi + 0x1fc], ecx
test eax, eax
je 0x1011013b
cmp edx, eax
je 0x1011013b
mov edx, dword [esi + 0x1f8]
add eax, edx
push ecx
push eax
push edx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
jmp 0x1011013b
cmp dword [0x101f4f80], 0
je 0x101103f2
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x101103b2
cmp dword [eax + 0x28], 0xffffe892
jne 0x10110349
test byte [esi + 0x1d], 4
jne 0x1011014f
push dword [esi + 0x168]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
lea eax, [esi + 0x618]
cmp dword [esi + 0x618], eax
je 0x10110169
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.10120bd0
mov dword [ebp - 0x10], edi
cmp dword [esi + 0x38], 0
mov dword [ebp - 0x18], eax
je 0x1011018b
xor edx, edx
inc edx
mov ecx, esi
call fcn.10110410
test eax, eax
je 0x101101e5
xor edi, edi
dec edi
jmp 0x101102d0
test byte [esi + 0x1d], 4
jne 0x1011019f
push dword [esi + 0x16c]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
mov ecx, dword [esi + 0xcc]
test ecx, ecx
je 0x101101c7
call dword [section..00cfg]
push esi
call ecx
add esp, 4
mov edi, eax
mov ecx, dword [esi + 0xcc]
test ecx, ecx
je 0x101101c9
test edi, edi
je 0x101101a9
jmp 0x101101c9
xor edi, edi
test byte [esi + 0x1d], 4
jne 0x101101dd
push dword [esi + 0x16c]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
test edi, edi
js 0x101102d0
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x1011031d
mov eax, dword [esi + 0x1c]
bt eax, 0xa
jb 0x1011020a
push dword [esi + 0x16c]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
mov eax, dword [esi + 0x1c]
bt eax, 0xa
jb 0x1011021e
push dword [esi + 0x164]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
mov eax, dword [esi + 0x1a4]
mov ecx, dword [esi + 0x1a8]
sub ecx, eax
je 0x1011026b
cmp dword [esi + 0xa24], 1
jne 0x10110324
cmp ecx, edi
jle 0x10110324
add ecx, eax
mov dword [esi + 0x1a4], ecx
push 0
push 0xffffd085
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
dec edi
jmp 0x10110360
cmp dword [esi + 0x190], 0
jne 0x101102b0
push 0
push esi
call fcn.10109280
add esp, 8
test eax, eax
jg 0x10110262
je 0x1011035e
mov edi, eax
cmp dword [0x101f4f80], 0
je 0x101103fc
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x101103cd
cmp dword [eax + 0x28], 0xffffe892
jne 0x10110360
mov eax, dword [esi + 0x1a4]
mov ecx, dword [esi + 0x1a8]
sub ecx, eax
mov edi, dword [ebp - 0x10]
jne 0x1011022e
push 0
push 0xffffe892
jmp 0x10110252
cmp dword [0x101f4f80], 0
je 0x101103e8
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10110397
cmp dword [eax + 0x28], 0xffffe892
jne 0x1011007b
mov eax, dword [ebp - 0x18]
cmp dword [eax], eax
je 0x1011007b
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push esi
call fcn.10120bd0
add esp, 0x18
jmp 0x10110080
xor edi, edi
jmp 0x1011007b
cmp ecx, edi
cmovl edi, ecx
add eax, dword [esi + 0x18c]
push edi
push eax
push dword [ebp - 0x14]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
test bl, 2
jne 0x10110360
add dword [esi + 0x1a4], edi
jmp 0x10110360
xor edi, edi
dec edi
test byte [esi + 0x1d], 4
jne 0x1011007b
push dword [esi + 0x168]
jmp 0x1011038a
xor edi, edi
mov eax, dword [esi + 0x1c]
bt eax, 0xa
jb 0x1011037a
push dword [esi + 0x164]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
mov eax, dword [esi + 0x1c]
bt eax, 0xa
jb 0x1011007b
push dword [esi + 0x16c]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
jmp 0x1011007b
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
jmp 0x101102f1
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
jmp 0x1011012e
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
jmp 0x101102a3
call fcn.1001b2e0
jmp 0x101102dd
call fcn.1001b2e0
jmp 0x1011011a
call fcn.1001b2e0
jmp 0x1011028f