Function at 0x100a2560
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 [0x101f1014]
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 0x101bcd6c
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea esi, [ebp - 0xe8]
push edi
push 0x101bcdd8
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x160]
push pe_nt_image_headers32
push 0x101bce44
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x1cc]
push edi
push 0x101bcebc
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x22c]
push 0x60
push 0x101bcf28
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, ebx
shr eax, 1
and eax, ebx
test eax, 0x55555555
je 0x100a2629
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.10157a00
mov eax, edi
add esp, 0x28c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x284], esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x100a2601
mov edi, dword [ebp + 8]
test edi, edi
je 0x100a27b3
mov esi, dword [ebp + 0xc]
push esi
push edi
call sym.nss3.dll_PK11_DoesMechanism
add esp, 8
test eax, eax
je 0x100a272a
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.100bdaf0
add esp, 0x10
cmp esi, 0xf
jle 0x100a27bf
cmp esi, 0x10
je 0x100a2837
cmp esi, 0x20
je 0x100a28b5
cmp esi, 0x1040
jne 0x100a2930
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 - 0x280], ecx
mov dword [ecx - 4], eax
mov eax, edi
not eax
mov dword [ebp - 0x26c], 0x1050
mov dword [ebp - 0x288], 6
test eax, 0x80800
mov dword [ebp - 0x27c], edi
jne 0x100a29cf
mov edi, 0x1041
mov al, 1
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x270], 0
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x284], eax
jmp 0x100a2928
call sym.nss3.dll_PK11_GetInternalSlot
cmp eax, edi
je 0x100a281c
mov ebx, eax
test eax, eax
je 0x100a27b3
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 0x100a276f
push ebx
mov ebx, eax
call fcn.100cb320
mov eax, ebx
add esp, 4
test eax, eax
je 0x100a2612
mov ecx, dword [ebp + 8]
mov edx, eax
push dword [ebp + 0x18]
push dword [esi]
mov ebx, eax
call fcn.100a31d0
add esp, 8
mov edi, eax
push ebx
call sym.nss3.dll_SECKEY_DestroyPrivateKey
add esp, 4
test edi, edi
jne 0x100a2612
push dword [esi]
call sym.nss3.dll_SECKEY_DestroyPublicKey
add esp, 4
mov dword [esi], 0
jmp 0x100a2610
push 0
push 0xffffe040
jmp 0x100a2608
test esi, esi
je 0x100a27cc
cmp esi, 0xa
jne 0x100a2930
mov edx, dword [ebx + 4]
test edx, edx
je 0x100a2601
mov dword [ebp - 0x274], eax
mov ecx, dword [ebx]
mov dword [ebp - 0x238], ecx
cmp edx, 0x1000000
jae 0x100a293c
xor ecx, ecx
test edx, 0xff0000
mov ebx, dword [ebp + 8]
jne 0x100a294d
test edx, 0xff00
je 0x100a30f1
mov byte [ebp - 0x230], dh
xor ecx, ecx
inc ecx
jmp 0x100a2965
lock dec dword [edi + 0x48]
jne 0x100a282b
push edi
call fcn.100cb320
add esp, 4
push 0
push 0xffffe001
jmp 0x100a2608
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 - 0x280], ecx
mov dword [ecx - 4], eax
mov dword [ebp - 0x26c], 0x11
xor edi, edi
dec edi
mov al, 1
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x160]
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x288], 2
jmp 0x100a291e
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 - 0x280], ecx
mov dword [ecx - 4], eax
mov dword [ebp - 0x26c], 0x21
xor edi, edi
dec edi
mov al, 1
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x1cc]
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x288], 4
mov dword [ebp - 0x278], 0
mov ebx, dword [ebp + 8]
jmp 0x100a2a33
push 0
push 0xffffe00e
jmp 0x100a2608
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 - 0x280], edx
mov dword [edx - 4], ecx
xor edi, edi
dec edi
mov al, 1
mov dword [ebp - 0x270], eax
xor eax, eax
inc eax
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x26c], eax
jmp 0x100a2a33
bt edi, 0xb
mov ebx, dword [ebp + 8]
jb 0x100a2a08
mov eax, edi
and eax, 0x80000
mov edi, 0
sete cl
mov esi, eax
shr esi, 0x13
mov dword [ebp - 0x270], esi
bt eax, 0x13
sbb edi, edi
or edi, 0x1041
mov eax, ecx
mov dword [ebp - 0x278], eax
jmp 0x100a2a27
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x26c], 0x1041
xor edi, edi
dec edi
mov al, 1
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x284], eax
cmp dword [ebx + 0x30], 0
jne 0x100a2a6b
mov dword [ebp - 0x268], edi
mov esi, dword [ebx + 0x3c]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test eax, eax
je 0x100a3100
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], edi
mov edi, dword [ebp - 0x268]
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 - 0x26c]
push esi
call ecx
add esp, 0xc
mov ecx, eax
cmp byte [ebp - 0x270], 0
jne 0x100a2adf
mov dword [ebp - 0x270], ecx
test ecx, ecx
je 0x100a2aab
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 - 0x270]
jne 0x100a2adf
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 - 0x268], edx
jne 0x100a2b0f
push dword [ebx + 0x3c]
mov ebx, ecx
call sym.nss3.dll_PR_Unlock
mov ecx, ebx
mov edx, dword [ebp - 0x268]
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 - 0x270], eax
mov eax, dword [ebp - 0x25c]
test ecx, ecx
jne 0x100a2b3a
test eax, eax
jne 0x100a2b8d
mov ecx, dword [ebp - 0x26c]
cmp ecx, 0x20
jle 0x100a2b70
cmp ecx, 0x21
je 0x100a2b81
cmp ecx, 0x1041
je 0x100a2b7a
cmp ecx, 0x1050
jne 0x100a2b8d
cmp byte [ebp - 0x278], 0
mov ecx, 0x82800
mov eax, 0x80000
cmovne eax, ecx
jmp 0x100a2b8d
cmp ecx, 1
je 0x100a2b88
cmp ecx, 0x11
jne 0x100a2b8d
mov eax, 0x2800
jmp 0x100a2b8d
mov eax, 0x80000
jmp 0x100a2b8d
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 - 0x280]
push esi
push edi
call fcn.100bdaf0
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 - 0x26c], 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 - 0x26c]
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 - 0x270]
mov eax, 0x10c
mov dword [ecx], eax
mov ebx, dword [ebp - 0x268]
mov eax, dword [ebp - 0x26c]
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 - 0x26c], ebx
mov dword [ecx + 0x2c], ebx
cmp dword [ebp - 0x274], 0
jne 0x100a2d6d
mov ebx, dword [ebp + 8]
mov esi, dword [ebx + 0x38]
test esi, esi
je 0x100a2e34
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x278], eax
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0x27c], eax
test eax, eax
je 0x100a311d
mov dword [ebp - 0x268], 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 0x100a2d99
mov ebx, dword [ebp + 8]
push ebx
call fcn.100cb930
add esp, 4
mov esi, eax
push eax
push ebx
call fcn.100cba30
add esp, 8
mov dword [ebp - 0x26c], eax
test esi, esi
je 0x100a2e34
mov dword [ebp - 0x268], esi
mov edx, dword [ebp - 0x270]
add edx, 0x30
mov eax, dword [ebp - 0x280]
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 - 0x280], ecx
mov esi, dword [ebp - 0x284]
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 - 0x280]
lea eax, [ebp - 0x7c]
push eax
push edi
push esi
push ebx
mov esi, dword [ebp - 0x268]
push esi
call ecx
add esp, 0x20
test eax, eax
je 0x100a2e40
mov edi, eax
cmp dword [ebp - 0x274], 0
jne 0x100a2ebf
mov eax, dword [ebp + 8]
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100a2ecb
push 0
push 0xffffe002
jmp 0x100a2608
mov edi, dword [ebp - 0x26c]
test edi, edi
mov ebx, dword [ebp + 8]
je 0x100a2e58
push dword [ebx + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
push 0
push dword [ebp - 0x24c]
push ebx
call fcn.100bd290
add esp, 0xc
mov ecx, dword [ebp - 0x24c]
cmp eax, 2
mov esi, dword [ebp + 0x14]
je 0x100a2e8b
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x248], ecx
mov ecx, eax
push ecx
push dword [ebp - 0x288]
push ebx
call fcn.100a1b30
add esp, 0xc
mov dword [esi], eax
test eax, eax
je 0x100a2edc
mov ecx, dword [eax + 4]
xor esi, esi
dec ecx
cmp ecx, 5
ja case.0x100a2eb0.3
jmp dword [ecx*4 + 0x101bd200]
add eax, 0x14
jmp 0x100a2f52
push esi
push dword [ebp + 8]
call fcn.100cba60
add esp, 8
push edi
call fcn.100aaef0
add esp, 4
push 0
push eax
jmp 0x100a2608
cmp dword [ebp - 0x274], 0
mov eax, dword [ebp - 0x268]
je 0x100a2f25
test edi, edi
je 0x100a2f1b
mov edi, dword [ebx + 0x3c]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100a315b
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov eax, dword [ebp - 0x268]
push eax
push ebx
call fcn.100cba60
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 0x100a260d
add eax, 0x38
jmp 0x100a2f52
add eax, 0x2c
jmp 0x100a2f52
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 - 0x280], al
mov dword [ebp - 0x258], 0x102
mov eax, dword [esi + 4]
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x284], esi
mov eax, dword [esi + 8]
mov dword [ebp - 0x250], eax
test edi, edi
je 0x100a2fc2
mov edi, dword [ebx + 0x3c]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100a313e
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 - 0x268]
call ecx
add esp, 0x10
mov ebx, eax
test eax, eax
jne 0x100a301c
cmp byte [ebp - 0x280], 0
je 0x100a301c
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 - 0x268]
call ecx
add esp, 0x10
mov ebx, eax
cmp dword [ebp - 0x274], 0
jne 0x100a3035
mov eax, dword [ebp + 8]
push dword [eax + 0x3c]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100a3046
push dword [ebp - 0x268]
push dword [ebp + 8]
call fcn.100cba60
add esp, 8
mov eax, dword [ebp - 0x284]
push 1
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
test ebx, ebx
je 0x100a309b
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.100aaef0
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 0x100a2612
mov eax, dword [ebp - 0x274]
xor eax, 1
push dword [ebp + 0x24]
push dword [ebp - 0x248]
push eax
push dword [ebp - 0x288]
mov esi, dword [ebp + 8]
push esi
call fcn.100a2340
add esp, 0x14
mov edi, eax
test eax, eax
mov ebx, dword [ebp + 0x14]
jne 0x100a2612
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 0x100a2610
xor ecx, ecx
test dl, dl
jne 0x100a2965
jmp 0x100a296d
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov edi, eax
jmp 0x100a2a58
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov dword [ebp - 0x27c], eax
jmp 0x100a2d4c
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov esi, eax
jmp 0x100a2fb5
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov esi, eax
jmp 0x100a2f08