Function at 0x10111360
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 [0x101f1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
test esi, esi
je 0x1011154a
cmp dword [0x101f4f80], 0
je 0x1011157f
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10111562
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 [0x101f5efc]
mov edi, edx
mov eax, edx
xor edx, edx
div dword [0x101f5ef8]
mov ebx, edx
mov esi, dword [0x101f5f38]
shl ebx, 4
lea eax, [esi + ebx]
add eax, 4
push eax
call fcn.1010d140
add esp, 4
test eax, eax
jne 0x10111533
call sym.nss3.dll_PR_Now
push 0
push 0xf4240
push edx
push eax
call fcn.10157c20
mov edx, eax
mov dword [esi + ebx], eax
mov eax, dword [0x101f5f84]
mov dword [esi + ebx + 0xc], eax
test edx, edx
je 0x10111533
mov eax, dword [0x101f5f48]
mov ebx, dword [eax + edi*4]
mov dword [ebp - 0x3c], edi
imul eax, edi, 0x6800
add eax, dword [0x101f5f4c]
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 0x101114f6
add esi, dword [ebp - 0x38]
mov eax, dword [esi + 0x24]
cmp dword [esi + 0x20], edx
sbb eax, 0
jge 0x101114bc
mov byte [esi + 0x2a], 0
jmp 0x101114f6
cmp byte [esi + 0x2b], cl
jne 0x101114f6
movdqu xmm0, xmmword [esi]
mov eax, dword [ebp + 8]
movdqu xmm1, xmmword [eax + 0x38]
pcmpeqb xmm1, xmm0
pmovmskb eax, xmm1
cmp eax, 0xffff
jne 0x101114f6
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 0x1011155c
dec edi
cmp edi, 1
ja 0x10111494
push 0
push 0xffffd05a
call sym.nss3.dll_PR_SetError
add esp, 8
mov eax, dword [ebp - 0x3c]
xor edx, edx
div dword [0x101f5ef8]
mov eax, dword [0x101f5f38]
shl edx, 4
add eax, edx
add eax, 4
mov dword [eax + 8], 0
push eax
call fcn.1010d0e0
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.10157a00
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [esi + 0x2a], 0
jmp 0x1011150b
sub esp, 0x10
movdqa xmm0, xmmword [0x101b11e0]
movdqu xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
jmp 0x1011139f
call fcn.1001b2e0
jmp 0x1011138b