Function at 0x1010fda0
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 esi, dword [ebp + 8]
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
test esi, esi
je 0x1010ff8a
cmp dword [0x101f2f50], 0
je 0x1010ffbf
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1010ffa2
movzx ecx, byte [esi + 0x78]
cmp ecx, 0x20
mov edi, 0x20
mov dword [ebp - 0x34], ecx
cmovb edi, ecx
lea ecx, [edi - 0x20]
neg ecx
xor edx, edx
cmp edi, 0x20
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x48], eax
cmovae ecx, edx
lea ebx, [esi + 0x79]
lea eax, [edi + ebp]
add eax, 0xffffffd0
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea esi, [ebp - 0x30]
push edi
mov dword [ebp - 0x44], ebx
push ebx
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
xor eax, dword [ecx + 0x38]
xor eax, dword [ecx + 0x40]
xor eax, dword [ecx + 0x44]
xor eax, dword [esi]
xor eax, dword [esi + 4]
xor eax, dword [esi + 8]
xor eax, dword [esi + 0xc]
xor eax, dword [esi + 0x10]
xor eax, dword [esi + 0x14]
xor eax, dword [esi + 0x18]
xor eax, dword [esi + 0x1c]
xor edx, edx
div dword [0x101f3ecc]
mov edi, edx
mov eax, edx
xor edx, edx
div dword [0x101f3ec8]
mov ebx, edx
mov esi, dword [0x101f3f08]
shl ebx, 4
lea eax, [esi + ebx]
add eax, 4
push eax
call fcn.1010bb80
add esp, 4
test eax, eax
jne 0x1010ff73
call sym.nss3.dll_PR_Now
push 0
push 0xf4240
push edx
push eax
call fcn.10157210
mov edx, eax
mov dword [esi + ebx], eax
mov eax, dword [0x101f3f54]
mov dword [esi + ebx + 0xc], eax
test edx, edx
je 0x1010ff73
mov eax, dword [0x101f3f18]
mov ebx, dword [eax + edi*4]
mov dword [ebp - 0x3c], edi
imul eax, edi, 0x6800
add eax, dword [0x101f3f1c]
mov dword [ebp - 0x38], eax
mov edi, 0x81
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x40], edx
dec ebx
and ebx, 0x7f
imul esi, ebx, 0xd0
mov eax, dword [ebp - 0x38]
cmp byte [eax + esi + 0x2a], 0
je 0x1010ff36
add esi, dword [ebp - 0x38]
mov eax, dword [esi + 0x24]
cmp dword [esi + 0x20], edx
sbb eax, 0
jge 0x1010fefc
mov byte [esi + 0x2a], 0
jmp 0x1010ff36
cmp byte [esi + 0x2b], cl
jne 0x1010ff36
movdqu xmm0, xmmword [esi]
mov eax, dword [ebp + 8]
movdqu xmm1, xmmword [eax + 0x38]
pcmpeqb xmm1, xmm0
pmovmskb eax, xmm1
cmp eax, 0xffff
jne 0x1010ff36
lea eax, [esi + 0x2c]
push ecx
push dword [ebp - 0x44]
push eax
call sub.VCRUNTIME140.dll_memcmp
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x34]
add esp, 0xc
test eax, eax
je 0x1010ff9c
dec edi
cmp edi, 1
ja 0x1010fed4
push 0
push 0xffffd05a
call sym.nss3.dll_PR_SetError
add esp, 8
mov eax, dword [ebp - 0x3c]
xor edx, edx
div dword [0x101f3ec8]
mov eax, dword [0x101f3f08]
shl edx, 4
add eax, edx
add eax, 4
mov dword [eax + 8], 0
push eax
call fcn.1010bb20
add esp, 4
mov eax, dword [ebp + 8]
mov dword [eax + 4], 3
push 0
push dword [ebp - 0x48]
call sym.nss3.dll_PR_SetError
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [esi + 0x2a], 0
jmp 0x1010ff4b
sub esp, 0x10
movdqa xmm0, xmmword [0x101af1a0]
movdqu xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
jmp 0x1010fddf
call fcn.100029d0
jmp 0x1010fdcb