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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xffffffc0
sub esp, 0x600
call 0x4891c4
pop eax
mov esi, edx
mov edi, ecx
mov dword [esp + 0x150], eax
xor ecx, ecx
call sym.std::sys::common::thread_local::os_local::Key_LT_T_GT_::get::h91912eafbfa1d342
test eax, eax
je 0x48b944
mov ecx, dword [eax]
mov dword [eax], edi
mov eax, dword [esi]
mov dword [esp + 0x138], ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
mov dword [esp + 0x54], eax
call sym.std::sys::common::thread_local::os_local::Key_LT_T_GT_::get::h7453f295b74b2140
test eax, eax
je 0x48b7e6
cmp byte [eax], 2
jne 0x48b96a
mov edx, dword [esp + 0x18]
mov byte [eax], 0
mov eax, dword [edx + 0x150]
mov byte [eax + 0x3c], 1
add eax, 8
mov dword [esp + sym.tokio::util::wake::clone_arc_raw::h05a3a89870eac80a], 0x5a4ab4
mov dword [esp + 0x1bc], eax
lea eax, [esp + 0x1b8]
mov dword [esp + 0x158], eax
mov eax, dword [esp + 0x14]
lea esi, [eax + 0xa8]
lea edi, [eax + 0x60]
lea ecx, [eax + 0x48]
mov dword [esp + 0xd4], esi
lea esi, [eax + 0x10]
mov dword [esp + 0x100], edi
lea edi, [eax + 0xd]
mov dword [esp + 0xfc], ecx
mov dword [esp + 0xd0], esi
lea esi, [eax + 0x34]
mov dword [esp + 0x18c], edi
lea edi, [eax + 0xb4]
mov dword [esp + 0x74], esi
lea esi, [eax + 0xda]
mov dword [esp + 0x198], edi
lea edi, [eax + 0xc0]
mov dword [esp + 0x190], esi
lea esi, [eax + 0xcc]
mov dword [esp + 0x108], edi
lea edi, [eax + 0x68]
mov dword [esp + 0x104], esi
lea esi, [eax + 0x70]
mov dword [esp + 0x1a4], edi
lea edi, [eax + 0x78]
mov dword [esp + 0x14c], esi
lea esi, [eax + 0x84]
mov dword [esp + 0x80], edi
lea edi, [eax + 0xb0]
mov dword [esp + 0x7c], esi
lea esi, [eax + 0xbc]
mov dword [esp + 0xf8], edi
lea edi, [eax + 0x54]
mov dword [esp + 0x194], esi
lea esi, [eax + 0x6c]
lea eax, [eax + 0x90]
mov dword [esp + 0x1a0], edi
mov dword [esp + 0x19c], eax
lea eax, [edx + 0xc]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x148], eax
jmp 0x489336
jne 0x48b690
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov eax, dword [eax + 0x150]
xchg byte [eax + 0x3c], cl
test cl, cl
je 0x48a851
call sym.std::sys::common::thread_local::os_local::Key_LT_T_GT_::get::h69abe01d1d6b7e00
mov edi, eax
test eax, eax
je 0x48b622
movzx eax, byte [edi]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x150]
mov dword [esp + 0x1c], edi
mov byte [esp + 0x26], al
movzx eax, byte [edi + 1]
mov word [edi], 0x8001
mov byte [esp + 0x27], al
movzx eax, byte [ebx + 0x44]
mov eax, dword [eax*4 + 0x48c65c]
add eax, ecx
jmp eax
mov dword [esp + 0x1c], 0x3d
nop dword [eax]
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x154]
mov ecx, eax
shl ecx, 5
add ecx, eax
inc al
neg ecx
mov byte [edx + 0x154], al
cmp cl, 9
jb 0x48a930
mov edi, dword [esp + 0x54]
cmp dword [edi + 4], 0
jne 0x48b518
mov dword [edi + 4], 0xffffffff
mov eax, dword [edi + 0x14]
test eax, eax
jne 0x48a9bf
mov eax, dword [esp + 0x18]
mov cl, 1
mov ebx, dword [eax + 0x150]
xor eax, eax
lock cmpxchg byte [ebx + 0x28], cl
lea edi, [ebx + 0x28]
je 0x48a8c3
mov ecx, edi
call sym.parking_lot::raw_mutex::RawMutex::lock_slow::h06df723492a6430d
mov eax, dword [ebx + 0x2c]
xor esi, esi
test eax, eax
je 0x48a8fe
mov ecx, dword [ebx + 0x38]
test ecx, ecx
je 0x48a8fe
mov esi, dword [ebx + 0x34]
mov edx, dword [ebx + 0x30]
mov dword [esp + 0x30], edi
lea edi, [esi + 1]
cmp edi, edx
mov edi, 0
cmovb edx, edi
dec ecx
mov edi, dword [esp + 0x30]
neg edx
lea edx, [esi + edx + 1]
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x38], ecx
mov esi, dword [eax + esi*4]
mov al, 1
xor ecx, ecx
lock cmpxchg byte [edi], cl
je 0x48a90f
mov ecx, edi
call sym.parking_lot::raw_mutex::RawMutex::unlock_slow::h7a3bc9387d667bed
mov edi, dword [esp + 0x54]
mov eax, dword [edi + 4]
inc eax
test esi, esi
mov dword [edi + 4], eax
jne 0x48a9ec
jmp 0x48ae59
mov eax, dword [esp + 0x18]
mov cl, 1
mov ebx, dword [eax + 0x150]
xor eax, eax
lock cmpxchg byte [ebx + 0x28], cl
lea edi, [ebx + 0x28]
je 0x48a94f
mov ecx, edi
call sym.parking_lot::raw_mutex::RawMutex::lock_slow::h06df723492a6430d
mov eax, dword [ebx + 0x2c]
xor esi, esi
test eax, eax
je 0x48a98a
mov ecx, dword [ebx + 0x38]
test ecx, ecx
je 0x48a98a
mov esi, dword [ebx + 0x34]
mov edx, dword [ebx + 0x30]
mov dword [esp + 0x30], edi
lea edi, [esi + 1]
cmp edi, edx
mov edi, 0
cmovb edx, edi
dec ecx
mov edi, dword [esp + 0x30]
neg edx
lea edx, [esi + edx + 1]
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x38], ecx
mov esi, dword [eax + esi*4]
mov al, 1
xor ecx, ecx
lock cmpxchg byte [edi], cl
je 0x48a99b
mov ecx, edi
call sym.parking_lot::raw_mutex::RawMutex::unlock_slow::h7a3bc9387d667bed
mov edi, dword [esp + 0x54]
test esi, esi
jne 0x48a9ec
cmp dword [edi + 4], 0
jne 0x48b5f8
mov dword [edi + 4], 0xffffffff
mov eax, dword [edi + 0x14]
test eax, eax
je 0x48ae50
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
lea esi, [ecx + 1]
cmp esi, edx
mov esi, 0
cmovb edx, esi
dec eax
neg edx
lea edx, [ecx + edx + 1]
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], eax
mov eax, dword [edi + 8]
mov esi, dword [eax + ecx*4]
mov dword [edi + 4], 0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov edx, dword [edi]
mov dword [esp + 0x30], esi
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x88], eax
xor ecx, dword [edx + 0x24]
xor eax, dword [edx + 0x20]
or eax, ecx
jne 0x48b4e4
mov eax, dword [0x54a324]
test eax, eax
je 0x48aa20
dec eax
jmp 0x48aa2a
mov ecx, 0x54a324
call dbg.init
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jb 0x48aa50
cmp byte [eax + 4], 0
je 0x48aa50
mov edi, eax
movzx eax, byte [eax + 5]
add edi, 5
mov esi, eax
jmp 0x48aae8
mov eax, dword [0x54a324]
test eax, eax
je 0x48aa60
dec eax
jmp 0x48aa6a
mov ecx, 0x54a324
call dbg.init
push eax
call sub.KERNEL32.dll_TlsGetValue
mov edi, eax
test eax, eax
je 0x48aa80
cmp edi, 1
jne 0x48aadd
jmp 0x48b53b
movzx eax, byte [0x5c6170]
mov eax, dword [0x5c6108]
test eax, eax
jne 0x48aaa2
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x48b527
mov dword [0x5c6108], eax
push 8
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x48b527
mov dword [eax], 0x54a324
mov byte [eax + 4], 0
mov edi, eax
mov eax, dword [0x54a324]
test eax, eax
je 0x48aacc
dec eax
jmp 0x48aad6
mov ecx, 0x54a324
call dbg.init
push edi
push eax
call sub.KERNEL32.dll_TlsSetValue
mov word [edi + 4], 1
add edi, 5
xor esi, esi
mov ecx, dword [esp + 0x30]
movzx ebx, byte [edi + 1]
mov word [edi], 0x8001
mov eax, dword [ecx + 0x10]
mov eax, dword [eax]
push ecx
call eax
add esp, 4
dec dword [esp + 0x1c]
mov eax, esi
mov byte [edi], al
mov byte [edi + 1], bl
jne 0x48a860
mov edx, dword [esp + 0x18]
cmp dword [edx + 8], 0x3b9aca00
jne 0x48abf0
mov edx, dword [esp + 0x148]
lea ecx, [esp + 0x240]
cmp dword [edx], 0
je 0x48ac9a
push 0
push 0
push 0
call sym.tokio::io::driver::Driver::turn::he0e6c6e9cd183f62
add esp, 0xc
movzx eax, byte [esp + 0x240]
cmp al, 4
je 0x489336
jmp 0x48b655
lea ecx, [esp + 0x240]
push 0
call sym.tokio::time::driver::Driver_LT_P_GT_::park_internal::hada12d30533c2fe4
add esp, 4
xor eax, eax
cmp byte [esp + 0x240], 5
je 0x489330
mov ecx, dword [esp + 0x244]
mov edx, dword [esp + 0x240]
mov dword [esp + 0x140], ecx
mov dword [esp + 0x13c], edx
jmp 0x489330
mov eax, dword [esp + 0x18]
xor edx, edx
mov ecx, dword [eax + 0x10]
mov eax, 2
lock cmpxchg dword [ecx + 8], edx
jmp 0x489336
mov dword [edi + 4], 0
xor eax, eax
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x140]
test ecx, ecx
je 0x48ae8c
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x144]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0x14]
dec edx
and edx, 0xfffffff8
lea ecx, [edx + ecx + 8]
push ecx
call eax
add esp, 4
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 4]
test eax, eax
jne 0x48b64b
mov eax, dword [esp + 0x54]
cmp dword [eax + 0x14], 0
mov dword [eax + 4], 0
jne 0x48b2b0
mov edx, dword [esp + 0x18]
cmp dword [edx + 8], 0x3b9aca00
jne 0x48b25d
mov edx, dword [esp + 0x148]
lea ecx, [esp + 0x240]
cmp dword [edx], 0
je 0x48b2a0
sub esp, 0xc
mov dword [esp + 8], 0x3b9aca00
call sym.tokio::io::driver::Driver::turn::he0e6c6e9cd183f62
add esp, 0xc
movzx eax, byte [esp + 0x240]
cmp al, 4
je 0x48b2b0
jmp 0x48b9c8
lea ecx, [esp + 0x240]
push 0x3b9aca00
call sym.tokio::time::driver::Driver_LT_P_GT_::park_internal::hada12d30533c2fe4
add esp, 4
xor eax, eax
cmp byte [esp + 0x240], 5
je 0x48b299
mov ecx, dword [esp + 0x244]
mov edx, dword [esp + 0x240]
mov dword [esp + 0x134], ecx
mov dword [esp + 0x130], edx
je 0x48b2b0
jmp 0x48ba03
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x10]
add ecx, 8
call sym.tokio::park::thread::Inner::park::h476d717933f068f9
nop
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x148]
test eax, eax
je 0x489336
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x14c]
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0x14]
dec edx
and edx, 0xfffffff8
lea eax, [edx + eax + 8]
push eax
call ecx
add esp, 4
jmp 0x489336
add edx, 0x20
mov dword [esp + 0x240], 0
lea eax, [esp + 0x240]
lea ecx, [esp + 0x88]
push eax
call sym.core::panicking::assert_failed::h3f2d3e9689a53fee
add esp, 4
jmp 0x48baa5
mov ecx, 0x556074
call dbg.panic_already_borrowed
jmp 0x48baa5
mov ecx, 4
mov edx, 8
call dbg.handle_alloc_error
jmp 0x48baa5
mov ecx, dword [esp + 0x30]
call sym.__LT_tokio..runtime..task..Task_LT_S_GT__u20_as_u20_core..ops..drop..Drop_GT_::drop::h397c2fa41611acf3
mov edx, 0x46
mov ecx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_std_src_threadlocal.rs
push 0x5a5754
push 0x556014
lea eax, [esp + 0x248]
push eax
call dbg.unwrap_failed
add esp, 0xc
jmp 0x48baa5
mov ecx, 0x556084
jmp 0x48b51d
mov edx, 0x46
mov ecx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_std_src_threadlocal.rs
push 0x5a5754
push 0x556014
lea eax, [esp + 0x248]
push eax
call dbg.unwrap_failed
add esp, 0xc
jmp 0x48baa5
mov ecx, 0x556064
jmp 0x48b51d
movzx ecx, byte [esp + 0x247]
movzx edx, word [esp + 0x245]
mov esi, dword [esp + 0x241]
movzx eax, al
shl ecx, 0x10
or edx, ecx
shld edx, esi, 8
shl esi, 8
or esi, eax
mov eax, 1
mov dword [esp + 0x140], edx
mov dword [esp + 0x13c], esi
mov dword [esp + 0x240], eax
mov eax, dword [esp + 0x13c]
mov dword [esp + 0x244], eax
mov eax, dword [esp + 0x140]
mov dword [esp + 0x248], eax
mov edx, 0xe
mov ecx, str.failed_to_park
push 0x556044
push 0x556024
lea eax, [esp + 0x248]
push eax
call dbg.unwrap_failed
add esp, 0xc
jmp 0x48baa5
lea eax, [esp + 0x240]
mov edx, 0x46
mov ecx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_std_src_threadlocal.rs
push 0x5a5754
push 0x5a528c
push eax
call dbg.unwrap_failed
add esp, 0xc
jmp 0x48baa5
lea eax, [esp + 0x240]
mov ecx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_std_src_threadlocal.rs
mov edx, 0x46
push 0x5a5754
push 0x556014
push eax
call dbg.unwrap_failed
add esp, 0xc
ud2
mov edx, 0xc1
mov ecx, 0x5a53e0
push 0x5a54a4
call sym.std::panicking::begin_panic::hb017f3a55f95e16b
add esp, 4
jmp 0x48baa5
movzx ecx, byte [esp + 0x247]
movzx edx, word [esp + 0x245]
mov esi, dword [esp + 0x241]
movzx eax, al
shl ecx, 0x10
or edx, ecx
shld edx, esi, 8
shl esi, 8
or esi, eax
mov eax, 1
mov dword [esp + 0x134], edx
mov dword [esp + 0x130], esi
mov dword [esp + 0x240], eax
mov eax, dword [esp + 0x130]
mov dword [esp + 0x244], eax
mov eax, dword [esp + 0x134]
mov dword [esp + 0x248], eax
mov edx, 0xe
mov ecx, str.failed_to_park
push 0x556054
push 0x556024
lea eax, [esp + 0x248]
push eax
call dbg.unwrap_failed
add esp, 0xc
jmp 0x48baa5
ud2