Function at 0x437a20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x41c6d0
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword fs:[0]
mov dword [ebp - 0x18], eax
mov dword fs:[0], edx
mov edx, 2
mov esi, dword [ecx]
test esi, esi
jne 0x437a82
jmp 0x437eaa
mov eax, dword [ebp + 8]
mov edx, 2
mov esi, dword [eax]
test esi, esi
je 0x437eaa
cmp esi, 1
je 0x437ea0
cmp esi, 3
je 0x437f0c
mov eax, esi
and eax, 3
cmp eax, 2
je 0x437aba
jmp 0x438045
mov eax, esi
and eax, 3
cmp eax, 2
jne 0x437a70
mov eax, dword [0x446038]
test eax, eax
jne 0x437ad7
mov dword [ebp - 0x10], 0xffffffff
push 0x446038
call fcn.00411100
add esp, 4
push eax
call edi
cmp eax, 1
mov dword [ebp - 0x20], esi
jbe 0x437b00
cmp dword [eax], 0
mov edx, eax
je 0x437b00
add edx, 4
jmp 0x437bc0
mov eax, dword [0x446038]
test eax, eax
je 0x437b20
push eax
call edi
test eax, eax
je 0x437b3b
mov esi, eax
cmp eax, 1
jne 0x437b83
jmp 0x437f21
mov dword [ebp - 0x10], 0xffffffff
push 0x446038
call fcn.00411100
add esp, 4
push eax
call edi
test eax, eax
jne 0x437b10
push 4
push 0x10
call fcn.00402f90
add esp, 8
test eax, eax
je 0x437faa
mov dword [eax], 0
mov dword [eax + 0xc], 0x446038
mov esi, eax
mov eax, dword [0x446038]
test eax, eax
jne 0x437b7b
mov dword [ebp - 0x10], 0xffffffff
push 0x446038
call fcn.00411100
add esp, 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esi + 8]
cmp dword [esi], 0
lea edx, [esi + 4]
mov dword [esi], 1
mov dword [esi + 4], 0
mov dword [esi + 8], 0
je 0x437bc0
test ecx, ecx
je 0x437bc0
lock dec dword [ecx]
jne 0x437bc0
mov dword [ebp - 0x24], edx
call fcn.004086a0
mov edx, dword [ebp - 0x24]
nop word cs:[eax + eax]
cmp dword [edx], 0
jne 0x437f5e
mov dword [edx], 0xffffffff
mov eax, dword [edx + 4]
test eax, eax
jne 0x437bf9
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x10], 3
sub esp, 4
push 0
call fcn.00409810
add esp, 8
mov edx, dword [ebp - 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [edx + 4], eax
lock inc dword [eax]
jle 0x437f1d
inc dword [edx]
test eax, eax
je 0x437f21
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x28], 0
mov edx, esi
mov ecx, esi
mov eax, esi
mov esi, dword [ebp + 8]
and edx, 3
sub ecx, edx
lea edx, [ebp - 0x2e]
mov dword [ebp - 0x2c], ecx
lock cmpxchg dword [esi], edx
je 0x437e70
mov esi, eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x437ab0
lock dec dword [eax]
jne 0x437ab0
mov ecx, dword [ebp - 0x30]
call fcn.004086a0
jmp 0x437ab0
mov eax, dword [0x446038]
test eax, eax
je 0x437c80
push eax
call edi
cmp eax, 1
ja 0x437ca2
jmp 0x437cc0
mov dword [ebp - 0x10], 0
push 0x446038
call fcn.00411100
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call edi
cmp eax, 1
jbe 0x437cc0
cmp dword [eax], 0
mov esi, eax
je 0x437cc0
add esi, 4
jmp 0x437d90
mov eax, dword [0x446038]
test eax, eax
je 0x437ce0
push eax
call edi
test eax, eax
je 0x437d01
mov ebx, eax
cmp eax, 1
jne 0x437d55
jmp 0x437f3e
mov dword [ebp - 0x10], 0
push 0x446038
call fcn.00411100
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call edi
test eax, eax
jne 0x437cd0
push 4
push 0x10
call fcn.00402f90
add esp, 8
test eax, eax
je 0x437fbf
mov dword [eax], 0
mov dword [eax + 0xc], 0x446038
mov ebx, eax
mov eax, dword [0x446038]
test eax, eax
jne 0x437d4d
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], 0
push 0x446038
call fcn.00411100
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [ebp - 0x20]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebx + 8]
cmp dword [ebx], 0
lea esi, [ebx + 4]
mov dword [ebx], 1
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
je 0x437d90
test ecx, ecx
je 0x437d90
lock dec dword [ecx]
jne 0x437d90
call fcn.004086a0
nop word cs:[eax + eax]
nop dword [eax]
cmp dword [esi], 0
jne 0x437f84
mov dword [esi], 0xffffffff
mov ebx, dword [esi + 4]
test ebx, ebx
jne 0x437dcb
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], 1
sub esp, 4
push 0
call fcn.00409810
add esp, 8
mov esi, dword [ebp - 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [esi + 4], eax
lock inc dword [ebx]
jle 0x437f1d
inc dword [esi]
test ebx, ebx
je 0x437f3e
mov dword [ebp - 0x34], ebx
lock dec byte [ebx + 0x18]
je 0x437e16
mov esi, dword [0x446a5c]
add ebx, 0x18
test esi, esi
je 0x437e28
nop word cs:[eax + eax]
nop
push 0xffffffffffffffff
push 1
push 0x43bc04
push ebx
call esi
xor edx, edx
mov al, 1
lock cmpxchg byte [ebx], dl
jne 0x437e00
mov eax, dword [ebp - 0x34]
lock dec dword [eax]
jne 0x437e70
mov ecx, dword [ebp - 0x34]
call fcn.004086a0
jmp 0x437e70
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], 2
call fcn.0041a560
mov ecx, dword [0x446a7c]
test ecx, ecx
je 0x437fd4
push 0
push 0
mov esi, dword [ebp - 0x20]
push esi
push eax
call ecx
xor eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
xchg byte [esi], al
mov eax, dword [ebp - 0x34]
lock dec dword [eax]
je 0x437e1e
nop word cs:[eax + eax]
nop dword [eax]
mov al, byte [ebp - 0x28]
test al, al
je 0x437c60
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x437a70
lock dec dword [eax]
jne 0x437a70
mov ecx, dword [ebp - 0x30]
call fcn.004086a0
jmp 0x437a70
cmp byte [ebp + 0xc], 0
je 0x43800a
mov ecx, dword [ebp + 8]
mov eax, esi
lock cmpxchg dword [ecx], edx
je 0x437ec1
mov esi, eax
test esi, esi
jne 0x437a82
jmp 0x437eaa
mov eax, dword [ebp + 8]
cmp esi, 1
mov dword [ebp - 0x10], 4
sete byte [ebp - 0x48]
mov dword [ebp - 0x4c], 3
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x2c], 1
push eax
push dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
call dword [eax + 0x10]
add esp, 8
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040fd30
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
ud2
mov dword [ebp - 0x10], 0xffffffff
push 0x43a574
push 0x5e
push str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
call fcn.004382a0
add esp, 0xc
ud2
mov dword [ebp - 0x10], 0
push 0x43a574
push 0x5e
push str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
call fcn.004382a0
add esp, 0xc
jmp 0x438008
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x4c]
push 0x43b044
push 0x439c54
push eax
push 0x10
push str.already_borrowed_rustc_de1bc0008be096cf7ed67b93402250d3b3e480d0librarycore_srccharmethods.rs_
call fcn.00438450
add esp, 0x14
ud2
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x4c]
push 0x43b044
push 0x439c54
push eax
push 0x10
push str.already_borrowed_rustc_de1bc0008be096cf7ed67b93402250d3b3e480d0librarycore_srccharmethods.rs_
call fcn.00438450
add esp, 0x14
jmp 0x438008
mov dword [ebp - 0x10], 0xffffffff
push 4
push 0x10
call fcn.00438290
add esp, 8
ud2
mov dword [ebp - 0x10], 0
push 4
push 0x10
call fcn.00438290
add esp, 8
jmp 0x438008
mov dword [ebp - 0x4c], str.keyed_events_not_available
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], 0x439998
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x4c]
push 0x43becc
push eax
call fcn.00438410
add esp, 8
ud2
mov dword [ebp - 0x4c], 0x43ae9c
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], 0x439998
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x4c]
push dword [ebp + 0x18]
push eax
call fcn.00438410
add esp, 8
ud2
mov dword [ebp - 0x10], 0xffffffff
push dword [ebp + 0x18]
push 0x40
push str.assertion_failed:_state_and_queue.addr____STATE_MASK__RUNNINGOnce_instance_has_previously_been_poisoned
call fcn.004382c0
add esp, 0xc
ud2