Function at 0x10114170
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x101d2014]
mov edi, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
movzx eax, byte [edi + 3]
shl eax, 0x18
cmp eax, 0x82000000
jne 0x101141a0
push 0
push 0xffffe005
jmp 0x1011433d
cmp dword [edi + 0x14], 0
mov eax, dword [edi + 8]
je 0x101141b4
cmp dword [eax + 0x30], 0
je 0x101141b4
mov ebx, dword [edi + 0x10]
jmp 0x101141b7
mov ebx, dword [eax + 0x3c]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10114368
mov esi, eax
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx + 8], esi
cmp dword [edi + 0x14], 0
je 0x10114215
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov esi, 0x91
mov dword [ebp - 0x14], ebx
mov eax, dword [edi]
lea ecx, [eax - 0x104]
cmp ecx, 6
ja case.default.0x101141fb
jmp dword [ecx*4 + 0x1019f5ac]
mov eax, dword [edi + 8]
mov esi, dword [edi + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax + 0x82]
jmp 0x101142d6
mov eax, dword [edi + 4]
mov esi, dword [edi + 0x20]
mov ebx, dword [edi + 0x1c]
test eax, eax
je 0x10114245
mov eax, dword [eax + 4]
jmp 0x10114247
cmp eax, 0x81000000
jne case.0x101141fb.262
mov eax, dword [edi + 8]
mov esi, dword [edi + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax + 0xa6]
jmp 0x101142d6
xor eax, eax
test ebx, ebx
je 0x10114284
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x1c], edx
mov ecx, dword [eax + 0x46]
call dword [section..00cfg]
push 0
push dword [ebp - 0x18]
push esi
push ebx
push dword [ebp - 0x1c]
call ecx
add esp, 0x14
test eax, eax
je 0x101141e0
push eax
call fcn.10115520
add esp, 4
jmp 0x10114289
mov eax, 0xffffe001
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
cmp dword [edi + 0x14], 0
mov eax, dword [edi + 8]
je 0x101142a8
cmp dword [eax + 0x30], 0
je 0x101142a8
push dword [edi + 0x10]
jmp 0x101142ab
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x10114345
mov eax, dword [edi + 8]
mov esi, dword [edi + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax + 0x92]
jmp 0x101142d6
mov eax, dword [edi + 8]
mov esi, dword [edi + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax + 0xb6]
mov ebx, edx
call dword [section..00cfg]
lea eax, [ebp - 0x14]
push eax
push ebx
jmp 0x101142fd
mov eax, dword [edi + 8]
mov esi, dword [edi + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax + 0xce]
call dword [section..00cfg]
push ebx
push dword [ebp + 0xc]
push esi
call ecx
add esp, 0xc
mov esi, eax
cmp dword [edi + 0x14], 0
mov eax, dword [edi + 8]
je 0x10114319
cmp dword [eax + 0x30], 0
je 0x10114319
lea eax, [edi + 0x10]
jmp 0x1011431c
add eax, 0x3c
push dword [eax]
call sym.nss3.dll_PR_Unlock
add esp, 4
test esi, esi
mov dword [edi + 0x28], 0
je 0x1011435c
push esi
call fcn.10115520
add esp, 4
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10192ef0
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
xor esi, esi
mov dword [eax], ecx
jmp 0x10114348
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
jmp 0x101141cb