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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov ebx, dword [ebp + 8]
mov eax, dword [0x101f1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov esi, dword [ebx + 0xc4]
test esi, esi
je 0x1010df69
cmp byte [esi + 0xce], 0
je 0x1010df88
cmp dword [ebx + 0x60], 0
je 0x1010df9a
push ebx
call fcn.10116bd0
add esp, 4
push edx
push eax
push dword [ebx + 0xc4]
call fcn.10110d50
add esp, 0xc
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [ebx + 0x138], 0
je 0x1010e109
cmp dword [esi + 0x134], 0
je 0x1010df88
cmp byte [esi + 0xeb], 0
jne 0x1010df88
mov eax, dword [esi + 0x50]
mov edx, dword [esi + 0x54]
mov ecx, eax
or ecx, edx
jne 0x1010dfda
push ebx
call fcn.10116bd0
add esp, 4
mov dword [esi + 0x54], edx
mov dword [esi + 0x50], eax
mov dword [esi + 0x14], edx
mov dword [esi + 0x10], eax
mov ecx, dword [esi + 0x58]
or ecx, dword [esi + 0x5c]
jne 0x1010e007
mov ecx, dword [esi + 0x120]
imul edi, ecx, 0xf4240
cmp ecx, 0x2a301
mov ecx, 0x3baec000
cmovb ecx, edi
add eax, ecx
adc edx, 0
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], edx
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
cmp dword [esi + 0x138], 0
je 0x1010e0f5
cmp byte [esi + 0xce], 0
je 0x1010e0f5
cmp dword [esi + 0x28], 0
je 0x1010e0f5
lea edi, [ebp - 0x20]
push 1
push 0
push 2
push edi
call fcn.1010ba80
add esp, 0x10
test eax, eax
jne 0x1010df88
push 8
push dword [esi + 0x14]
push dword [esi + 0x10]
push edi
call fcn.1010ba80
add esp, 0x10
test eax, eax
jne 0x1010e0f5
push 8
push dword [esi + 0x5c]
push dword [esi + 0x58]
push edi
call fcn.1010ba80
add esp, 0x10
test eax, eax
jne 0x1010e0f5
push 8
push dword [esi + 0x11c]
push dword [esi + 0x118]
push edi
call fcn.1010ba80
add esp, 0x10
test eax, eax
jne 0x1010e0f5
push 4
push 0
push dword [esi + 0x120]
push edi
call fcn.1010ba80
add esp, 0x10
test eax, eax
jne 0x1010e0f5
push 4
push 0
push dword [esi + 0x124]
push edi
call fcn.1010ba80
add esp, 0x10
test eax, eax
jne 0x1010e0f5
push 4
push 0
push dword [esi + 0x128]
push edi
call fcn.1010ba80
add esp, 0x10
test eax, eax
jne 0x1010e0f5
push 4
push 0
push dword [esi + 0x12c]
push edi
call fcn.1010ba80
add esp, 0x10
test eax, eax
je 0x1010e22d
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x1010df88
push ebx
call fcn.10116bd0
add esp, 4
mov ebx, dword [ebx + 0xc4]
cmp dword [ebx + 0x28], 0
je 0x1010df88
mov esi, eax
mov edi, edx
cmp byte [ebx + 0x78], 0
je 0x1010e201
xor eax, eax
push eax
push eax
call sym.nss3.dll_PR_NewRWLock
add esp, 8
mov dword [ebx + 0x110], eax
test eax, eax
je 0x1010df88
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x54]
mov edx, eax
or edx, ecx
jne 0x1010e166
mov dword [ebx + 0x50], esi
mov dword [ebx + 0x54], edi
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x14], edi
mov eax, esi
mov ecx, edi
mov edx, dword [ebx + 0x58]
or edx, dword [ebx + 0x5c]
jne 0x1010e193
mov edx, dword [ebx + 0x120]
imul esi, edx, 0xf4240
cmp edx, 0x2a301
mov edx, 0x3baec000
cmovb edx, esi
add eax, edx
adc ecx, 0
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], ecx
cmp byte [0x101f5edc], 0
jne 0x1010e1ae
push 0x1010d2e0
push 0x101f5ee0
call sym.nss3.dll_PR_CallOnce
add esp, 8
mov edi, dword [0x101f5eec]
push dword [0x101f45d4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x1010e2a9
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
inc dword [ebx + 8]
mov dword [ebx + 4], 1
mov eax, dword [0x101f5ef0]
mov dword [ebx], eax
mov dword [0x101f5ef0], ebx
push dword [0x101f5eec]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x1010df88
cmp dword [ebx + 0x134], 0
je 0x1010df88
lea eax, [ebx + 0x79]
push 0x20
push eax
call sym.nss3.dll_PK11_GenerateRandom
add esp, 8
test eax, eax
jne 0x1010df88
mov byte [ebx + 0x78], 0x20
jmp 0x1010e130
mov eax, dword [esi + 0x18]
push 3
push dword [eax + 0x44]
push dword [eax + 0x40]
push edi
call fcn.1010bb60
add esp, 0x10
test eax, eax
jne 0x1010df88
mov eax, dword [esi + 0x20]
cmp eax, 2
jb 0x1010e25d
push 0
push 0xffffe001
jmp 0x1010e0fc
cmp eax, 1
jne 0x1010e274
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1010e274
push 2
push ecx
push dword [eax + 4]
jmp 0x1010e27a
xor eax, eax
push 2
push eax
push eax
push edi
call fcn.1010bb60
add esp, 0x10
test eax, eax
jne 0x1010df88
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1010e2c6
push dword [ebp - 0x24]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0x100
jae 0x1010e251
jmp 0x1010e2c8
sub esp, 0x10
movaps xmm0, xmmword [0x101b11e0]
movups xmmword [esp], xmm0
call fcn.1006e720
add esp, 0x10
mov esi, eax
jmp 0x1010e1ca
xor eax, eax
push 1
push eax
push dword [ebp - 0x24]
push edi
call fcn.1010bb60
add esp, 0x10
test eax, eax
jne 0x1010df88
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1010e0f5
push dword [ebp - 0x24]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
test eax, eax
je 0x1010e0f5
cmp eax, 0x100
jae 0x1010e251
push 1
push eax
push dword [ebp - 0x24]
push edi
call fcn.1010bb60
add esp, 0x10
test eax, eax
jne 0x1010df88
mov eax, dword [esi + 0x30]
test eax, eax
je 0x1010e333
push 3
push dword [eax + 0x44]
push dword [eax + 0x40]
jmp 0x1010e339
xor eax, eax
push 3
push eax
push eax
push edi
call fcn.1010bb60
add esp, 0x10
test eax, eax
jne 0x1010df88
push 8
push dword [esi + 0x3c]
push dword [esi + 0x38]
push edi
call fcn.1010ba80
add esp, 0x10
test eax, eax
jne 0x1010e0f5
push 8
push dword [esi + 0x44]
push dword [esi + 0x40]
push edi
call fcn.1010ba80
add esp, 0x10
test eax, eax
jne 0x1010e0f5
movzx eax, word [esi + 0x48]
push 2
push 0
push eax
push edi
call fcn.1010ba80
add esp, 0x10
test eax, eax
jne 0x1010e0f5
movzx eax, word [esi + 0x4a]
push 2
push 0
push eax
push edi
call fcn.1010ba80
add esp, 0x10
test eax, eax
jne 0x1010e0f5
push 8
push dword [esi + 0x54]
push dword [esi + 0x50]
push edi
call fcn.1010ba80
add esp, 0x10
test eax, eax
jne 0x1010e0f5
mov eax, dword [esi + 0x60]
mov ecx, eax
sar ecx, 0x1f
push 2
push ecx
push eax
push edi
call fcn.1010ba80
add esp, 0x10
test eax, eax
jne 0x1010e0f5
push 4
push 0
push dword [esi + 0x64]
push edi
call fcn.1010ba80
add esp, 0x10
test eax, eax
jne 0x1010e0f5
mov eax, dword [esi + 0x68]
mov ecx, eax
sar ecx, 0x1f
push 2
push ecx
push eax
push edi
call fcn.1010ba80
add esp, 0x10
test eax, eax
jne 0x1010e0f5
push 4
push 0
push dword [esi + 0x6c]
push edi
call fcn.1010ba80
add esp, 0x10
test eax, eax
jne 0x1010e0f5
mov eax, dword [esi + 0x70]
mov ecx, eax
sar ecx, 0x1f
push 3
push ecx
push eax
push edi
call fcn.1010ba80
add esp, 0x10
test eax, eax
jne 0x1010e0f5
mov eax, dword [esi + 0x74]
mov ecx, eax
sar ecx, 0x1f
push 3
push ecx
push eax
push edi
call fcn.1010ba80
add esp, 0x10
test eax, eax
jne 0x1010e0f5
movzx eax, byte [esi + 0x78]
push 1
push 0
push eax
push edi
call fcn.1010ba80
add esp, 0x10
test eax, eax
jne 0x1010e0f5
lea eax, [esi + 0x79]
push 1
push 0x20
push eax
push edi
call fcn.1010bb60
add esp, 0x10
test eax, eax
jne 0x1010df88
movzx eax, word [esi + 0x9a]
push 2
push 0
push eax
push edi
call fcn.1010ba80
add esp, 0x10
test eax, eax
jne 0x1010e0f5
movzx eax, byte [esi + 0x9c]
push 1
push 0
push eax
push edi
call fcn.1010ba80
add esp, 0x10
test eax, eax
jne 0x1010e0f5
lea eax, [esi + 0x9d]
push 1
push 0x30
push eax
push edi
call fcn.1010bb60
add esp, 0x10
test eax, eax
jne 0x1010df88
movzx eax, byte [esi + 0xcd]
push 1
push 0
push eax
push edi
call fcn.1010ba80
add esp, 0x10
test eax, eax
jne 0x1010e0f5
movzx eax, byte [esi + 0xcf]
push 1
push 0
push eax
push edi
call fcn.1010ba80
add esp, 0x10
test eax, eax
jne 0x1010e0f5
push 8
push 0
push dword [esi + 0xd0]
push edi
call fcn.1010ba80
add esp, 0x10
test eax, eax
jne 0x1010e0f5
push 8
push 0
push dword [esi + 0xd4]
push edi
call fcn.1010ba80
add esp, 0x10
test eax, eax
jne 0x1010e0f5
push 8
push 0
push dword [esi + 0xd8]
push edi
call fcn.1010ba80
add esp, 0x10
test eax, eax
jne 0x1010e0f5
movzx eax, word [esi + 0xdc]
push 4
push 0
push eax
push edi
call fcn.1010ba80
add esp, 0x10
test eax, eax
jne 0x1010e0f5
movzx eax, word [esi + 0xde]
push 2
push 0
push eax
push edi
call fcn.1010ba80
add esp, 0x10
test eax, eax
jne 0x1010e0f5
movsx eax, byte [esi + 0xea]
mov ecx, eax
sar ecx, 0x1f
push 1
push ecx
push eax
push edi
call fcn.1010ba80
add esp, 0x10
test eax, eax
jne 0x1010e0f5
push 1
push dword [esi + 0xf4]
push dword [esi + 0xf0]
push edi
call fcn.1010bb60
add esp, 0x10
test eax, eax
jne 0x1010df88
push 2
push dword [esi + 0x100]
push dword [esi + 0xfc]
push edi
call fcn.1010bb60
add esp, 0x10
test eax, eax
jne 0x1010df88
push 1
push dword [esi + 0x10c]
push dword [esi + 0x108]
push edi
call fcn.1010bb60
add esp, 0x10
test eax, eax
jne 0x1010df88
push 2
push dword [esi + 0x138]
push dword [esi + 0x134]
push edi
call fcn.1010bb60
add esp, 0x10
test eax, eax
jne 0x1010df88
mov eax, dword [ebx]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebx + 0x138]
mov eax, dword [ebx + 0x13c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x1c]
call dword [section..00cfg]
push dword [ebp - 0x28]
push ebx
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
call ecx
add esp, 0x10
test eax, eax
jne 0x1010e695
mov dword [esi + 4], 4
push edi
call fcn.1010bf00
jmp 0x1010e1f9