Function at 0x100d3c80
Capabilities:
Get thread local storage value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov ebx, dword [ebp + 8]
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ebx + 0x30], 0
jne 0x100d3cc2
mov edi, dword [ebx + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100d4472
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov eax, dword [ebx]
mov esi, dword [ebx + 0x40]
mov ecx, dword [eax + 0x1a]
lea edi, [ebx + 0x140]
call dword [section..00cfg]
push edi
push esi
call ecx
add esp, 8
mov esi, eax
cmp dword [ebx + 0x30], 0
jne 0x100d3cf0
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
test esi, esi
je 0x100d3d1f
push esi
call fcn.100b1140
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, esi
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
inc word [ebx + 0x80]
mov eax, dword [ebx + 0x1a0]
mov dword [ebx + 0x34], eax
mov ecx, eax
shr ecx, 2
and ecx, 1
mov dword [ebx + 0x24], ecx
mov ecx, eax
shr ecx, 1
and ecx, 1
mov dword [ebx + 0x20], ecx
mov ecx, eax
and ecx, 1
mov dword [ebx + 0x28], ecx
shr eax, 8
and eax, 1
mov dword [ebx + 0x12c], eax
xor eax, eax
mov dword [ebx + 0x134], eax
mov dword [ebx + 0x138], eax
cmp dword [ebx + 0x130], eax
je 0x100d3d78
mov dword [ebx + 0x12c], 0
lea eax, [ebx + 0xf9]
mov ecx, 0x119
mov esi, ecx
cmp ecx, 0xf9
je 0x100d3da8
lea ecx, [esi - 1]
cmp byte [ebx + esi + 0x46], 0x20
je 0x100d3d83
add ecx, 0xffffff08
push ecx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [ebx + esi], 0
mov eax, dword [ebx + 0x1b8]
mov dword [ebx + 0x78], eax
mov eax, dword [ebx + 0x1b4]
mov dword [ebx + 0x7c], eax
movups xmm0, xmmword [ebx + 0x190]
movups xmmword [ebx + 0xa8], xmm0
push dword [ebx + 0x13c]
call fcn.100a7870
add esp, 4
cmp dword [ebx + 0x20], 0
je 0x100d3de4
xor eax, eax
jmp 0x100d3dee
cmp dword [ebx + 0x1a4], 1
sete al
movzx eax, al
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 0x94]
test eax, eax
je 0x100d3e12
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov dword [ebx + 0x94], 0
mov dword [ebx + 0x98], 0
cmp dword [ebx + 0x30], 0
jne 0x100d3e48
mov edi, dword [ebx + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100d448f
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov eax, dword [ebx]
mov esi, dword [ebx + 0x40]
mov ecx, dword [eax + 0x1e]
call dword [section..00cfg]
lea eax, [ebp - 0x30]
push eax
push 0
push esi
call ecx
add esp, 0xc
test eax, eax
je 0x100d3e82
mov esi, eax
cmp dword [ebx + 0x30], 0
jne 0x100d3cf4
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100d3cf4
mov eax, dword [ebp - 0x30]
shl eax, 2
push eax
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
mov dword [ebx + 0x94], eax
test eax, eax
je 0x100d3efe
mov esi, eax
mov eax, dword [ebx]
mov edi, dword [ebx + 0x40]
mov ecx, dword [eax + 0x1e]
call dword [section..00cfg]
lea eax, [ebp - 0x30]
push eax
push esi
push edi
call ecx
add esp, 0xc
mov esi, eax
cmp dword [ebx + 0x30], 0
jne 0x100d3ec9
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
test esi, esi
je 0x100d3f0d
mov eax, dword [ebx + 0x94]
test eax, eax
je 0x100d3ee1
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor edi, edi
mov dword [ebx + 0x94], edi
push esi
call fcn.100b1140
add esp, 4
push edi
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100d3f5e
cmp dword [ebx + 0x30], 0
jne 0x100d3d08
jmp 0x100d4064
mov esi, dword [ebp - 0x30]
mov dword [ebx + 0x98], esi
lea eax, [ebx + 0x1e0]
push 0x100
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test esi, esi
je 0x100d3f5e
mov edi, dword [ebx + 0x94]
xor edx, edx
mov eax, dword [edi + edx*4]
cmp eax, 0x7fe
ja 0x100d3f59
xor ebx, ebx
inc ebx
mov cl, ah
shl ebx, cl
movzx eax, al
mov ecx, dword [ebp + 8]
or byte [ecx + eax + 0x1e0], bl
mov ebx, dword [ebp + 8]
inc edx
cmp esi, edx
jne 0x100d3f38
xor eax, eax
mov dword [ebx + 0x124], eax
mov dword [ebx + 0x128], eax
mov ecx, dword [ebx + 0x1a4]
mov edx, ecx
shr edx, 1
cmp ecx, 0x14
cmovb edx, eax
test ecx, ecx
mov eax, 0x320
cmovne eax, edx
mov esi, dword [ebx + 0x38]
mov dword [ebx + 0x5c], eax
lea eax, [ebx + 0x38]
mov dword [ebp - 0x44], eax
test esi, esi
je 0x100d4074
cmp dword [ebx + 0x30], 0
jne 0x100d3fcb
mov edi, dword [ebx + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100d44ac
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov eax, dword [ebp - 0x44]
mov esi, dword [eax]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x3e]
call dword [section..00cfg]
lea edi, [ebp - 0x30]
push edi
push esi
call ecx
add esp, 8
cmp eax, 0xb3
je 0x100d400b
cmp eax, 0xb0
je 0x100d400b
cmp eax, 0x30
jne 0x100d40f6
mov eax, dword [ebx]
mov esi, dword [ebx + 0x38]
mov ecx, dword [eax + 0x36]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
mov eax, dword [ebx]
mov esi, dword [ebx + 0x40]
mov ecx, dword [eax + 0x32]
xor eax, eax
cmp dword [ebx + 0x2c], 0
setne al
lea edi, [eax + eax]
add edi, 4
call dword [section..00cfg]
push dword [ebp - 0x44]
push sym.nss3.dll_SECMOD_CanDeleteInternalModule
push ebx
push edi
lea edi, [ebp - 0x30]
push esi
call ecx
add esp, 0x14
test eax, eax
je 0x100d40f6
push eax
call fcn.100b1140
add esp, 4
xor esi, esi
push esi
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
mov dword [ebx + 0x38], esi
cmp dword [ebx + 0x30], esi
jne 0x100d3d08
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100d3d08
cmp dword [ebx + 0x30], 0
jne 0x100d40a0
mov edi, dword [ebx + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100d44c9
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov eax, dword [ebx]
mov esi, dword [ebx + 0x40]
mov ecx, dword [eax + 0x32]
xor eax, eax
cmp dword [ebx + 0x2c], 0
setne al
lea edi, [eax + eax]
add edi, 4
call dword [section..00cfg]
lea eax, [ebp - 0x30]
push eax
push sym.nss3.dll_SECMOD_CanDeleteInternalModule
push ebx
push edi
push esi
call ecx
add esp, 0x14
mov esi, eax
cmp dword [ebx + 0x30], 0
jne 0x100d40e1
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
test esi, esi
jne 0x100d3cf4
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x44]
mov dword [ecx], eax
lea edi, [ebp - 0x30]
jmp 0x100d4107
cmp dword [ebx + 0x30], 0
jne 0x100d4107
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
push dword [ebx + 0x13c]
call fcn.100a78c0
add esp, 4
test eax, eax
jne 0x100d3d08
lea eax, [ebp - 0x31]
mov byte [eax], 1
lea edx, [ebp - 0x38]
mov dword [edx], 9
xor ecx, ecx
inc ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], 4
mov eax, dword [ebx + 0x2e0]
test eax, eax
je 0x100d4167
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov dword [ebx + 0x2e0], 0
xor eax, eax
mov dword [ebx + 0x2e4], eax
lea ecx, [ebp - 0x3c]
mov dword [ecx], eax
push ecx
push 2
push edi
push ebx
call fcn.100c6960
add esp, 0x10
mov dword [ebp - 0x44], eax
test eax, eax
je 0x100d41f2
mov eax, dword [ebp - 0x3c]
shl eax, 2
push eax
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
mov dword [ebx + 0x2e0], eax
test eax, eax
je 0x100d41e6
cmp dword [ebp - 0x3c], 0
jle 0x100d41e6
xor edi, edi
push 0x601
mov eax, dword [ebp - 0x44]
push dword [eax + edi*4]
push ebx
call fcn.100c34f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x100d41e0
mov ecx, dword [ebx + 0x2e0]
mov edx, dword [ebx + 0x2e4]
lea ebx, [edx + 1]
mov esi, dword [ebp + 8]
mov dword [esi + 0x2e4], ebx
mov ebx, dword [ebp + 8]
mov dword [ecx + edx*4], eax
inc edi
cmp edi, dword [ebp - 0x3c]
jl 0x100d41a9
push dword [ebp - 0x44]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
cmp dword [ebx + 0x14], 0
je 0x100d4246
xor esi, esi
cmp dword [ebx + 0x20], 0
jne 0x100d3d0b
mov dword [ebp - 0x38], 0
mov eax, dword [ebx]
mov edi, dword [ebx + 0x40]
mov ecx, dword [eax + 0x32]
call dword [section..00cfg]
lea eax, [ebp - 0x38]
push eax
push sym.nss3.dll_SECMOD_CanDeleteInternalModule
push ebx
push 6
push edi
call ecx
add esp, 0x14
test eax, eax
je 0x100d4271
cmp eax, 0xe2
jne 0x100d3d0b
mov dword [ebx + 0x20], 1
jmp 0x100d3d0b
xor esi, esi
cmp dword [ebx + 0x28], 0
je 0x100d3d0b
mov eax, dword [0x101df00c]
test eax, eax
je 0x100d42b3
cmp dword [eax + 0xc], 0
je 0x100d42c7
mov ecx, dword [0x101df000]
test ecx, ecx
je 0x100d42c7
lock inc dword [ecx + 0x48]
jmp 0x100d42d8
mov eax, dword [ebx]
mov ecx, dword [eax + 0x3e]
mov edi, dword [ebp - 0x38]
call dword [section..00cfg]
lea eax, [ebp - 0x30]
push eax
push edi
call ecx
add esp, 8
test eax, eax
jne 0x100d429a
test byte [ebp - 0x28], 2
jne 0x100d429a
mov dword [ebx + 0x20], 1
mov eax, dword [ebx]
mov ecx, dword [eax + 0x36]
mov edi, dword [ebp - 0x38]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
jmp 0x100d3d0b
push 0
push 0xffffe040
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100d4463
mov eax, dword [eax + 0x28]
mov ecx, dword [eax]
lock inc dword [ecx + 0x48]
test ecx, ecx
je 0x100d4463
mov dword [ebp - 0x44], ecx
mov edi, dword [ebx + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x40], eax
test eax, eax
je 0x100d44e6
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x40]
mov dword [edi + 8], eax
mov eax, dword [ebx]
mov edi, dword [ebx + 0x38]
mov ecx, dword [eax + 0x102]
call dword [section..00cfg]
push 0x20
lea eax, [ebp - 0x30]
push eax
push edi
call ecx
add esp, 0xc
mov edi, eax
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
test edi, edi
mov edi, dword [ebp - 0x44]
jne 0x100d4396
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0x48], eax
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x40], eax
test eax, eax
je 0x100d4522
mov edi, dword [ebp - 0x48]
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x40]
mov dword [edi + 8], eax
mov edi, dword [ebp - 0x44]
mov eax, dword [edi]
mov ecx, dword [edi + 0x38]
mov dword [ebp - 0x40], ecx
mov ecx, dword [eax + 0xfe]
call dword [section..00cfg]
push 0x20
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x40]
call ecx
add esp, 0xc
push dword [edi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0x48], eax
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x40], eax
test eax, eax
je 0x100d4504
mov edi, dword [ebp - 0x48]
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x40]
mov dword [edi + 8], eax
mov edi, dword [ebp - 0x44]
mov eax, dword [edi]
mov ecx, dword [edi + 0x38]
mov dword [ebp - 0x40], ecx
mov ecx, dword [eax + 0x102]
call dword [section..00cfg]
push 0x20
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x40]
call ecx
add esp, 0xc
mov dword [ebp - 0x40], eax
push dword [edi + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
cmp dword [ebp - 0x40], 0
jne 0x100d4454
mov edi, dword [ebx + 0x3c]
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x40], eax
test eax, eax
je 0x100d4540
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x40]
mov dword [edi + 8], eax
mov eax, dword [ebx]
mov edi, dword [ebx + 0x38]
mov ecx, dword [eax + 0xfe]
call dword [section..00cfg]
push 0x20
lea eax, [ebp - 0x30]
push eax
push edi
call ecx
add esp, 0xc
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov edi, dword [ebp - 0x44]
lock dec dword [edi + 0x48]
jne 0x100d4463
push edi
call fcn.100d1c70
add esp, 4
cmp dword [ebx + 0x14], 0
jne 0x100d41f8
jmp 0x100d3d0b
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x100d3cb5
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x100d3e3b
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x100d3fb9
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov esi, eax
jmp 0x100d4093
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov dword [ebp - 0x40], eax
jmp 0x100d42f5
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov dword [ebp - 0x40], eax
jmp 0x100d43b3
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov dword [ebp - 0x40], eax
jmp 0x100d4353
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov dword [ebp - 0x40], eax
jmp 0x100d4419