Function at 0x10128ee0
Capabilities:
Get thread local storage value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xd0
mov ebx, dword [ebp + 8]
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [esp + 0xc8], eax
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
push 0xfe0a
push ebx
call fcn.1010bc80
add esp, 8
mov edi, 0
test eax, eax
je 0x10129140
add eax, 0xc
lea esi, [ebx + 0x6fc]
push eax
push esi
push ebx
call fcn.1012b8e0
add esp, 0xc
xor edi, edi
test eax, eax
jne 0x1012925e
mov dword [esp + 4], esi
xor edi, edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x50], edi
mov eax, dword [ebx + 0x9f4]
test eax, eax
je 0x10129140
cmp dword [ebx + 0x614], 0
je 0x1012909e
push 0x2c
push ebx
call fcn.1010bc80
add esp, 8
test eax, eax
je 0x10129140
mov ecx, dword [eax + 0x10]
lea edx, [esp + 0xa0]
mov dword [edx], ecx
mov eax, dword [eax + 0x14]
lea ecx, [esp + 0x7c]
mov dword [ecx], eax
lea eax, [esp + 0x48]
push ecx
push edx
push 2
push eax
push ebx
call fcn.100fd330
add esp, 0x14
test eax, eax
jne 0x10129119
xor esi, esi
lea eax, [esp + 0x70]
mov dword [eax], esi
lea ecx, [esp + 0xb8]
lea edx, [esp + 0xc0]
lea edi, [esp + 0x64]
push esi
push eax
push ecx
push edx
push edi
push esi
push esi
push esi
push dword [esp + 0x70]
push dword [esp + 0x70]
push ebx
call fcn.1012bd80
add esp, 0x2c
mov ecx, ebx
xor edx, edx
inc edx
test eax, eax
je 0x10129026
mov ebx, ecx
jmp 0x10129090
mov eax, dword [esp + 0x70]
mov dword [ecx + 0x674], eax
mov dl, byte [esp + 0xb8]
mov ebx, ecx
mov ecx, dword [ecx + 0x9f4]
cmp dl, byte [ecx + 0x18]
jne 0x10129062
mov edx, dword [esp + 0x64]
cmp edx, dword [ecx + 0x1c]
jne 0x10129062
mov edx, dword [esp + 0xc0]
cmp edx, dword [ecx + 0x20]
jne 0x10129062
xor edx, edx
test eax, eax
sete dl
jmp 0x10129090
xor edi, edi
mov esi, 0xffffd09c
push edi
push esi
call sym.nss3.dll_PR_SetError
add esp, 8
push 0x2f
push 2
push ebx
call fcn.100fa900
add esp, 0xc
push edi
push esi
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
xor edx, edx
inc edx
test edx, edx
jne 0x10129136
mov eax, dword [ebx + 0x9f4]
mov ecx, ebx
add ebx, 0x9fc
mov edi, dword [ecx + 0x9fc]
cmp edi, ebx
je 0x101290d2
mov cl, byte [eax + 0x18]
mov edx, dword [eax + 0x20]
mov eax, dword [eax + 0x1c]
cmp byte [edi + 0x18], cl
jne 0x101290cc
cmp dword [edi + 0x30], edx
jne 0x101290cc
cmp dword [edi + 0x2c], eax
je 0x101292e0
mov edi, dword [edi]
cmp edi, ebx
jne 0x101290b9
lea eax, [esp + 0x58]
push 0
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x614], 0
mov eax, dword [esp + 4]
je 0x10129120
xor esi, esi
mov edi, 0xffffd0b1
push esi
push edi
call sym.nss3.dll_PR_SetError
add esp, 8
push 0x33
push 2
push ebx
call fcn.100fa900
add esp, 0xc
push esi
push edi
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
jmp 0x1012925e
push 0x1012b890
push 0xfe0a
push eax
push ebx
call fcn.1010bfd0
add esp, 0x10
mov esi, eax
xor edi, edi
test esi, esi
jne 0x1012925e
or byte [ebx + 0x540], 0x10
cmp dword [ebx + 0x670], 0
je 0x101292c6
mov eax, dword [edi + 4]
lea ecx, [esp + 0xa0]
mov dword [ecx], eax
mov dword [esp], edi
mov eax, dword [edi + 8]
lea edx, [esp + 0x7c]
mov dword [edx], eax
lea eax, [esp + 8]
lea edi, [esp + 0x18]
lea ebx, [esp + 0x28]
lea esi, [esp + 0x38]
push eax
push edi
push ebx
mov ebx, dword [ebp + 8]
push esi
push edx
push ecx
push ebx
call fcn.10100a20
add esp, 0x1c
test eax, eax
jne 0x1012925b
push 0xda09
push ebx
call fcn.1010bc80
add esp, 8
test eax, eax
je 0x1012921e
push 0x2b
push ebx
call fcn.1010bc80
add esp, 8
test eax, eax
je 0x10129233
push eax
push ebx
call fcn.10126390
add esp, 8
test eax, eax
je 0x1012926e
cmp dword [0x101de200], 0
je 0x10129b4c
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10129709
mov esi, dword [eax + 0x28]
cmp esi, 0xffffd009
mov eax, 0x46
mov edi, 0x2f
cmove edi, eax
xor ebx, ebx
push ebx
push esi
call sym.nss3.dll_PR_SetError
add esp, 8
push edi
push 2
push dword [ebp + 8]
call fcn.100fa900
add esp, 0xc
push ebx
push esi
jmp 0x10129253
xor esi, esi
mov edi, 0xffffd0b2
push esi
push edi
call sym.nss3.dll_PR_SetError
add esp, 8
push 0x2f
jmp 0x10129246
xor esi, esi
mov edi, 0xffffd009
push esi
push edi
call sym.nss3.dll_PR_SetError
add esp, 8
push 0x46
push 2
push ebx
call fcn.100fa900
add esp, 0xc
push esi
push edi
call sym.nss3.dll_PR_SetError
add esp, 8
mov edi, dword [esp]
push 1
push edi
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
xor esi, esi
dec esi
jmp 0x101292c8
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0x1c]
movsd xmm0, qword [esp + 8]
movsd qword [eax], xmm0
mov eax, dword [esp + 0x30]
mov dword [ecx + 8], eax
movsd xmm0, qword [esp + 0x28]
movsd qword [ecx], xmm0
mov eax, dword [esp + 0x40]
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0x20]
movsd xmm0, qword [esp + 0x38]
movsd qword [ecx], xmm0
mov ecx, dword [esp + 0x20]
mov dword [eax + 8], ecx
movsd xmm0, qword [esp + 0x18]
movsd qword [eax], xmm0
mov eax, dword [ebp + 0x24]
mov ecx, dword [esp]
mov dword [eax], ecx
xor esi, esi
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
xorps xmm0, xmm0
lea esi, [esp + 0xa0]
movaps xmmword [esi], xmm0
xor ecx, ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x64], ecx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x7c], edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], ecx
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xb8], ecx
mov ecx, eax
sar ecx, 0x1f
push 2
push ecx
push eax
push esi
call fcn.101114b0
add esp, 0x10
test eax, eax
jne 0x10129458
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x9f4]
mov eax, dword [eax + 0x20]
mov ecx, eax
sar ecx, 0x1f
push 2
push ecx
push eax
push esi
call fcn.101114b0
lea esi, [esp + 0xb0]
add esp, 0x10
test eax, eax
jne 0x10129458
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x9f4]
movzx eax, byte [eax + 0x18]
push 1
push 0
push eax
push esi
call fcn.101114b0
lea esi, [esp + 0xb0]
add esp, 0x10
test eax, eax
jne 0x10129458
mov eax, dword [ebp + 8]
cmp dword [eax + 0x614], 0
je 0x101293af
xor eax, eax
push 2
push eax
push eax
lea eax, [esp + 0xac]
push eax
call fcn.101114b0
jmp 0x101293cd
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x9f4]
push 2
push dword [eax + 0x14]
push dword [eax + 0x10]
lea eax, [esp + 0xac]
push eax
call fcn.10111590
add esp, 0x10
test eax, eax
lea esi, [esp + 0xa0]
jne 0x10129458
lea eax, [esp + 0x9c]
push eax
push 3
push esi
call fcn.10111770
lea esi, [esp + 0xac]
add esp, 0xc
test eax, eax
jne 0x10129458
lea eax, [esp + 0x64]
lea ecx, [esp + 0x7c]
xor edx, edx
push eax
lea eax, [esp + 0xa4]
push eax
call fcn.10129ef0
lea esi, [esp + 0xa8]
add esp, 8
test eax, eax
jne 0x10129458
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x70], eax
mov dword [esp], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], 0
lea eax, [esp + 0x90]
push eax
push 2
push esi
call fcn.10111770
lea esi, [esp + 0xac]
add esp, 0xc
test eax, eax
je 0x10129466
push esi
call fcn.10111940
add esp, 4
jmp 0x10129119
cmp dword [esp], 0
je 0x10129527
lea eax, [esp + 0xc0]
push eax
push 2
lea eax, [esp + 0x78]
push eax
call fcn.10111ab0
add esp, 0xc
test eax, eax
lea esi, [esp + 0xa0]
jne 0x10129458
lea eax, [esp + 0xb8]
push eax
push 2
lea eax, [esp + 0x78]
push eax
call fcn.101119e0
lea esi, [esp + 0xac]
add esp, 0xc
test eax, eax
jne 0x10129458
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0xc4]
mov edx, eax
xor edx, 0xfe0a
or edx, ecx
lea edx, [esp + 0xa0]
je 0x10129519
push 2
push ecx
push eax
push edx
call fcn.101114b0
lea esi, [esp + 0xb0]
add esp, 0x10
test eax, eax
jne 0x10129458
push 2
push dword [esp + 0xc0]
push dword [esp + 0xc0]
push esi
call fcn.10111590
lea esi, [esp + 0xb0]
add esp, 0x10
test eax, eax
jne 0x10129458
mov eax, dword [esp + 0x74]
cmp eax, dword [esp + 0x78]
jne 0x10129470
push 2
push dword [esp + 0x94]
lea esi, [esp + 0xa8]
push esi
call fcn.10111800
add esp, 0xc
test eax, eax
jne 0x10129458
push 3
push dword [esp + 0xa0]
push esi
call fcn.10111800
add esp, 0xc
test eax, eax
jne 0x10129458
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
test edi, edi
je 0x101290d2
xor ecx, ecx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa8], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x614], ecx
je 0x10129653
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x674]
mov dword [esp], eax
lea eax, [esp + 0x7c]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x9f4]
lea eax, [esp + 0x60]
push eax
push dword [esp + 0xc]
call sym.nss3.dll_PK11_HPKE_Open
add esp, 0x10
test eax, eax
je 0x10129724
mov esi, dword [esp]
push 1
push dword [esp + 0x80]
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
push 0
lea eax, [esp + 0xa4]
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
mov eax, dword [ebp + 8]
cmp esi, dword [eax + 0x674]
je 0x10129619
push 1
push esi
call sym.nss3.dll_PK11_HPKE_DestroyContext
add esp, 8
mov edi, dword [edi]
cmp edi, ebx
je 0x101290d2
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x9f4]
mov al, byte [edx + 0x18]
mov ecx, dword [edx + 0x20]
mov edx, dword [edx + 0x1c]
cmp byte [edi + 0x18], al
jne 0x10129648
cmp dword [edi + 0x30], ecx
jne 0x10129648
cmp dword [edi + 0x2c], edx
je 0x10129580
mov edi, dword [edi]
cmp edi, ebx
jne 0x10129635
jmp 0x101290d2
xor eax, eax
push eax
xor esi, esi
push eax
push dword [edi + 0x30]
push dword [edi + 0x2c]
push dword [edi + 0x1c]
call sym.nss3.dll_PK11_HPKE_NewContext
add esp, 0x14
mov dword [esp], eax
test eax, eax
je 0x101295e0
mov eax, dword [edi + 0x10]
add eax, 8
push eax
lea eax, [esp + 0xa4]
push eax
push 0
call sym.nss3.dll_SECITEM_AllocItem_Util
add esp, 0xc
test eax, eax
je 0x101295dd
mov eax, dword [esp + 0xa4]
mov dword [eax + 3], 0x68636520
mov dword [eax], 0x20736c74
mov eax, dword [esp + 0xa4]
mov byte [eax + 7], 0
mov eax, dword [esp + 0xa4]
add eax, 8
push dword [edi + 0x10]
push dword [edi + 0xc]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x9f4]
add eax, 0xc
lea edx, [esp + 0xa0]
push edx
push eax
push dword [ecx + 0xa08]
push dword [ecx + 0xa04]
mov esi, dword [esp + 0x10]
push esi
call sym.nss3.dll_PK11_HPKE_SetupR
add esp, 0x14
test eax, eax
jne 0x101295e0
jmp 0x101295b6
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x101291ea
mov eax, dword [ebp + 8]
mov ecx, dword [esp]
mov dword [eax + 0x674], ecx
mov ebx, dword [esp + 0x7c]
xor edi, edi
push edi
lea eax, [esp + 0xa4]
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
push edi
lea eax, [esp + 0x5c]
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
mov dword [esp], ebx
test ebx, ebx
je 0x101290e1
mov eax, dword [ebp + 8]
mov dword [eax + 0x670], 1
lea ecx, [eax + 0x544]
add eax, 0x54c
mov dword [esp + 4], ecx
push ecx
mov ebx, eax
push eax
call fcn.1010c7a0
add esp, 8
xorps xmm0, xmm0
movaps xmmword [esp + 0xa0], xmm0
mov edx, dword [esp]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x7c]
mov dword [ecx], eax
mov eax, dword [edx + 8]
mov dword [ecx + 4], eax
mov dword [ecx + 8], 0
lea eax, [esp + 0xb8]
mov edx, dword [ebp + 0x14]
push eax
lea eax, [esp + 0xa4]
push eax
call fcn.10129ef0
add esp, 8
test eax, eax
jne 0x101297ef
lea eax, [esp + 0xbc]
mov ecx, dword [eax - 4]
lea edx, [esp + 0x8c]
mov dword [edx], ecx
push eax
push edx
push dword [ebp + 8]
call fcn.1010baf0
add esp, 0xc
test eax, eax
je 0x1012980f
lea eax, [esp + 0xa0]
push eax
call fcn.10111940
add esp, 4
push 1
push dword [esp + 4]
call sym.nss3.dll_SECITEM_FreeItem_Util
jmp 0x10129116
push 0xfd00
push dword [ebp + 8]
call fcn.1010bc80
add esp, 8
test eax, eax
je 0x10129ac5
lea eax, [esp + 0x9c]
push eax
push 2
lea eax, [esp + 0xa8]
push eax
call fcn.10111770
add esp, 0xc
test eax, eax
jne 0x101297ef
mov eax, dword [esp + 4]
mov esi, dword [eax]
cmp esi, eax
je 0x101299ce
movzx eax, word [esi + 8]
cmp eax, 0xfd00
jne 0x10129982
mov eax, dword [esi + 0x10]
mov dword [esp + 0x70], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], 0
lea eax, [esp + 0xc0]
push eax
push 1
lea eax, [esp + 0x78]
push eax
call fcn.101119e0
add esp, 0xc
test eax, eax
jne 0x101297ef
mov eax, dword [esp + 0x74]
cmp eax, dword [esp + 0x78]
jne 0x10129b56
mov eax, dword [esp + 0xc4]
test al, 1
jne 0x10129b56
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], 0
test eax, eax
je 0x101299c2
lea eax, [esp + 0x90]
push eax
push 2
lea eax, [esp + 0x6c]
push eax
call fcn.10111ab0
add esp, 0xc
test eax, eax
jne 0x101297ef
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
mov edx, eax
xor edx, 0xfd00
or edx, ecx
je 0x10129b08
mov edx, eax
xor edx, 0xfe0a
or edx, ecx
mov edi, ebx
je 0x10129b08
mov edi, dword [edi]
cmp edi, ebx
je 0x10129b08
movzx edx, word [edi + 8]
xor edx, eax
or edx, ecx
jne 0x10129922
push 2
push ecx
push eax
lea eax, [esp + 0xac]
push eax
call fcn.101114b0
add esp, 0x10
test eax, eax
jne 0x101297ef
push 2
push dword [edi + 0x14]
push dword [edi + 0x10]
lea eax, [esp + 0xac]
push eax
call fcn.10111590
add esp, 0x10
test eax, eax
jne 0x101297ef
mov eax, dword [esp + 0x68]
cmp eax, dword [esp + 0x6c]
jne 0x101298d3
jmp 0x101299c2
movzx eax, ax
push 2
push 0
push eax
lea eax, [esp + 0xac]
push eax
call fcn.101114b0
add esp, 0x10
test eax, eax
jne 0x101297ef
push 2
push dword [esi + 0x14]
push dword [esi + 0x10]
lea eax, [esp + 0xac]
push eax
call fcn.10111590
add esp, 0x10
test eax, eax
jne 0x101297ef
mov esi, dword [esi]
cmp esi, dword [esp + 4]
jne 0x10129853
push ebx
call fcn.1010bc40
add esp, 4
push dword [esp + 4]
call fcn.1010bc40
add esp, 4
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0x9c]
sub eax, ecx
add eax, 0xfffffffe
push 2
push 0
push eax
push ecx
lea eax, [esp + 0xb0]
push eax
call fcn.101118a0
add esp, 0x14
test eax, eax
jne 0x101297ef
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0xa0]
add ecx, eax
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0xa4]
sub ecx, eax
lea edi, [esp + 0x88]
mov dword [edi], ecx
push edi
lea eax, [esp + 0x90]
push eax
push 2
lea eax, [esp + 0x9c]
push eax
push dword [ebp + 8]
call fcn.100fd280
add esp, 0x14
test eax, eax
jne 0x10129b1d
mov eax, dword [esp + 0x90]
xor eax, dword [esp + 0x88]
or eax, dword [esp + 0x94]
jne 0x10129b1d
push edi
lea eax, [esp + 0x90]
push eax
push dword [ebp + 8]
call fcn.1010baf0
add esp, 0xc
test eax, eax
jne 0x101297ef
push 0
mov edi, dword [esp + 4]
push edi
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
mov eax, dword [esp + 0xa0]
mov dword [edi + 4], eax
mov eax, dword [esp + 0xa4]
mov dword [edi + 8], eax
mov ebx, dword [ebp + 8]
jmp 0x10129140
push 2
push dword [esp + 0xc0]
push dword [esp + 0xc0]
lea eax, [esp + 0xac]
push eax
call fcn.10111590
add esp, 0x10
test eax, eax
jne 0x101297ef
lea eax, [esp + 0xa0]
push eax
call fcn.10111940
add esp, 4
mov ebx, dword [ebp + 8]
mov edi, dword [esp]
jmp 0x10129140
xor esi, esi
mov edi, 0xffffd0b1
push esi
push edi
call sym.nss3.dll_PR_SetError
add esp, 8
push 0x2f
jmp 0x10129b30
xor esi, esi
mov edi, 0xffffd01c
push esi
push edi
call sym.nss3.dll_PR_SetError
add esp, 8
push 0x50
push 2
push dword [ebp + 8]
call fcn.100fa900
add esp, 0xc
push esi
push edi
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x101297ef
call fcn.100745e0
jmp 0x101291d6
push 0
push 0xffffd0b1
jmp 0x10129b3f