Function at 0x10103b90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x101d2014]
mov ecx, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
mov edi, dword [eax + 0x14]
lock inc dword [edi + 8]
push edi
call fcn.10101400
add esp, 4
mov esi, eax
push edi
call fcn.10101380
add esp, 4
test esi, esi
je 0x10103bec
mov eax, dword [ebp + 0xc]
cmp eax, 0xce534351
je 0x10103bf5
mov edi, dword [ebp + 8]
cmp eax, 1
je 0x10103c01
cmp eax, 0xce534353
jne 0x10103c99
xor eax, eax
inc eax
mov dword [ebp - 0x18], eax
jmp 0x10103c08
xor ecx, ecx
xor ebx, ebx
jmp 0x10104075
mov edi, dword [ebp + 8]
mov dword [ebp - 0x18], 2
jmp 0x10103c08
mov dword [ebp - 0x18], 0
mov ebx, dword [edi + 4]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x10104123
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x18]
mov dword [ebx + 8], esi
xor ebx, ebx
cmp dword [edi + eax*4 + 0xc], 0
je 0x10103c8e
mov eax, dword [edi]
mov esi, dword [eax + 0x14]
lock inc dword [esi + 8]
push dword [esi + 0x48]
call sym.nss3.dll_PK11_IsFriendly
add esp, 4
test eax, eax
jne 0x10103cac
mov eax, dword [esi + 0x48]
cmp dword [eax + 0x24], 0
je 0x10103ca3
push 0
push eax
call sym.nss3.dll_PK11_IsLoggedIn
add esp, 8
lea ecx, [edi + 8]
test eax, eax
jne 0x10103ca6
cmp dword [ecx], 0
je 0x10103c80
mov ecx, edi
call fcn.101039a0
mov dword [edi + 8], 0
push esi
call fcn.10101380
add esp, 4
mov eax, dword [ebp - 0x18]
jmp 0x10103cc3
xor eax, eax
dec eax
mov dword [ebp - 0x20], eax
jmp 0x10104067
xor ecx, ecx
xor ebx, ebx
dec ecx
jmp 0x10104075
lea ecx, [edi + 8]
mov dword [ecx], 1
push esi
call fcn.10101380
add esp, 4
mov eax, dword [ebp - 0x18]
cmp dword [edi + eax*4 + 0x18], 0
je 0x10103ec4
mov esi, dword [edi + eax*4 + 0x24]
test esi, esi
je 0x10103eb6
call fcn.100ff230
test eax, eax
je 0x10103eb6
mov dword [ebp - 0x1c], esi
push 0x20
mov dword [ebp - 0x2c], eax
push eax
call fcn.100ff2b0
add esp, 8
test eax, eax
mov dword [ebp - 0x28], eax
je 0x10104050
mov eax, dword [ebp + 0x18]
mov ecx, 0
mov ebx, 0
mov dword [ebp - 0x20], 0
cmp eax, 1
sbb ecx, ecx
or ecx, eax
mov dword [ebp - 0x34], ecx
je 0x10103f5b
mov eax, dword [ebp - 0x1c]
mov ebx, 0
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x10103f5b
mov eax, 8
xor esi, esi
cmp dword [ebp + 0x14], 0
mov edi, dword [ebp + 0x10]
mov ebx, 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], esi
je 0x10103da3
mov eax, dword [ebp - 0x18]
xor ebx, ebx
mov esi, dword [eax + 0xc]
mov dword [ebp - 0x38], esi
test esi, esi
je 0x10103da1
mov ecx, dword [ebp - 0x18]
lea eax, [ebx + ebx*2]
mov edx, dword [edi + eax*4]
mov ecx, dword [ecx + 8]
add ecx, 8
cmp dword [ecx - 8], edx
je 0x10103d77
add ecx, 0xc
dec esi
jne 0x10103d6a
jmp 0x10103da3
mov edi, dword [ebp + 0x10]
mov edx, dword [edi + eax*4 + 8]
cmp edx, dword [ecx]
jne 0x10103da3
push edx
push dword [ecx - 4]
push dword [edi + eax*4 + 4]
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x10103da3
inc ebx
mov esi, dword [ebp - 0x38]
cmp ebx, dword [ebp + 0x14]
jne 0x10103d57
jmp 0x10103da8
xor ebx, ebx
cmp ebx, dword [ebp + 0x14]
jne 0x10103ddf
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x30]
mov dword [ecx + esi*4], eax
inc esi
cmp esi, edi
jne 0x10103de7
lea eax, [edi*8]
push eax
push ecx
call fcn.100ff760
add esp, 8
test eax, eax
mov dword [ebp - 0x28], eax
je 0x10104050
lea eax, [edi + edi]
mov esi, edi
jmp 0x10103de9
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x24]
jmp 0x10103de9
mov eax, edi
cmp esi, dword [ebp - 0x34]
jae 0x10103e05
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 4]
add ecx, 4
mov dword [ebp - 0x1c], ecx
test edx, edx
mov dword [ebp - 0x18], edx
jne 0x10103d38
test esi, esi
je 0x10103f59
lea eax, [esi*4 + 4]
push eax
push 0
call fcn.100ff2b0
add esp, 8
test eax, eax
je 0x10104050
mov ebx, eax
test esi, esi
mov dword [ebp - 0x24], esi
jle 0x10103f5b
xor edi, edi
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + edi*4]
mov ebx, dword [eax + 4]
push 0x10
push 0
call fcn.100ff2b0
add esp, 8
test eax, eax
je 0x1010400a
mov esi, eax
mov eax, dword [ebx]
mov dword [esi], eax
mov eax, dword [ebx + 4]
lock inc dword [eax + 8]
mov dword [esi + 4], eax
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x10103ea5
mov dword [ebp - 0x1c], eax
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ebx, eax
inc ebx
push ebx
push 0
call fcn.100ff2b0
add esp, 8
test eax, eax
je 0x10103ea2
push ebx
push dword [ebp - 0x1c]
push eax
mov ebx, eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, ebx
add esp, 0xc
mov dword [esi + 0xc], eax
mov ebx, dword [ebp - 0x18]
mov dword [ebx + edi*4], esi
inc edi
cmp dword [ebp - 0x24], edi
jne 0x10103e39
jmp 0x10103f5b
mov dword [ebp - 0x20], 0
xor ebx, ebx
jmp 0x10104067
cmp dword [edi + eax*4 + 0xc], 0
je 0x10103cc3
lea esi, [ebp - 0x14]
push esi
push 0xa
push 3
push dword [ebp + 0xc]
push 0
push dword [edi]
call fcn.101027a0
add esp, 0x18
mov edx, dword [esi]
mov ecx, eax
test edx, edx
mov dword [ebp - 0x20], edx
jne 0x10104067
test ecx, ecx
mov dword [ebp - 0x1c], ecx
je 0x10103f30
cmp dword [ecx], 0
je 0x10103f30
xor esi, esi
mov eax, 4
inc esi
cmp dword [ecx + eax], 0
lea eax, [eax + 4]
jne 0x10103f08
cmp esi, 0xa
jb 0x10103f6b
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov dword [edi + ecx*4 + 0xc], eax
mov dword [ebp - 0x14], 0xffffffff
mov dword [edi + ecx*4 + 0x24], eax
jmp 0x10103fed
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [edi + ecx*4 + 0x24], eax
push dword [ebp - 0x1c]
call fcn.100ff3c0
add esp, 4
mov eax, dword [ebp - 0x18]
xor ebx, ebx
mov dword [edi + eax*4 + 0x18], 1
jmp 0x10103ffb
xor ebx, ebx
push dword [ebp - 0x2c]
call fcn.100ff520
add esp, 4
jmp 0x10104064
push eax
push 0
call fcn.100ff2b0
add esp, 8
mov edx, dword [ebp - 0x18]
xor ecx, ecx
test eax, eax
sete cl
neg ecx
test eax, eax
mov dword [ebp - 0x14], ecx
mov dword [edi + edx*4 + 0x24], eax
je 0x10103fed
test esi, esi
je 0x10103f3c
xor ebx, ebx
mov eax, dword [ebp - 0x1c]
cmp edx, 1
mov ecx, dword [eax + ebx*4]
je 0x10103faf
test edx, edx
jne 0x10103fbc
mov edx, 0x1019ef34
lea eax, [ebp - 0x14]
push eax
push 0xa
jmp 0x10103fc7
mov edx, 0x1019ef5c
lea eax, [ebp - 0x14]
push eax
push 0xb
jmp 0x10103fc7
mov edx, 0x1019ef88
lea eax, [ebp - 0x14]
push eax
push 7
call fcn.101048c0
add esp, 8
mov edx, dword [ebp - 0x18]
mov ecx, dword [edi + edx*4 + 0x24]
mov dword [ecx + ebx*4], eax
cmp dword [ebp - 0x14], 0
jne 0x10104092
inc ebx
cmp esi, ebx
jne 0x10103f93
jmp 0x10103f3c
push dword [ebp - 0x1c]
call fcn.100ff3c0
mov eax, dword [ebp - 0x18]
add esp, 4
mov ecx, dword [ebp - 0x14]
test ecx, ecx
mov dword [ebp - 0x20], ecx
jne 0x10104067
jmp 0x10103cc3
mov ebx, dword [ebp - 0x18]
mov dword [ebx + edi*4], 0
mov esi, dword [ebx]
test esi, esi
je 0x10104047
mov edi, ebx
add edi, 4
push dword [esi + 4]
call fcn.10101a60
add esp, 4
push dword [esi + 0xc]
call fcn.100ff3c0
add esp, 4
push esi
call fcn.100ff3c0
add esp, 4
mov esi, dword [edi]
add edi, 4
test esi, esi
jne 0x1010401f
push ebx
call fcn.100ff3c0
add esp, 4
push dword [ebp - 0x2c]
call fcn.100ff520
add esp, 4
xor ebx, ebx
mov dword [ebp - 0x20], 0
mov edi, dword [ebp + 8]
push dword [edi + 4]
call sym.nss3.dll_PR_Unlock
add esp, 4
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x1010407e
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10192ef0
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [edi + edx*4 + 0x24]
test ebx, ebx
je 0x101040c6
xor esi, esi
mov eax, dword [eax + esi*4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
lock inc dword [eax + 8]
mov eax, dword [edi + edx*4 + 0x24]
mov eax, dword [eax + esi*4]
push dword [eax]
call fcn.100ff520
mov edx, dword [ebp - 0x18]
add esp, 4
mov eax, dword [edi + edx*4 + 0x24]
inc esi
cmp ebx, esi
jne 0x1010409c
push eax
mov esi, edx
call fcn.100ff3c0
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [edi + esi*4 + 0x24], 0
mov esi, dword [eax]
test esi, esi
je 0x10104110
mov edi, dword [ebp - 0x1c]
add edi, 4
push dword [esi + 4]
call fcn.10101a60
add esp, 4
push dword [esi + 0xc]
call fcn.100ff3c0
add esp, 4
push esi
call fcn.100ff3c0
add esp, 4
mov esi, dword [edi]
add edi, 4
test esi, esi
jne 0x101040e8
push dword [ebp - 0x1c]
call fcn.100ff3c0
add esp, 4
mov edi, dword [ebp + 8]
jmp 0x10103f47
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x10103c21