Function at 0x47fb90
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], 0x46cc00
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 0x47fbf2
jmp 0x48001a
mov eax, dword [ebp + 8]
mov edx, 2
mov esi, dword [eax]
test esi, esi
je 0x48001a
cmp esi, 1
je 0x480010
cmp esi, 3
je 0x48007c
mov eax, esi
and eax, 3
cmp eax, 2
je 0x47fc2a
jmp 0x4801b5
mov eax, esi
and eax, 3
cmp eax, 2
jne 0x47fbe0
mov eax, dword [0x4c1070]
test eax, eax
jne 0x47fc47
mov dword [ebp - 0x10], 0xffffffff
push 0x4c1070
call fcn.004649b0
add esp, 4
push eax
call edi
cmp eax, 1
mov dword [ebp - 0x20], esi
jbe 0x47fc70
cmp dword [eax], 0
mov edx, eax
je 0x47fc70
add edx, 4
jmp 0x47fd30
mov eax, dword [0x4c1070]
test eax, eax
je 0x47fc90
push eax
call edi
test eax, eax
je 0x47fcab
mov esi, eax
cmp eax, 1
jne 0x47fcf3
jmp 0x480091
mov dword [ebp - 0x10], 0xffffffff
push 0x4c1070
call fcn.004649b0
add esp, 4
push eax
call edi
test eax, eax
jne 0x47fc80
push 4
push 0x10
call fcn.00406c70
add esp, 8
test eax, eax
je 0x48011a
mov dword [eax], 0
mov dword [eax + 0xc], 0x4c1070
mov esi, eax
mov eax, dword [0x4c1070]
test eax, eax
jne 0x47fceb
mov dword [ebp - 0x10], 0xffffffff
push 0x4c1070
call fcn.004649b0
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 0x47fd30
test ecx, ecx
je 0x47fd30
lock dec dword [ecx]
jne 0x47fd30
mov dword [ebp - 0x24], edx
call fcn.00407f60
mov edx, dword [ebp - 0x24]
nop word cs:[eax + eax]
cmp dword [edx], 0
jne 0x4800ce
mov dword [edx], 0xffffffff
mov eax, dword [edx + 4]
test eax, eax
jne 0x47fd69
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x10], 3
sub esp, 4
push 0
call fcn.0045b360
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 0x48008d
inc dword [edx]
test eax, eax
je 0x480091
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 0x47ffe0
mov esi, eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x47fc20
lock dec dword [eax]
jne 0x47fc20
mov ecx, dword [ebp - 0x30]
call fcn.00407f60
jmp 0x47fc20
mov eax, dword [0x4c1070]
test eax, eax
je 0x47fdf0
push eax
call edi
cmp eax, 1
ja 0x47fe12
jmp 0x47fe30
mov dword [ebp - 0x10], 0
push 0x4c1070
call fcn.004649b0
add esp, 4
mov edi, dword [sym.imp.kernel32.dll_TlsGetValue]
push eax
call edi
cmp eax, 1
jbe 0x47fe30
cmp dword [eax], 0
mov esi, eax
je 0x47fe30
add esi, 4
jmp 0x47ff00
mov eax, dword [0x4c1070]
test eax, eax
je 0x47fe50
push eax
call edi
test eax, eax
je 0x47fe71
mov ebx, eax
cmp eax, 1
jne 0x47fec5
jmp 0x4800ae
mov dword [ebp - 0x10], 0
push 0x4c1070
call fcn.004649b0
add esp, 4
mov edi, dword [sym.imp.kernel32.dll_TlsGetValue]
push eax
call edi
test eax, eax
jne 0x47fe40
push 4
push 0x10
call fcn.00406c70
add esp, 8
test eax, eax
je 0x48012f
mov dword [eax], 0
mov dword [eax + 0xc], 0x4c1070
mov ebx, eax
mov eax, dword [0x4c1070]
test eax, eax
jne 0x47febd
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], 0
push 0x4c1070
call fcn.004649b0
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 0x47ff00
test ecx, ecx
je 0x47ff00
lock dec dword [ecx]
jne 0x47ff00
call fcn.00407f60
nop word cs:[eax + eax]
nop dword [eax]
cmp dword [esi], 0
jne 0x4800f4
mov dword [esi], 0xffffffff
mov ebx, dword [esi + 4]
test ebx, ebx
jne 0x47ff3b
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], 1
sub esp, 4
push 0
call fcn.0045b360
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 0x48008d
inc dword [esi]
test ebx, ebx
je 0x4800ae
mov dword [ebp - 0x34], ebx
lock dec byte [ebx + 0x18]
je 0x47ff86
mov esi, dword [0x4c11b8]
add ebx, 0x18
test esi, esi
je 0x47ff98
nop word cs:[eax + eax]
nop
push 0xffffffffffffffff
push 1
push 0x4b2a08
push ebx
call esi
xor edx, edx
mov al, 1
lock cmpxchg byte [ebx], dl
jne 0x47ff70
mov eax, dword [ebp - 0x34]
lock dec dword [eax]
jne 0x47ffe0
mov ecx, dword [ebp - 0x34]
call fcn.00407f60
jmp 0x47ffe0
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], 2
call fcn.0046a2a0
mov ecx, dword [0x4c11d8]
test ecx, ecx
je 0x480144
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 0x47ff8e
nop word cs:[eax + eax]
nop dword [eax]
mov al, byte [ebp - 0x28]
test al, al
je 0x47fdd0
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x47fbe0
lock dec dword [eax]
jne 0x47fbe0
mov ecx, dword [ebp - 0x30]
call fcn.00407f60
jmp 0x47fbe0
cmp byte [ebp + 0xc], 0
je 0x48017a
mov ecx, dword [ebp + 8]
mov eax, esi
lock cmpxchg dword [ecx], edx
je 0x480031
mov esi, eax
test esi, esi
jne 0x47fbf2
jmp 0x48001a
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.00463820
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 0x4b12b8
push 0x5e
push 0x4b1259
call fcn.00480510
add esp, 0xc
ud2
mov dword [ebp - 0x10], 0
push 0x4b12b8
push 0x5e
push 0x4b1259
call fcn.00480510
add esp, 0xc
jmp 0x480178
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x4c]
push 0x4b1eec
push 0x4b0f1c
push eax
push 0x10
push str.already_borrowed_rustc_4b91a6ea7258a947e59c6522cd5898e7c0a6a88flibrarycore_srccharmethods.rs
call fcn.004806c0
add esp, 0x14
ud2
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x4c]
push 0x4b1eec
push 0x4b0f1c
push eax
push 0x10
push str.already_borrowed_rustc_4b91a6ea7258a947e59c6522cd5898e7c0a6a88flibrarycore_srccharmethods.rs
call fcn.004806c0
add esp, 0x14
jmp 0x480178
mov dword [ebp - 0x10], 0xffffffff
push 4
push 0x10
call fcn.004804a0
add esp, 8
ud2
mov dword [ebp - 0x10], 0
push 4
push 0x10
call fcn.004804a0
add esp, 8
jmp 0x480178
mov dword [ebp - 0x4c], str.keyed_events_not_available
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], 0x4b0c58
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x4c]
push 0x4b2c38
push eax
call fcn.00480680
add esp, 8
ud2
mov dword [ebp - 0x4c], 0x4b1d48
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], 0x4b0c58
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x4c]
push dword [ebp + 0x18]
push eax
call fcn.00480680
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.00480530
add esp, 0xc
ud2