Function at 0x4131e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x9c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x41fbf0
mov esi, edx
mov eax, dword [ebp + 0xc]
mov edi, ecx
lea ecx, [ebp - 0x18]
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x98], xmm0
call fcn.00413760
test eax, eax
je 0x4132d1
mov ecx, dword [eax]
inc ecx
cmp ecx, 2
mov dword [eax], ecx
jbe 0x413268
mov dword [ebp - 0x58], 0x4315e0
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x48], 4
mov dword [ebp - 0x44], 0
call fcn.00413850
ud2
mov eax, dword [ebp + 8]
movups xmm0, xmmword [ebp - 0x98]
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x54], 0x4315bc
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x50], eax
movups xmmword [ebp - 0x4c], xmm0
mov eax, dword [0x43a9c8]
test eax, eax
jne 0x4132b4
mov ecx, str.AcquireSRWLockShared
mov edx, 0x14
call fcn.004123d0
test eax, eax
mov eax, 0x413830
cmovne eax, edx
mov ecx, eax
xchg dword [0x43a9c8], ecx
push 0x43a9cc
call eax
push edi
call dword [esi + 0x10]
add esp, 4
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
call fcn.00413760
test eax, eax
jne 0x4132ee
lea eax, [ebp - 0x68]
mov ecx, str.cannot_access_a_TLS_value_during_or_after_it_is_destroyed
mov edx, 0x39
push 0x4315ac
push eax
call fcn.00408870
add esp, 8
ud2
cmp dword [eax], 1
mov dword [ebp - 0x98], esi
lea esi, [ebp - 0x4c]
mov bl, 1
mov dword [ebp - 0x30], edi
ja 0x4133a7
mov eax, dword [0x43a9d4]
cmp eax, 2
je 0x41335c
cmp eax, 1
je 0x413360
test eax, eax
jne 0x4133a7
lea ecx, [ebp - 0x68]
mov edx, str.RUST_BACKTRACE0fullBox_Any__unnamed_
push 0xe
call fcn.00413a10
add esp, 4
mov edi, dword [ebp - 0x68]
test edi, edi
je 0x413395
mov ecx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x64]
cmp ecx, 4
je 0x413364
cmp ecx, 1
jne 0x413354
mov bl, 3
cmp edi, 0x43169e
je 0x41337e
cmp byte [edi], 0x30
je 0x41337e
xor ebx, ebx
test eax, eax
jne 0x413382
jmp 0x413390
xor ebx, ebx
jmp 0x4133a7
mov bl, 3
jmp 0x4133a7
cmp edi, 0x43169f
je 0x413374
cmp dword [edi], 0x6c6c7566
jne 0x41337c
mov bl, 1
test eax, eax
jne 0x413382
jmp 0x413390
xor ebx, ebx
test eax, eax
je 0x413390
call sub.KERNEL32.dll_GetProcessHeap
push edi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
cmp bl, 3
jne 0x41339e
mov eax, 1
mov bl, 3
jmp 0x4133a1
movzx eax, bl
xchg dword [0x43a9d4], eax
mov dword [ebp - 0x80], esi
mov esi, dword [ebp - 0x58]
mov eax, dword [ebp - 0x54]
mov byte [ebp - 0x25], bl
push esi
call dword [eax + 0xc]
add esp, 4
xor edx, 0x111094d9
xor eax, 0x70b09764
or eax, edx
jne 0x4133d0
mov ecx, dword [esi]
mov eax, dword [esi + 4]
jmp 0x4133fd
mov esi, dword [ebp - 0x58]
mov eax, dword [ebp - 0x54]
push esi
call dword [eax + 0xc]
add esp, 4
xor edx, 0x65cba3a9
xor eax, 0x1169c917
or eax, edx
jne 0x4133f3
mov ecx, dword [esi]
mov eax, dword [esi + 8]
jmp 0x4133fd
mov ecx, 0x4316a3
mov eax, 8
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x84], eax
mov eax, dword [0x43a064]
test eax, eax
jne 0x41341c
mov ecx, 0x43a064
call fcn.00411cb0
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jb 0x413431
cmp dword [eax], 1
jne 0x413431
add eax, 4
jmp 0x413451
call fcn.00411e00
test eax, eax
jne 0x413451
mov al, 1
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 0
xor esi, esi
mov dword [ebp - 0x24], eax
jmp 0x413489
mov ecx, eax
call fcn.00411ef0
mov dword [ebp - 0x34], eax
lea edx, [eax + 0x10]
mov ecx, dword [eax + 0x10]
test ecx, ecx
cmove edx, ecx
jne 0x41346c
xor esi, esi
jmp 0x41347f
mov ecx, dword [edx + 4]
sub ecx, 1
jae 0x41347d
xor edx, edx
call fcn.00406d70
ud2
mov esi, dword [edx]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0xa0]
test esi, esi
mov edx, 9
mov dword [ebp - 0x10], 1
cmovne edx, ecx
mov ecx, 0x4316ab
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x88]
cmovne ecx, esi
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x25]
xor ecx, ecx
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0x5c], eax
call fcn.00413df0
test eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edx
jne 0x413542
lea ecx, [ebp - 0x68]
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x10], 3
lea edx, [ebp - 0x68]
push 0x4316d8
call fcn.00414150
mov cl, 1
add esp, 4
mov esi, dword [ebp - 0x98]
mov edi, dword [ebp - 0x30]
cmp byte [ebp - 0x24], 0
jne 0x4135cb
mov eax, dword [ebp - 0x2c]
lock dec dword [eax]
jne 0x4135cb
mov byte [ebp - 0x1f], cl
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x10], 2
call fcn.00412270
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x98]
jmp 0x4135cb
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], edx
mov byte [ebp - 0x1e], 1
mov dword [ebp - 0x10], 4
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x78]
push 0x4316b4
call fcn.00414150
add esp, 4
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x74]
mov byte [ebp - 0x1e], 0
call fcn.00413df0
test eax, eax
je 0x4135b6
mov dword [ebp - 0x10], 5
mov dword [ebp - 0x70], eax
push eax
mov dword [ebp - 0x6c], edx
call dword [edx]
add esp, 4
mov eax, dword [ebp - 0x6c]
mov esi, dword [ebp - 0x70]
cmp dword [eax + 4], 0
je 0x4135b6
cmp dword [eax + 8], 9
jae 0x4135a6
call sub.KERNEL32.dll_GetProcessHeap
push esi
jmp 0x4135ae
call sub.KERNEL32.dll_GetProcessHeap
push dword [esi - 4]
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov esi, dword [ebp - 0x98]
mov edi, dword [ebp - 0x30]
xor ecx, ecx
cmp byte [ebp - 0x24], 0
je 0x413510
test cl, cl
je 0x41361f
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x41361f
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], eax
push eax
mov dword [ebp - 0x2c], ecx
call dword [ecx]
add esp, 4
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x98]
mov edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x24]
cmp dword [eax + 4], 0
je 0x41361f
cmp dword [eax + 8], 9
jae 0x41360f
call sub.KERNEL32.dll_GetProcessHeap
push ebx
jmp 0x413617
call sub.KERNEL32.dll_GetProcessHeap
push dword [ebx - 4]
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov eax, dword [0x43a9d0]
mov dword [ebp - 0x10], 0xffffffff
test eax, eax
jne 0x413650
mov ecx, str.ReleaseSRWLockShared
mov edx, 0x14
call fcn.004123d0
test eax, eax
mov eax, 0x413940
cmovne eax, edx
mov ecx, eax
xchg dword [0x43a9d0], ecx
push 0x43a9cc
call eax
cmp dword [ebp - 0x7c], 1
jbe 0x413669
mov dword [ebp - 0x58], str.thread_panicked_while_panicking._aborting._n
jmp 0x413240
mov ecx, edi
mov edx, esi
call fcn.00413960
ud2