Function at 0x100a0fa0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28c
mov ebx, dword [ebp + 0x18]
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x231], 0
mov byte [ebp - 0x232], 1
mov edi, 0x6c
lea eax, [ebp - 0x7c]
push edi
push 0x101bab8c
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea esi, [ebp - 0xe8]
push edi
push 0x101babf8
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x160]
push pe_nt_image_headers32
push 0x101bac64
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x1cc]
push edi
push 0x101bacdc
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x22c]
push 0x60
push 0x101bad48
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, ebx
shr eax, 1
and eax, ebx
test eax, 0x55555555
je 0x100a1069
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, edi
add esp, 0x28c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x280], esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x100a1041
mov edi, dword [ebp + 8]
test edi, edi
je 0x100a11f3
mov esi, dword [ebp + 0xc]
push esi
push edi
call sym.nss3.dll_PK11_DoesMechanism
add esp, 8
test eax, eax
je 0x100a116a
mov edi, dword [ebp + 0x1c]
and edi, dword [ebp + 0x20]
mov dword [ebp - 0x244], esi
xor eax, eax
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x231]
lea ecx, [ebp - 0x232]
push eax
push ecx
lea eax, [ebp - 0x7c]
push eax
push dword [ebp + 0x18]
call fcn.100bc530
add esp, 0x10
cmp esi, 0xf
jle 0x100a11ff
cmp esi, 0x10
je 0x100a1277
cmp esi, 0x20
je 0x100a12f5
cmp esi, 0x1040
jne 0x100a1370
mov dword [ebp - 0x274], eax
lea ecx, [ebp - 0x220]
mov dword [ecx - 0xc], 0x180
mov eax, dword [ebx + 4]
mov dword [ecx - 8], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x288], ecx
mov dword [ecx - 4], eax
mov eax, edi
not eax
mov dword [ebp - 0x270], 0x1050
mov dword [ebp - 0x284], 6
test eax, 0x80800
mov dword [ebp - 0x27c], edi
jne 0x100a140f
mov edi, 0x1041
mov al, 1
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x268], 0
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x280], eax
jmp 0x100a1368
call sym.nss3.dll_PK11_GetInternalSlot
cmp eax, edi
je 0x100a125c
mov ebx, eax
test eax, eax
je 0x100a11f3
xor edi, edi
push dword [ebp + 0x24]
push edi
push edi
push 0x8a
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call sym.nss3.dll_PK11_GenerateKeyPairWithOpFlags
add esp, 0x20
lock dec dword [ebx + 0x48]
jne 0x100a11af
push ebx
mov ebx, eax
call fcn.100c9d60
mov eax, ebx
add esp, 4
test eax, eax
je 0x100a1052
mov ecx, dword [ebp + 8]
mov edx, eax
push dword [ebp + 0x18]
push dword [esi]
mov ebx, eax
call fcn.100a1c10
add esp, 8
mov edi, eax
push ebx
call sym.nss3.dll_SECKEY_DestroyPrivateKey
add esp, 4
test edi, edi
jne 0x100a1052
push dword [esi]
call sym.nss3.dll_SECKEY_DestroyPublicKey
add esp, 4
mov dword [esi], 0
jmp 0x100a1050
push 0
push 0xffffe040
jmp 0x100a1048
test esi, esi
je 0x100a120c
cmp esi, 0xa
jne 0x100a1370
mov edx, dword [ebx + 4]
test edx, edx
je 0x100a1041
mov dword [ebp - 0x274], eax
mov ecx, dword [ebx]
mov dword [ebp - 0x238], ecx
cmp edx, 0x1000000
jae 0x100a137c
xor ecx, ecx
test edx, 0xff0000
mov ebx, dword [ebp + 8]
jne 0x100a138d
test edx, 0xff00
je 0x100a1b31
mov byte [ebp - 0x230], dh
xor ecx, ecx
inc ecx
jmp 0x100a13a5
lock dec dword [edi + 0x48]
jne 0x100a126b
push edi
call fcn.100c9d60
add esp, 4
push 0
push 0xffffe001
jmp 0x100a1048
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x27c], edi
lea ecx, [ebp - 0x13c]
mov dword [ecx - 0x24], 0x130
mov eax, dword [ebx + 8]
mov dword [ecx - 0x20], eax
mov eax, dword [ebx + 0xc]
mov dword [ecx - 0x1c], eax
mov dword [ecx - 0x18], 0x131
mov eax, dword [ebx + 0x14]
mov dword [ecx - 0x14], eax
mov eax, dword [ebx + 0x18]
mov dword [ecx - 0x10], eax
mov dword [ecx - 0xc], 0x132
mov eax, dword [ebx + 0x20]
mov dword [ecx - 8], eax
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x288], ecx
mov dword [ecx - 4], eax
mov dword [ebp - 0x270], 0x11
xor edi, edi
dec edi
mov al, 1
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x160]
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x284], 2
jmp 0x100a135e
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x27c], edi
lea ecx, [ebp - 0x1b4]
mov dword [ecx - 0x18], 0x130
mov eax, dword [ebx + 8]
mov dword [ecx - 0x14], eax
mov eax, dword [ebx + 0xc]
mov dword [ecx - 0x10], eax
mov dword [ecx - 0xc], 0x132
mov eax, dword [ebx + 0x14]
mov dword [ecx - 8], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x288], ecx
mov dword [ecx - 4], eax
mov dword [ebp - 0x270], 0x21
xor edi, edi
dec edi
mov al, 1
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x1cc]
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x284], 4
mov dword [ebp - 0x278], 0
mov ebx, dword [ebp + 8]
jmp 0x100a1473
push 0
push 0xffffe00e
jmp 0x100a1048
mov ecx, edx
shr ecx, 0x18
mov byte [ebp - 0x230], cl
xor ecx, ecx
inc ecx
mov ebx, dword [ebp + 8]
mov eax, edx
shr edx, 0x10
mov byte [ebp + ecx - 0x230], dl
mov edx, eax
mov byte [ebp + ecx - 0x22f], dh
or ecx, 2
mov byte [ebp + ecx - 0x230], dl
inc ecx
mov dword [ebp - 0x27c], edi
lea edx, [ebp - 0xd0]
mov dword [edx - 0x18], 0x121
lea eax, [ebp - 0x238]
mov dword [edx - 0x14], eax
mov dword [edx - 0x10], 4
mov dword [edx - 0xc], 0x122
lea eax, [ebp - 0x230]
mov dword [edx - 8], eax
mov dword [ebp - 0x288], edx
mov dword [edx - 4], ecx
xor edi, edi
dec edi
mov al, 1
mov dword [ebp - 0x268], eax
xor eax, eax
inc eax
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x270], eax
jmp 0x100a1473
bt edi, 0xb
mov ebx, dword [ebp + 8]
jb 0x100a1448
mov eax, edi
and eax, 0x80000
mov edi, 0
sete cl
mov esi, eax
shr esi, 0x13
mov dword [ebp - 0x268], esi
bt eax, 0x13
sbb edi, edi
or edi, 0x1041
mov eax, ecx
mov dword [ebp - 0x278], eax
jmp 0x100a1467
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x270], 0x1041
xor edi, edi
dec edi
mov al, 1
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x280], eax
cmp dword [ebx + 0x30], 0
jne 0x100a14ab
mov dword [ebp - 0x26c], edi
mov esi, dword [ebx + 0x3c]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100a1b40
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], edi
mov edi, dword [ebp - 0x26c]
mov eax, dword [ebx]
mov esi, dword [ebx + 0x40]
mov ecx, dword [eax + 0x22]
call dword [section..00cfg]
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x270]
push esi
call ecx
add esp, 0xc
mov ecx, eax
cmp byte [ebp - 0x268], 0
jne 0x100a151f
mov dword [ebp - 0x268], ecx
test ecx, ecx
je 0x100a14eb
mov dword [ebp - 0x25c], 0
mov eax, dword [ebx]
mov esi, dword [ebx + 0x40]
mov ecx, dword [eax + 0x22]
call dword [section..00cfg]
lea eax, [ebp - 0x258]
push eax
push edi
push esi
call ecx
add esp, 0xc
test eax, eax
mov ecx, dword [ebp - 0x268]
jne 0x100a151f
mov eax, dword [ebp - 0x250]
or dword [ebp - 0x25c], eax
xor ecx, ecx
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp - 0x274]
lea edx, [eax + eax*2]
cmp dword [ebx + 0x30], 0
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x26c], edx
jne 0x100a154f
push dword [ebx + 0x3c]
mov ebx, ecx
call sym.nss3.dll_PR_Unlock
mov ecx, ebx
mov edx, dword [ebp - 0x26c]
add esp, 4
mov eax, edi
and eax, 1
mov dword [ebp - 0x274], eax
and edi, 0x33
lea eax, [edx*4 - 0x7c]
add eax, ebp
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x25c]
test ecx, ecx
jne 0x100a157a
test eax, eax
jne 0x100a15cd
mov ecx, dword [ebp - 0x270]
cmp ecx, 0x20
jle 0x100a15b0
cmp ecx, 0x21
je 0x100a15c1
cmp ecx, 0x1041
je 0x100a15ba
cmp ecx, 0x1050
jne 0x100a15cd
cmp byte [ebp - 0x278], 0
mov ecx, 0x82800
mov eax, 0x80000
cmovne eax, ecx
jmp 0x100a15cd
cmp ecx, 1
je 0x100a15c8
cmp ecx, 0x11
jne 0x100a15cd
mov eax, 0x2800
jmp 0x100a15cd
mov eax, 0x80000
jmp 0x100a15cd
mov eax, 0x24b00
not esi
and esi, eax
or esi, dword [ebp - 0x27c]
mov dword [ebp - 0x25c], esi
lea esi, [ebp - 0x231]
push esi
lea ebx, [ebp - 0x232]
push ebx
mov esi, dword [ebp - 0x288]
push esi
push edi
call fcn.100bc530
add esp, 0x10
mov edx, ebx
mov edi, dword [ebp - 0x25c]
bt edi, 0x13
mov ecx, ebx
lea ebx, [ebp - 0x231]
cmovae ecx, ebx
mov dword [ebp - 0x270], ecx
bt edi, 0x11
mov ecx, edx
cmovae ecx, ebx
mov dword [ebp - 0x298], ecx
bt edi, 0xd
mov ecx, edx
cmovae ecx, ebx
mov dword [ebp - 0x28c], ecx
mov ecx, ebx
bt edi, 0xe
mov ebx, edx
cmovae ebx, ecx
mov dword [ebp - 0x294], ebx
bt edi, 8
mov ebx, edx
cmovae ebx, ecx
mov dword [ebp - 0x290], ebx
bt edi, 0x12
mov ebx, edx
cmovae ebx, ecx
mov dword [ebp - 0x27c], ebx
bt edi, 0xb
mov ebx, edx
cmovae ebx, ecx
mov dword [ebp - 0x278], ebx
bt edi, 9
cmovae edx, ecx
lea edi, [eax + eax*2]
mov eax, 0x10c
mov dword [esi + edi*4], eax
mov eax, dword [ebp - 0x270]
mov dword [esi + edi*4 + 4], eax
xor eax, eax
inc eax
mov dword [esi + edi*4 + 8], eax
mov dword [esi + edi*4 + 0xc], 0x106
mov ebx, dword [ebp - 0x298]
mov dword [esi + edi*4 + 0x10], ebx
mov dword [esi + edi*4 + 0x14], eax
mov dword [esi + edi*4 + 0x18], 0x10a
mov ecx, dword [ebp - 0x28c]
mov dword [esi + edi*4 + 0x1c], ecx
mov dword [esi + edi*4 + 0x20], eax
mov dword [esi + edi*4 + 0x24], 0x10b
mov ecx, dword [ebp - 0x294]
mov dword [esi + edi*4 + 0x28], ecx
mov dword [esi + edi*4 + 0x2c], eax
mov dword [esi + edi*4 + 0x30], 0x104
mov eax, dword [ebp - 0x290]
mov dword [esi + edi*4 + 0x34], eax
mov ecx, dword [ebp - 0x268]
mov eax, 0x10c
mov dword [ecx], eax
mov ebx, dword [ebp - 0x26c]
mov eax, dword [ebp - 0x270]
mov dword [ebp + ebx*4 - 0x78], eax
mov eax, 1
mov dword [ebp + ebx*4 - 0x74], eax
mov ebx, eax
mov dword [ecx + 0xc], 0x107
mov eax, dword [ebp - 0x27c]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x18], 0x108
mov eax, dword [ebp - 0x278]
mov dword [ecx + 0x1c], eax
mov eax, ebx
mov dword [ecx + 0x20], ebx
mov dword [ecx + 0x24], 0x105
mov dword [ecx + 0x28], edx
mov dword [esi + edi*4 + 0x38], ebx
mov dword [ebp - 0x270], ebx
mov dword [ecx + 0x2c], ebx
cmp dword [ebp - 0x274], 0
jne 0x100a17ad
mov ebx, dword [ebp + 8]
mov esi, dword [ebx + 0x38]
test esi, esi
je 0x100a1874
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x278], eax
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x27c], eax
test eax, eax
je 0x100a1b5d
mov dword [ebp - 0x26c], esi
mov esi, dword [ebp - 0x278]
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x27c]
mov dword [esi + 8], eax
jmp 0x100a17d9
mov ebx, dword [ebp + 8]
push ebx
call fcn.100ca370
add esp, 4
mov esi, eax
push eax
push ebx
call fcn.100ca470
add esp, 8
mov dword [ebp - 0x270], eax
test esi, esi
je 0x100a1874
mov dword [ebp - 0x26c], esi
mov edx, dword [ebp - 0x268]
add edx, 0x30
mov eax, dword [ebp - 0x288]
lea eax, [eax + edi*4]
add eax, 0x3c
lea ecx, [ebp - 0x7c]
sub edx, ecx
sar edx, 2
imul ecx, edx, 0xaaaaaaab
mov dword [ebp - 0x268], ecx
mov esi, dword [ebp - 0x280]
sub eax, esi
sar eax, 2
imul edi, eax, 0xaaaaaaab
mov eax, dword [ebx]
mov ecx, dword [eax + 0xee]
call dword [section..00cfg]
lea eax, [ebp - 0x248]
lea edx, [ebp - 0x24c]
lea ebx, [ebp - 0x244]
push eax
push edx
push dword [ebp - 0x268]
lea eax, [ebp - 0x7c]
push eax
push edi
push esi
push ebx
mov esi, dword [ebp - 0x26c]
push esi
call ecx
add esp, 0x20
test eax, eax
je 0x100a1880
mov edi, eax
cmp dword [ebp - 0x274], 0
jne 0x100a18ff
mov eax, dword [ebp + 8]
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100a190b
push 0
push 0xffffe002
jmp 0x100a1048
mov edi, dword [ebp - 0x270]
test edi, edi
mov ebx, dword [ebp + 8]
je 0x100a1898
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
push 0
push dword [ebp - 0x24c]
push ebx
call fcn.100bbcd0
add esp, 0xc
mov ecx, dword [ebp - 0x24c]
cmp eax, 2
mov esi, dword [ebp + 0x14]
je 0x100a18cb
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x248], ecx
mov ecx, eax
push ecx
push dword [ebp - 0x284]
push ebx
call fcn.100a0570
add esp, 0xc
mov dword [esi], eax
test eax, eax
je 0x100a191c
mov ecx, dword [eax + 4]
xor esi, esi
dec ecx
cmp ecx, 5
ja case.0x100a18f0.3
jmp dword [ecx*4 + 0x101bb020]
add eax, 0x14
jmp 0x100a1992
push esi
push dword [ebp + 8]
call fcn.100ca4a0
add esp, 8
push edi
call fcn.100a9930
add esp, 4
push 0
push eax
jmp 0x100a1048
cmp dword [ebp - 0x274], 0
mov eax, dword [ebp - 0x26c]
je 0x100a1965
test edi, edi
je 0x100a195b
mov edi, dword [ebx + 0x3c]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100a1b9b
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov eax, dword [ebp - 0x26c]
push eax
push ebx
call fcn.100ca4a0
add esp, 8
push dword [ebp - 0x24c]
push ebx
call sym.nss3.dll_PK11_DestroyObject
add esp, 8
push dword [ebp - 0x248]
push ebx
call sym.nss3.dll_PK11_DestroyObject
jmp 0x100a104d
add eax, 0x38
jmp 0x100a1992
add eax, 0x2c
jmp 0x100a1992
add eax, 0x20
push eax
call sym.nss3.dll_PK11_MakeIDFromPubKey
add esp, 4
mov esi, eax
push 0
push 1
push dword [ebp - 0x24c]
push ebx
call sym.nss3.dll_PK11_HasAttributeSet
add esp, 0x10
mov byte [ebp - 0x268], al
mov dword [ebp - 0x258], 0x102
mov eax, dword [esi + 4]
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x280], esi
mov eax, dword [esi + 8]
mov dword [ebp - 0x250], eax
test edi, edi
je 0x100a1a02
mov edi, dword [ebx + 0x3c]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100a1b7e
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov eax, dword [ebx]
mov ecx, dword [eax + 0x66]
mov edi, dword [ebp - 0x248]
call dword [section..00cfg]
lea esi, [ebp - 0x258]
push 1
push esi
push edi
push dword [ebp - 0x26c]
call ecx
add esp, 0x10
mov ebx, eax
test eax, eax
jne 0x100a1a5c
cmp byte [ebp - 0x268], 0
je 0x100a1a5c
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [eax + 0x66]
mov edi, dword [ebp - 0x24c]
call dword [section..00cfg]
push 1
push esi
push edi
push dword [ebp - 0x26c]
call ecx
add esp, 0x10
mov ebx, eax
cmp dword [ebp - 0x274], 0
jne 0x100a1a75
mov eax, dword [ebp + 8]
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100a1a86
push dword [ebp - 0x26c]
push dword [ebp + 8]
call fcn.100ca4a0
add esp, 8
mov eax, dword [ebp - 0x280]
push 1
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
test ebx, ebx
je 0x100a1adb
push dword [ebp - 0x24c]
mov esi, dword [ebp + 8]
push esi
call sym.nss3.dll_PK11_DestroyObject
add esp, 8
push dword [ebp - 0x248]
push esi
call sym.nss3.dll_PK11_DestroyObject
add esp, 8
push ebx
call fcn.100a9930
add esp, 4
xor edi, edi
push edi
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
jmp 0x100a1052
mov eax, dword [ebp - 0x274]
xor eax, 1
push dword [ebp + 0x24]
push dword [ebp - 0x248]
push eax
push dword [ebp - 0x284]
mov esi, dword [ebp + 8]
push esi
call fcn.100a0d80
add esp, 0x14
mov edi, eax
test eax, eax
mov ebx, dword [ebp + 0x14]
jne 0x100a1052
push dword [ebx]
call sym.nss3.dll_SECKEY_DestroyPublicKey
add esp, 4
push dword [ebp - 0x248]
push esi
call sym.nss3.dll_PK11_DestroyObject
add esp, 8
mov dword [ebx], 0
jmp 0x100a1050
xor ecx, ecx
test dl, dl
jne 0x100a13a5
jmp 0x100a13ad
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov edi, eax
jmp 0x100a1498
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov dword [ebp - 0x27c], eax
jmp 0x100a178c
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov esi, eax
jmp 0x100a19f5
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov esi, eax
jmp 0x100a1948