Function at 0x10116c60
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 [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
test esi, esi
je 0x10116e4d
cmp dword [0x101de200], 0
je 0x10116e82
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10116e65
movzx edx, byte [esi + 0x78]
mov ecx, 0x20
cmp edx, ecx
mov edi, esi
mov esi, 0x20
mov dword [ebp - 0x34], edx
cmovb esi, edx
sub ecx, esi
xor edx, edx
cmp esi, 0x1f
cmova ecx, edx
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x48], eax
lea ebx, [edi + 0x79]
lea eax, [esi + ebp]
add eax, 0xffffffd0
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea edi, [ebp - 0x30]
push esi
mov dword [ebp - 0x44], ebx
push ebx
push edi
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 [edi]
xor eax, dword [edi + 4]
xor eax, dword [edi + 8]
xor eax, dword [edi + 0xc]
xor eax, dword [edi + 0x10]
xor eax, dword [edi + 0x14]
xor eax, dword [edi + 0x18]
xor eax, dword [edi + 0x1c]
xor edx, edx
div dword [0x101dfb04]
mov edi, edx
mov eax, edx
xor edx, edx
div dword [0x101dfb00]
mov ebx, edx
mov esi, dword [0x101dfb40]
shl ebx, 4
lea eax, [esi + ebx]
add eax, 4
push eax
call fcn.10112ba0
add esp, 4
test eax, eax
jne 0x10116e36
call sym.nss3.dll_PR_Now
push 0
push 0xf4240
push edx
push eax
call fcn.1014deb0
mov edx, eax
mov dword [esi + ebx], eax
mov eax, dword [0x101dfb8c]
mov dword [esi + ebx + 0xc], eax
test edx, edx
je 0x10116e36
mov eax, dword [0x101dfb50]
mov ebx, dword [eax + edi*4]
mov dword [ebp - 0x3c], edi
imul eax, edi, 0x6800
add eax, dword [0x101dfb54]
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 0x10116df9
add esi, dword [ebp - 0x38]
mov eax, dword [esi + 0x24]
cmp dword [esi + 0x20], edx
sbb eax, 0
jge 0x10116dbf
mov byte [esi + 0x2a], 0
jmp 0x10116df9
cmp byte [esi + 0x2b], cl
jne 0x10116df9
movdqu xmm0, xmmword [esi]
mov eax, dword [ebp + 8]
movdqu xmm1, xmmword [eax + 0x38]
pcmpeqb xmm1, xmm0
pmovmskb eax, xmm1
cmp eax, 0xffff
jne 0x10116df9
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 0x10116e5f
dec edi
cmp edi, 1
ja 0x10116d97
push 0
push 0xffffd05a
call sym.nss3.dll_PR_SetError
add esp, 8
mov eax, dword [ebp - 0x3c]
xor edx, edx
div dword [0x101dfb00]
mov eax, dword [0x101dfb40]
shl edx, 4
add eax, edx
add eax, 4
mov dword [eax + 8], 0
push eax
call fcn.10112b30
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.1014dc80
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [esi + 0x2a], 0
jmp 0x10116e0e
sub esp, 0x10
movdqa xmm0, xmmword [0x1019c190]
movdqu xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x10116c9f
call fcn.100745e0
jmp 0x10116c8b