Function at 0x1010d8f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd0
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [esp + 0xc8], eax
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], eax
mov dword [esp + 8], eax
cmp dword [edi + 0xc4], eax
je 0x1010d949
push edi
call fcn.101141d0
add esp, 4
push dword [edi + 0xc4]
call fcn.10113020
add esp, 4
mov dword [edi + 0xc4], 0
mov ebx, esp
push dword [esi + 8]
push ebx
push 0
call sym.nss3.dll_SECITEM_AllocItem_Util
add esp, 0xc
test eax, eax
je 0x1010d9cb
lea eax, [esp + 8]
push dword [eax]
push eax
push dword [eax - 4]
push dword [esi + 8]
push dword [esi + 4]
push edi
call fcn.100f9d50
add esp, 0x18
test eax, eax
je 0x1010d9d3
movzx eax, word [edi + 0x58]
xor esi, esi
cmp eax, 0x303
ja 0x1010dbc1
cmp dword [0x101de200], 0
je 0x1010e08c
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1010dbe4
cmp dword [eax + 0x28], 0xffffe02d
je 0x1010dbc1
push 0x2f
push 2
push edi
call fcn.100fa900
add esp, 0xc
jmp 0x1010dbbe
xor esi, esi
dec esi
jmp 0x1010dbcc
mov eax, dword [esp + 4]
mov esi, dword [esp + 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
lea eax, [esp + 0x18]
push 0xb0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test esi, esi
je 0x1010de61
lea eax, [esp + 0xc]
lea edi, [esp + 0x10]
lea esi, [esp + 0x14]
push eax
push edi
push 2
push esi
push dword [ebp + 8]
call fcn.100fa850
add esp, 0x14
test eax, eax
je 0x1010da2b
push 0
push 0xffffe001
jmp 0x1010dbaf
mov eax, dword [esp + 0x14]
mov ecx, eax
and ecx, 0xffffff00
cmp ecx, 0x100
jne 0x1010dba8
cmp eax, 0x10a
jne 0x1010de61
lea eax, [esp + 0xc]
push eax
push edi
push 2
push esi
mov eax, dword [ebp + 8]
push eax
call fcn.100fa850
add esp, 0x14
test eax, eax
jne 0x1010da1f
movzx eax, word [esp + 0x14]
mov word [esp + 0x1c], ax
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x9f8]
call fcn.1011b3d0
add esp, 8
test eax, eax
je 0x1010de61
lea eax, [esp + 0xc]
push eax
push edi
push 2
push esi
push dword [ebp + 8]
call fcn.100fa850
add esp, 0x14
test eax, eax
jne 0x1010da1f
movzx eax, word [esp + 0x14]
mov word [esp + 0x1e], ax
lea eax, [esp + 0xc]
push eax
push edi
push 1
push esi
push dword [ebp + 8]
call fcn.100fa850
add esp, 0x14
test eax, eax
jne 0x1010da1f
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
lea eax, [esp + 0xc]
push eax
push edi
push 4
push esi
push dword [ebp + 8]
call fcn.100fa850
add esp, 0x14
test eax, eax
jne 0x1010da1f
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
lea eax, [esp + 0xc]
push eax
push edi
push 1
push esi
push dword [ebp + 8]
call fcn.100fa850
add esp, 0x14
test eax, eax
jne 0x1010da1f
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], eax
lea eax, [esp + 0xc]
push eax
push edi
push 4
push esi
push dword [ebp + 8]
call fcn.100fa850
add esp, 0x14
test eax, eax
jne 0x1010db95
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0xc]
push eax
push edi
push 4
push esi
push dword [ebp + 8]
call fcn.100fa850
add esp, 0x14
test eax, eax
jne 0x1010db95
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], eax
lea eax, [esp + 0xc]
push eax
push edi
push 4
push esi
push dword [ebp + 8]
call fcn.100fa850
add esp, 0x14
test eax, eax
jne 0x1010db95
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], eax
lea eax, [esp + 0xc]
push eax
push edi
push 1
push esi
push dword [ebp + 8]
call fcn.100fa850
add esp, 0x14
test eax, eax
je 0x1010dbff
push 0
push 0xffffe001
call sym.nss3.dll_PR_SetError
add esp, 8
mov ebx, esp
jmp 0x1010dbb7
push 0
push 0xffffd01c
call sym.nss3.dll_PR_SetError
add esp, 8
lock inc dword [0x101df650]
xor esi, esi
dec esi
push 0
push ebx
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
mov ecx, dword [esp + 0xc8]
xor ecx, ebp
call fcn.1014dc80
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x1010d9ac
mov eax, dword [esp + 0x20]
add eax, 0xfffffffc
cmp eax, 2
ja 0x1010dc2d
push dword [esp + 0x14]
call fcn.1011a470
add esp, 4
test eax, eax
je 0x1010db95
cmp dword [eax + 8], 4
jne 0x1010db95
mov dword [esp + 0x38], eax
lea eax, [esp + 0xc]
push eax
push edi
push 4
push esi
push dword [ebp + 8]
call fcn.100fa850
add esp, 0x14
test eax, eax
jne 0x1010db95
mov eax, dword [esp + 0x14]
mov dword [esp + 0x40], eax
lea eax, [esp + 0xc]
push eax
push edi
push 2
push esi
push dword [ebp + 8]
call fcn.100fa850
add esp, 0x14
test eax, eax
jne 0x1010db95
mov eax, dword [esp + 0x14]
lea ecx, [eax - 1]
cmp ecx, 0x30
jae 0x1010db95
lea ecx, [esp + 0x46]
mov word [ecx - 2], ax
lea edx, [esp + 0xc]
push edx
push edi
push eax
push ecx
push dword [ebp + 8]
call fcn.100fd210
add esp, 0x14
test eax, eax
jne 0x1010db95
lea eax, [esp + 0xc]
push eax
push edi
push 1
push esi
push dword [ebp + 8]
call fcn.100fa850
add esp, 0x14
test eax, eax
jne 0x1010db95
mov eax, dword [esp + 0x14]
mov dword [esp + 0x7c], eax
test eax, eax
je 0x1010dcf4
cmp eax, 1
jne 0x1010db95
lea eax, [esp + 0x80]
lea ecx, [esp + 0xc]
push ecx
push edi
push 2
push eax
push dword [ebp + 8]
call fcn.100fd330
add esp, 0x14
test eax, eax
jne 0x1010db95
lea eax, [esp + 0xc]
push eax
push edi
push 4
push esi
push dword [ebp + 8]
call fcn.100fa850
add esp, 0x14
test eax, eax
jne 0x1010db95
mov eax, dword [esp + 0x14]
mov dword [esp + 0x94], eax
mov dword [esp + 0x90], 0
lea eax, [esp + 0xc]
push eax
push edi
push 4
push esi
push dword [ebp + 8]
call fcn.100fa850
add esp, 0x14
test eax, eax
jne 0x1010db95
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x9c]
or dword [ecx - 0xc], eax
lea eax, [esp + 0xc]
push eax
push edi
push 2
push ecx
push dword [ebp + 8]
call fcn.100fd330
add esp, 0x14
test eax, eax
jne 0x1010db95
lea eax, [esp + 0xc]
push eax
push edi
push 1
push esi
push dword [ebp + 8]
call fcn.100fa850
add esp, 0x14
test eax, eax
jne 0x1010db95
xor eax, eax
cmp dword [esp + 0x14], 0
setne al
mov dword [esp + 0x78], eax
lea eax, [esp + 0xc]
push eax
push edi
push 4
push esi
push dword [ebp + 8]
call fcn.100fd210
add esp, 0x14
test eax, eax
jne 0x1010db95
push dword [esp + 0x14]
call sub.wsock32.dll_ntohl
lea ecx, [esp + 0xa8]
mov dword [ecx - 0x10], eax
lea eax, [esp + 0xc]
push eax
push edi
push 1
push ecx
push dword [ebp + 8]
call fcn.100fd330
add esp, 0x14
test eax, eax
jne 0x1010db95
lea eax, [esp + 0xc]
push eax
push edi
push 4
push esi
push dword [ebp + 8]
call fcn.100fa850
add esp, 0x14
test eax, eax
jne 0x1010db95
mov eax, dword [esp + 0x14]
mov dword [esp + 0xb4], eax
lea eax, [esp + 0xc]
push eax
push edi
push 4
push esi
push dword [ebp + 8]
call fcn.100fa850
add esp, 0x14
test eax, eax
jne 0x1010db95
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xbc]
mov dword [ecx - 4], eax
lea eax, [esp + 0xc]
push eax
push edi
push 2
push ecx
push dword [ebp + 8]
call fcn.100fd330
add esp, 0x14
test eax, eax
jne 0x1010db95
cmp dword [esp + 0xc], 0
jne 0x1010db95
mov dword [esp + 0x18], 1
mov edi, dword [esp + 0x94]
mov ebx, 0x3baec000
add ebx, dword [esp + 0x90]
adc edi, 0
mov eax, dword [ebp + 8]
push eax
call fcn.1011c450
add esp, 4
xor esi, esi
cmp eax, ebx
sbb edx, edi
jge 0x1010e05e
push 1
push dword [ebp + 8]
call fcn.100fee40
add esp, 8
xor esi, esi
dec esi
test eax, eax
mov ebx, esp
je 0x1010dbc1
mov edi, eax
movzx eax, word [esp + 0x1c]
mov word [edi + 0x4a], ax
movsd xmm0, qword [esp + 0x90]
movsd qword [edi + 0x50], xmm0
movzx eax, word [esp + 0x1e]
mov word [edi + 0x9a], ax
mov eax, dword [esp + 0x20]
mov dword [edi + 0x60], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x64], eax
mov eax, dword [esp + 0x28]
mov dword [edi + 0x68], eax
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x6c], eax
mov eax, dword [esp + 0x30]
mov dword [edi + 0x70], eax
mov eax, dword [esp + 0x38]
mov dword [edi + 0x2c], eax
mov eax, dword [esp + 0x34]
mov dword [edi + 0x74], eax
lea eax, [edi + 0x130]
push dword [ebp + 0xc]
push eax
push 0
call sym.nss3.dll_SECITEM_CopyItem_Util
add esp, 0xc
test eax, eax
jne 0x1010e050
mov eax, dword [esp + 0x98]
mov dword [edi + 0x124], eax
mov eax, dword [esp + 0xb4]
mov dword [edi + 0x12c], eax
movzx ecx, word [esp + 0x44]
cmp ecx, 0x30
ja 0x1010e050
lea eax, [edi + 0x9d]
lea edx, [esp + 0x46]
push ecx
push edx
push eax
mov ebx, ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [edi + 0xcd], bl
lea ecx, [esp + 0x46]
mov eax, dword [ecx - 6]
mov dword [edi + 0xd0], eax
mov al, 1
mov byte [edi + 0xea], al
mov byte [edi + 0xce], al
mov al, byte [ecx + 0x32]
mov byte [edi + 0xcf], al
cmp dword [ecx + 0x3e], 0
mov ebx, esp
je 0x1010dfb6
lea eax, [esp + 0x80]
xor ecx, ecx
push 1
push ecx
push ecx
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x178]
call sym.nss3.dll_CERT_NewTempCertificate
add esp, 0x14
mov dword [edi + 0x18], eax
test eax, eax
je 0x1010e050
cmp dword [esp + 0xa0], 0
je 0x1010dfee
lea ebx, [edi + 0xec]
xor eax, eax
push eax
push ebx
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
lea eax, [esp + 0x9c]
push eax
push ebx
lea ebx, [esp + 8]
xor eax, eax
push eax
call sym.nss3.dll_SECITEM_CopyItem_Util
add esp, 0xc
test eax, eax
jne 0x1010e050
cmp dword [esp + 0xac], 0
je 0x1010e028
mov ebx, edi
add ebx, 0x104
xor eax, eax
push eax
push ebx
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
lea eax, [esp + 0xa8]
push eax
push ebx
lea ebx, [esp + 8]
xor eax, eax
push eax
call sym.nss3.dll_SECITEM_CopyItem_Util
add esp, 0xc
test eax, eax
jne 0x1010e050
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1010e065
cmp dword [esp + 0xc4], 0
je 0x1010e065
lea ecx, [esp + 0xbc]
push ecx
push eax
push 0
call sym.nss3.dll_SECITEM_CopyItem_Util
add esp, 0xc
test eax, eax
je 0x1010e065
push edi
call fcn.10113020
add esp, 4
jmp 0x1010dbc1
mov ebx, esp
jmp 0x1010dbc1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6f8], 1
mov dword [ecx + 0xc4], edi
mov eax, dword [esp + 0xb8]
mov dword [ecx + 0x9c0], eax
xor esi, esi
jmp 0x1010dbc1
call fcn.100745e0
jmp 0x1010d998