Function at 0x42bb20
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], 0x410bb0
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 0x42bb82
jmp 0x42bfaa
mov eax, dword [ebp + 8]
mov edx, 2
mov esi, dword [eax]
test esi, esi
je 0x42bfaa
cmp esi, 1
je 0x42bfa0
cmp esi, 3
je 0x42c00c
mov eax, esi
and eax, 3
cmp eax, 2
je 0x42bbba
jmp 0x42c145
mov eax, esi
and eax, 3
cmp eax, 2
jne 0x42bb70
mov eax, dword [0x43a038]
test eax, eax
jne 0x42bbd7
mov dword [ebp - 0x10], 0xffffffff
push 0x43a038
call fcn.0040b780
add esp, 4
push eax
call edi
cmp eax, 1
mov dword [ebp - 0x20], esi
jbe 0x42bc00
cmp dword [eax], 0
mov edx, eax
je 0x42bc00
add edx, 4
jmp 0x42bcc0
mov eax, dword [0x43a038]
test eax, eax
je 0x42bc20
push eax
call edi
test eax, eax
je 0x42bc3b
mov esi, eax
cmp eax, 1
jne 0x42bc83
jmp 0x42c021
mov dword [ebp - 0x10], 0xffffffff
push 0x43a038
call fcn.0040b780
add esp, 4
push eax
call edi
test eax, eax
jne 0x42bc10
push 4
push 0x10
call fcn.00403a70
add esp, 8
test eax, eax
je 0x42c0aa
mov dword [eax], 0
mov dword [eax + 0xc], 0x43a038
mov esi, eax
mov eax, dword [0x43a038]
test eax, eax
jne 0x42bc7b
mov dword [ebp - 0x10], 0xffffffff
push 0x43a038
call fcn.0040b780
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 0x42bcc0
test ecx, ecx
je 0x42bcc0
lock dec dword [ecx]
jne 0x42bcc0
mov dword [ebp - 0x24], edx
call fcn.00406600
mov edx, dword [ebp - 0x24]
nop word cs:[eax + eax]
cmp dword [edx], 0
jne 0x42c05e
mov dword [edx], 0xffffffff
mov eax, dword [edx + 4]
test eax, eax
jne 0x42bcf9
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x10], 3
sub esp, 4
push 0
call fcn.00407610
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 0x42c01d
inc dword [edx]
test eax, eax
je 0x42c021
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 0x42bf70
mov esi, eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x42bbb0
lock dec dword [eax]
jne 0x42bbb0
mov ecx, dword [ebp - 0x30]
call fcn.00406600
jmp 0x42bbb0
mov eax, dword [0x43a038]
test eax, eax
je 0x42bd80
push eax
call edi
cmp eax, 1
ja 0x42bda2
jmp 0x42bdc0
mov dword [ebp - 0x10], 0
push 0x43a038
call fcn.0040b780
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call edi
cmp eax, 1
jbe 0x42bdc0
cmp dword [eax], 0
mov esi, eax
je 0x42bdc0
add esi, 4
jmp 0x42be90
mov eax, dword [0x43a038]
test eax, eax
je 0x42bde0
push eax
call edi
test eax, eax
je 0x42be01
mov ebx, eax
cmp eax, 1
jne 0x42be55
jmp 0x42c03e
mov dword [ebp - 0x10], 0
push 0x43a038
call fcn.0040b780
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call edi
test eax, eax
jne 0x42bdd0
push 4
push 0x10
call fcn.00403a70
add esp, 8
test eax, eax
je 0x42c0bf
mov dword [eax], 0
mov dword [eax + 0xc], 0x43a038
mov ebx, eax
mov eax, dword [0x43a038]
test eax, eax
jne 0x42be4d
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], 0
push 0x43a038
call fcn.0040b780
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 0x42be90
test ecx, ecx
je 0x42be90
lock dec dword [ecx]
jne 0x42be90
call fcn.00406600
nop word cs:[eax + eax]
nop dword [eax]
cmp dword [esi], 0
jne 0x42c084
mov dword [esi], 0xffffffff
mov ebx, dword [esi + 4]
test ebx, ebx
jne 0x42becb
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], 1
sub esp, 4
push 0
call fcn.00407610
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 0x42c01d
inc dword [esi]
test ebx, ebx
je 0x42c03e
mov dword [ebp - 0x34], ebx
lock dec byte [ebx + 0x18]
je 0x42bf16
mov esi, dword [0x43a9d4]
add ebx, 0x18
test esi, esi
je 0x42bf28
nop word cs:[eax + eax]
nop
push 0xffffffffffffffff
push 1
push 0x42f148
push ebx
call esi
xor edx, edx
mov al, 1
lock cmpxchg byte [ebx], dl
jne 0x42bf00
mov eax, dword [ebp - 0x34]
lock dec dword [eax]
jne 0x42bf70
mov ecx, dword [ebp - 0x34]
call fcn.00406600
jmp 0x42bf70
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], 2
call fcn.0040eb40
mov ecx, dword [0x43a9f4]
test ecx, ecx
je 0x42c0d4
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 0x42bf1e
nop word cs:[eax + eax]
nop dword [eax]
mov al, byte [ebp - 0x28]
test al, al
je 0x42bd60
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x42bb70
lock dec dword [eax]
jne 0x42bb70
mov ecx, dword [ebp - 0x30]
call fcn.00406600
jmp 0x42bb70
cmp byte [ebp + 0xc], 0
je 0x42c10a
mov ecx, dword [ebp + 8]
mov eax, esi
lock cmpxchg dword [ecx], edx
je 0x42bfc1
mov esi, eax
test esi, esi
jne 0x42bb82
jmp 0x42bfaa
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.0040a780
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 0x42dedc
push 0x5e
push 0x42de7d
call fcn.0042c3a0
add esp, 0xc
ud2
mov dword [ebp - 0x10], 0
push 0x42dedc
push 0x5e
push 0x42de7d
call fcn.0042c3a0
add esp, 0xc
jmp 0x42c108
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x4c]
push 0x42e764
push 0x42dba0
push eax
push 0x10
push str.already_borrowed_rustc_a8314ef7d0ec7b75c336af2c9857bfaf43002bfclibrarycore_srccharmethods.rs
call fcn.0042c550
add esp, 0x14
ud2
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x4c]
push 0x42e764
push 0x42dba0
push eax
push 0x10
push str.already_borrowed_rustc_a8314ef7d0ec7b75c336af2c9857bfaf43002bfclibrarycore_srccharmethods.rs
call fcn.0042c550
add esp, 0x14
jmp 0x42c108
mov dword [ebp - 0x10], 0xffffffff
push 4
push 0x10
call fcn.0042c390
add esp, 8
ud2
mov dword [ebp - 0x10], 0
push 4
push 0x10
call fcn.0042c390
add esp, 8
jmp 0x42c108
mov dword [ebp - 0x4c], str.keyed_events_not_available
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], 0x42d910
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x4c]
push 0x42f3d8
push eax
call fcn.0042c510
add esp, 8
ud2
mov dword [ebp - 0x4c], 0x42e5cc
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], 0x42d910
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x4c]
push dword [ebp + 0x18]
push eax
call fcn.0042c510
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.0042c3c0
add esp, 0xc
ud2