Function at 0x100c8a80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x138
mov esi, dword [ebp + 0x28]
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x101], 1
mov dword [ebp - 0x108], 4
mov dword [ebp - 0x10c], 0x10
mov dword [ebp - 0x110], 0
cmp esi, 0x11
jb 0x100c8ad9
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
xor ebx, ebx
jmp 0x100c8fab
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x13c], edx
mov eax, dword [ebp + 0x18]
mov ecx, eax
and ecx, 0xff000000
mov edi, eax
and edi, 0xffffff
cmp ecx, 0x82000000
cmovne edi, eax
lea eax, [ebp - 0x100]
mov ebx, eax
test esi, esi
je 0x100c8b38
lea eax, [esi*4]
lea ebx, [eax + eax*2]
lea eax, [ebp - 0x100]
push ebx
push dword [ebp + 0x24]
push eax
call sub.VCRUNTIME140.dll_memcpy
lea eax, [ebp - 0x100]
add esp, 0xc
add ebx, ebp
add ebx, 0xffffff00
push 0
push esi
push eax
call fcn.100bca80
add esp, 0xc
test eax, eax
jne 0x100c8b61
mov dword [ebx], 0
lea eax, [ebp - 0x108]
mov dword [ebx + 4], eax
mov dword [ebx + 8], 4
add ebx, 0xc
mov esi, dword [ebp - 0x130]
lea eax, [ebp - 0x100]
push 0x100
push dword [ebp + 0x28]
push eax
call fcn.100bca80
add esp, 0xc
test eax, eax
jne 0x100c8bab
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
call fcn.100b7390
add esp, 8
lea ecx, [ebp - 0x10c]
mov dword [ecx], eax
mov dword [ebx], 0x100
mov dword [ebx + 4], ecx
mov dword [ebx + 8], 4
add ebx, 0xc
test edi, edi
mov edx, dword [ebp + 0x28]
je 0x100c8be4
push edi
push edx
lea eax, [ebp - 0x100]
push eax
call fcn.100bca80
add esp, 0xc
test eax, eax
jne 0x100c8bdc
mov dword [ebx], edi
lea eax, [ebp - 0x101]
mov dword [ebx + 4], eax
mov dword [ebx + 8], 1
add ebx, 0xc
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x28]
jmp 0x100c8be7
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
test eax, eax
lea edi, [ebp - 0x100]
jle 0x100c8c28
push 0x161
push edx
push edi
call fcn.100bca80
add esp, 0xc
test eax, eax
jne 0x100c8c25
lea eax, [ebp - 0x110]
mov ecx, dword [ebp + 0x1c]
mov dword [eax], ecx
mov dword [ebx], 0x161
mov dword [ebx + 4], eax
mov dword [ebx + 8], 4
add ebx, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
sub ebx, edi
cmp ecx, 1
jne 0x100c8c4c
cmp dword [esi + 0x124], 0
je 0x100c8c4c
mov eax, dword [esi + 0x128]
mov dword [ebp - 0x124], eax
jmp 0x100c8cf2
cmp dword [esi + 0x30], 0
jne 0x100c8c7e
mov edi, dword [esi + 0x3c]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100c8fc2
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov esi, dword [ebp - 0x130]
mov eax, dword [esi]
mov edi, esi
mov esi, dword [esi + 0x40]
mov ecx, dword [eax + 0x22]
call dword [section..00cfg]
lea eax, [ebp - 0x12c]
push eax
push dword [ebp + 8]
push esi
call ecx
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x120], eax
cmp dword [edi + 0x30], 0
jne 0x100c8cbd
mov eax, dword [ebp - 0x130]
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
test esi, esi
mov edx, dword [ebp + 0xc]
je 0x100c8cce
mov dword [ebp - 0x124], 0
mov ecx, dword [ebp + 8]
cmp ecx, 1
mov esi, dword [ebp - 0x130]
jne 0x100c8cf2
mov eax, dword [ebp - 0x124]
mov dword [esi + 0x128], eax
mov dword [esi + 0x124], 1
sar ebx, 2
mov dword [ebp - 0x11c], ecx
xor eax, eax
test edx, edx
jne 0x100c8d18
xor eax, eax
push eax
push eax
push ecx
call fcn.100b7ec0
add esp, 0xc
mov edx, eax
test eax, eax
je 0x100c8ed6
mov ecx, dword [edx + 4]
mov dword [ebp - 0x118], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x134], eax
mov edx, dword [ebp + 0x2c]
imul eax, ebx, 0xaaaaaaab
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x114], ecx
test byte [ebp - 0x123], 2
mov ebx, dword [ebp + 0x14]
je 0x100c8d61
push ebx
push esi
mov edi, edx
call sym.nss3.dll_PK11_DoesMechanism
mov edx, edi
add esp, 8
test eax, eax
je 0x100c8e8d
xor eax, eax
test edx, edx
sete al
mov ecx, esi
mov edi, edx
mov edx, ebx
push dword [ebp + 0x20]
push 1
push eax
call fcn.100c55e0
add esp, 0xc
test eax, eax
je 0x100c8f94
mov ebx, eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], 4
test edi, edi
je 0x100c8dc1
push esi
call fcn.100ca370
add esp, 4
mov esi, eax
test eax, eax
lea edi, [ebp - 0x100]
jne 0x100c8e0d
mov dword [ebp - 0x120], 0xb3
mov esi, dword [ebp - 0x130]
jmp 0x100c8f1b
cmp dword [ebx + 0x28], 0
mov eax, dword [ebx + 8]
lea edi, [ebp - 0x100]
je 0x100c8dd6
cmp dword [eax + 0x30], 0
jne 0x100c8e02
mov edi, dword [eax + 0x3c]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100c8fdf
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
lea edi, [ebp - 0x100]
mov esi, dword [ebx + 0x24]
test esi, esi
je 0x100c8ef1
mov eax, dword [ebp - 0x130]
mov eax, dword [eax]
mov ecx, dword [eax + 0xf6]
mov edi, ebx
add edi, 4
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 4]
mov dword [ebp - 0x144], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x140], eax
call dword [section..00cfg]
lea eax, [ebp - 0x11c]
push edi
lea edi, [ebp - 0x100]
push dword [ebp - 0x138]
push edi
push dword [ebp - 0x140]
push dword [ebp - 0x144]
push dword [ebp - 0x13c]
push eax
push esi
call ecx
add esp, 0x20
mov dword [ebp - 0x120], eax
cmp dword [ebp + 0x2c], 0
je 0x100c8efb
push esi
mov esi, dword [ebp - 0x130]
push esi
call fcn.100ca4a0
add esp, 8
jmp 0x100c8f1b
lea eax, [ebp - 0x120]
mov edi, esi
mov ecx, esi
mov esi, edx
mov edx, dword [ebp - 0x13c]
push esi
push eax
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp - 0x138]
lea eax, [ebp - 0x100]
push eax
push ebx
push dword [ebp + 0x10]
lea eax, [ebp - 0x11c]
push eax
call fcn.100c9300
add esp, 0x24
test eax, eax
je 0x100c8f80
mov ebx, eax
jmp 0x100c8f96
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x118], 0
xor ecx, ecx
jmp 0x100c8d2a
mov dword [ebp - 0x120], 0xb3
cmp dword [ebx + 0x28], 0
mov eax, dword [ebx + 8]
mov esi, dword [ebp - 0x130]
je 0x100c8f10
cmp dword [eax + 0x30], 0
jne 0x100c8f1b
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x100c8f30
push 1
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
cmp dword [ebp - 0x120], 0
je 0x100c8fab
push ebx
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
xor ebx, ebx
cmp dword [ebp - 0x120], 0x30
je 0x100c8fab
lea eax, [ebp - 0x11c]
mov ecx, esi
mov edx, dword [ebp - 0x13c]
push dword [ebp + 0x2c]
push 0
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp - 0x138]
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call fcn.100c9300
add esp, 0x24
mov ebx, eax
jmp 0x100c8fab
mov ecx, ebx
cmp dword [ebp - 0x120], 0x30
mov esi, edi
mov edx, dword [ebp + 0x2c]
jne 0x100c8d61
xor ebx, ebx
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x100c8fab
push 1
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, ebx
add esp, 0x138
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov esi, eax
jmp 0x100c8c6b
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov esi, eax
jmp 0x100c8def