Function at 0x100ca040
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 [0x101f1014]
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 0x100ca099
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
xor ebx, ebx
jmp 0x100ca56b
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 0x100ca0f8
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.100be040
add esp, 0xc
test eax, eax
jne 0x100ca121
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.100be040
add esp, 0xc
test eax, eax
jne 0x100ca16b
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
call fcn.100b8950
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 0x100ca1a4
push edi
push edx
lea eax, [ebp - 0x100]
push eax
call fcn.100be040
add esp, 0xc
test eax, eax
jne 0x100ca19c
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 0x100ca1a7
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
test eax, eax
lea edi, [ebp - 0x100]
jle 0x100ca1e8
push 0x161
push edx
push edi
call fcn.100be040
add esp, 0xc
test eax, eax
jne 0x100ca1e5
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 0x100ca20c
cmp dword [esi + 0x124], 0
je 0x100ca20c
mov eax, dword [esi + 0x128]
mov dword [ebp - 0x124], eax
jmp 0x100ca2b2
cmp dword [esi + 0x30], 0
jne 0x100ca23e
mov edi, dword [esi + 0x3c]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100ca582
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 0x100ca27d
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 0x100ca28e
mov dword [ebp - 0x124], 0
mov ecx, dword [ebp + 8]
cmp ecx, 1
mov esi, dword [ebp - 0x130]
jne 0x100ca2b2
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 0x100ca2d8
xor eax, eax
push eax
push eax
push ecx
call fcn.100b9480
add esp, 0xc
mov edx, eax
test eax, eax
je 0x100ca496
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 0x100ca321
push ebx
push esi
mov edi, edx
call sym.nss3.dll_PK11_DoesMechanism
mov edx, edi
add esp, 8
test eax, eax
je 0x100ca44d
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.100c6b90
add esp, 0xc
test eax, eax
je 0x100ca554
mov ebx, eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], 4
test edi, edi
je 0x100ca381
push esi
call fcn.100cb930
add esp, 4
mov esi, eax
test eax, eax
lea edi, [ebp - 0x100]
jne 0x100ca3cd
mov dword [ebp - 0x120], 0xb3
mov esi, dword [ebp - 0x130]
jmp 0x100ca4db
cmp dword [ebx + 0x28], 0
mov eax, dword [ebx + 8]
lea edi, [ebp - 0x100]
je 0x100ca396
cmp dword [eax + 0x30], 0
jne 0x100ca3c2
mov edi, dword [eax + 0x3c]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100ca59f
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 0x100ca4b1
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 0x100ca4bb
push esi
mov esi, dword [ebp - 0x130]
push esi
call fcn.100cba60
add esp, 8
jmp 0x100ca4db
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.100ca8c0
add esp, 0x24
test eax, eax
je 0x100ca540
mov ebx, eax
jmp 0x100ca556
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x118], 0
xor ecx, ecx
jmp 0x100ca2ea
mov dword [ebp - 0x120], 0xb3
cmp dword [ebx + 0x28], 0
mov eax, dword [ebx + 8]
mov esi, dword [ebp - 0x130]
je 0x100ca4d0
cmp dword [eax + 0x30], 0
jne 0x100ca4db
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x100ca4f0
push 1
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
cmp dword [ebp - 0x120], 0
je 0x100ca56b
push ebx
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
xor ebx, ebx
cmp dword [ebp - 0x120], 0x30
je 0x100ca56b
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.100ca8c0
add esp, 0x24
mov ebx, eax
jmp 0x100ca56b
mov ecx, ebx
cmp dword [ebp - 0x120], 0x30
mov esi, edi
mov edx, dword [ebp + 0x2c]
jne 0x100ca321
xor ebx, ebx
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x100ca56b
push 1
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
mov eax, ebx
add esp, 0x138
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov esi, eax
jmp 0x100ca22b
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov esi, eax
jmp 0x100ca3af