Function at 0x100841c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, dword [ebp + 8]
mov eax, dword [0x101f1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
call fcn.1009bef0
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100844b7
mov ebx, eax
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x1008426a
mov dword [ebp - 0x1c], eax
push 0
push ebx
call fcn.1009cf90
add esp, 8
mov edi, eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10084234
test edi, edi
je 0x10084234
push edi
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x10084278
mov dword [esi + 0x154], 0
push edi
call fcn.10094350
add esp, 4
xor edi, edi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10084278
test edi, edi
jne 0x10084278
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov edi, eax
inc edi
push edi
push 0
call fcn.10094240
add esp, 8
test eax, eax
je 0x10084276
mov esi, eax
push edi
push dword [ebp + 0xc]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov edi, esi
jmp 0x10084278
push 0
push 0xffffe018
jmp 0x10084486
xor edi, edi
mov dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100844d3
mov esi, dword [ebp - 0x18]
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], edi
push ebx
mov esi, dword [ebp - 0x1c]
push dword [esi + 0x14]
call fcn.1009e410
add esp, 8
mov eax, dword [esi + 0x14]
push dword [eax + 8]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov dword [ebx + 0x1c], 0
lea esi, [ebx + 0x28]
cmp dword [ebx + 0x28], 0
jne 0x10084307
push dword [ebp + 8]
call fcn.100a6710
add esp, 4
test eax, eax
je 0x10084307
mov edi, eax
push dword [eax + 4]
push dword [eax + 8]
push esi
push dword [ebx]
call fcn.10094e70
add esp, 0x10
push 1
push edi
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
call sym.nss3.dll_PK11_GetInternalKeySlot
mov dword [ebp - 0x1c], eax
push eax
call fcn.100cd0c0
add esp, 4
test eax, eax
je 0x1008446d
mov edi, eax
lea eax, [ebx + 0x48]
mov dword [ebp - 0x20], eax
lea ecx, [ebx + 0x40]
lea edx, [ebx + 0x38]
mov dword [ebp - 0x18], esi
mov esi, ebx
add esi, 0x30
xor eax, eax
inc eax
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x118]
push dword [ebp - 0x20]
push ecx
push edx
push esi
mov esi, dword [ebp - 0x24]
push esi
push dword [ebp - 0x18]
xor eax, eax
inc eax
push eax
push 0
push edi
call fcn.100970e0
add esp, 0x2c
mov dword [ebp - 0x18], eax
push edi
call fcn.10096ae0
add esp, 4
push esi
call fcn.10094350
add esp, 4
mov eax, dword [ebp - 0x1c]
lock dec dword [eax + 0x48]
jne 0x10084386
push eax
call fcn.100cb320
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10084490
push eax
push ebx
call fcn.1009cac0
add esp, 8
lea eax, [ebp - 0x14]
push 1
push eax
push dword [0x101f50a0]
call fcn.1009fa10
add esp, 0xc
mov edi, dword [0x101f5020]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100844f0
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov eax, dword [ebp + 8]
mov dword [eax + 0x15c], 0
push dword [0x101f5020]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov esi, dword [ebp - 0x14]
mov ecx, esi
xor edx, edx
call fcn.1009b6a0
test eax, eax
je 0x100844ae
mov edi, eax
mov ebx, dword [0x101f5020]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x1008450d
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
mov dword [edi + 0x150], 0
mov dword [edi + 0x14c], 1
push dword [0x101f5020]
call sym.nss3.dll_PR_Unlock
add esp, 4
xor esi, esi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100844bf
push eax
push edi
call fcn.1009c1f0
add esp, 8
test eax, eax
jne 0x100844b7
jmp 0x100844bf
mov eax, dword [ebp - 0x1c]
lock dec dword [eax + 0x48]
jne 0x1008447f
push eax
call fcn.100cb320
add esp, 4
push 0
push 0xffffe041
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100844bc
call fcn.10094920
xor esi, esi
dec esi
cmp eax, 0x23
jne 0x100844bf
push 0
push 0xffffe08a
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100844bf
push esi
call fcn.10099ca0
add esp, 4
call fcn.100840b0
xor esi, esi
dec esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
mov eax, esi
add esp, 0x18
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 edi, eax
jmp 0x1008429d
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov esi, eax
jmp 0x100843cb
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov esi, eax
jmp 0x10084425