Function at 0x42dc60
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, 0x50
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x412b00
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword fs:[0]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edi, eax
test eax, eax
jne 0x42dcc4
jmp 0x42dcaa
cmp byte [ebp + 0xc], 0
je 0x42e263
mov ecx, dword [ebp + 8]
mov eax, edi
mov edx, 2
lock cmpxchg dword [ecx], edx
je 0x42e104
mov edi, eax
test eax, eax
je 0x42dcaa
cmp edi, 1
je 0x42dca0
cmp edi, 3
je 0x42e14f
mov eax, edi
and eax, 3
cmp eax, 2
je 0x42dcfe
jmp 0x42e29e
mov eax, edi
and eax, 3
cmp eax, 2
jne 0x42e0f0
mov eax, dword [0x43c070]
test eax, eax
je 0x42dd1f
dec eax
push eax
call ebx
cmp eax, 1
jbe 0x42dd40
cmp dword [eax], 0
mov edx, eax
je 0x42dd40
add edx, 4
jmp 0x42ddf0
mov dword [ebp - 0x10], 0xffffffff
push 0x43c070
call fcn.0042db00
add esp, 4
push eax
call ebx
cmp eax, 1
ja 0x42dd10
nop dword [eax + eax]
mov eax, dword [0x43c070]
test eax, eax
je 0x42dd5d
dec eax
push eax
call ebx
test eax, eax
je 0x42dd80
mov esi, eax
cmp eax, 1
jne 0x42ddb9
jmp 0x42e1c8
mov dword [ebp - 0x10], 0xffffffff
push 0x43c070
call fcn.0042db00
add esp, 4
push eax
call ebx
test eax, eax
jne 0x42dd51
nop dword [eax + eax]
push 4
push 0x10
call fcn.00405cb0
add esp, 8
test eax, eax
je 0x42e1b3
mov dword [eax], 0
mov dword [eax + 0xc], 0x43c070
mov esi, eax
mov eax, dword [0x43c070]
test eax, eax
je 0x42de82
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esi + 8]
cmp dword [esi], 0
movsd xmm0, qword [0x42f810]
lea edx, [esi + 4]
movsd qword [esi], xmm0
mov dword [esi + 8], 0
je 0x42ddf0
test ecx, ecx
je 0x42ddf0
lock dec dword [ecx]
jne 0x42ddf0
mov esi, edx
call fcn.004086f0
mov edx, esi
nop dword [eax]
cmp dword [edx], 0
jne 0x42e164
mov dword [edx], 0xffffffff
mov eax, dword [edx + 4]
test eax, eax
jne 0x42de2f
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x10], 0
sub esp, 4
push 0
call fcn.00409a10
add esp, 8
mov edx, dword [ebp - 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [ebp - 0x50]
mov dword [edx + 4], eax
lock inc dword [eax]
jle 0x42e160
inc dword [edx]
mov edx, edi
mov esi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x24], 0
mov eax, edi
and edx, 3
sub ecx, edx
lea edx, [ebp - 0x2a]
mov dword [ebp - 0x28], ecx
lock cmpxchg dword [esi], edx
je 0x42e0d0
mov edi, eax
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x42dcf0
lock dec dword [eax]
jne 0x42dcf0
mov ecx, dword [ebp - 0x2c]
call fcn.004086f0
jmp 0x42dcf0
mov dword [ebp - 0x10], 0xffffffff
push 0x43c070
call fcn.0042db00
add esp, 4
jmp 0x42ddb1
mov eax, dword [0x43c070]
test eax, eax
je 0x42dec0
dec eax
push eax
call ebx
cmp eax, 1
ja 0x42dee2
jmp 0x42df00
mov dword [ebp - 0x10], 1
push 0x43c070
call fcn.0042db00
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call ebx
cmp eax, 1
jbe 0x42df00
cmp dword [eax], 0
mov edi, eax
je 0x42df00
add edi, 4
jmp 0x42dfe0
mov eax, dword [0x43c070]
test eax, eax
je 0x42df30
dec eax
push eax
call ebx
test eax, eax
je 0x42df51
mov esi, eax
cmp eax, 1
jne 0x42dfa8
jmp 0x42e1e5
mov dword [ebp - 0x10], 1
push 0x43c070
call fcn.0042db00
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call ebx
test eax, eax
jne 0x42df11
push 4
push 0x10
call fcn.00405cb0
add esp, 8
test eax, eax
je 0x42e202
mov dword [eax], 0
mov dword [eax + 0xc], 0x43c070
mov esi, eax
mov eax, dword [0x43c070]
test eax, eax
je 0x42df80
dec eax
jmp 0x42dfa0
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], 1
push 0x43c070
call fcn.0042db00
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [ebp - 0x20]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esi + 8]
cmp dword [esi], 0
movsd xmm0, qword [0x42f810]
lea edi, [esi + 4]
movsd qword [esi], xmm0
mov dword [esi + 8], 0
je 0x42dfe0
test ecx, ecx
je 0x42dfe0
lock dec dword [ecx]
jne 0x42dfe0
call fcn.004086f0
nop word cs:[eax + eax]
nop
cmp dword [edi], 0
jne 0x42e18a
mov dword [edi], 0xffffffff
mov esi, dword [edi + 4]
test esi, esi
jne 0x42e01b
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x10], 2
sub esp, 4
push 0
call fcn.00409a10
add esp, 8
mov edi, dword [ebp - 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [edi + 4], eax
lock inc dword [esi]
jle 0x42e160
inc dword [edi]
mov dword [ebp - 0x30], esi
lock dec byte [esi + 0x18]
je 0x42e056
mov edi, dword [0x43ca74]
add esi, 0x18
test edi, edi
je 0x42e068
nop dword [eax]
push 0xffffffffffffffff
push 1
push 0x430d00
push esi
call edi
xor ecx, ecx
mov al, 1
lock cmpxchg byte [esi], cl
jne 0x42e040
mov eax, dword [ebp - 0x30]
lock dec dword [eax]
jne 0x42e0d0
mov ecx, dword [ebp - 0x30]
call fcn.004086f0
jmp 0x42e0d0
mov ecx, dword [0x43c044]
cmp ecx, 0xffffffff
jne 0x42e0b3
mov dword [ebp - 0x34], 0xffffffff
mov eax, dword [0x43c054]
push 0
push 0
push 0xc0000000
lea ecx, [ebp - 0x34]
push ecx
call eax
test eax, eax
jne 0x42e217
mov ecx, dword [ebp - 0x34]
mov eax, 0xffffffff
lock cmpxchg dword [0x43c044], ecx
je 0x42e0b3
mov edi, eax
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
mov eax, dword [0x43c05c]
push 0
push 0
push esi
push ecx
call eax
xor eax, eax
xchg byte [esi], al
mov eax, dword [ebp - 0x30]
lock dec dword [eax]
je 0x42e05e
nop dword [eax]
movzx eax, byte [ebp - 0x24]
test al, al
je 0x42dea0
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x42e0f0
lock dec dword [eax]
jne 0x42e0f0
mov ecx, dword [ebp - 0x2c]
call fcn.004086f0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edi, eax
test eax, eax
jne 0x42dcc4
jmp 0x42dcaa
mov eax, dword [ebp + 8]
cmp edi, 1
mov dword [ebp - 0x4c], 3
mov dword [ebp - 0x10], 4
sete byte [ebp - 0x48]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x28], 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 - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004118d0
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
ud2
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x4c]
push 0x4302c4
push 0x42fa84
push eax
push 0x10
push str.already_borrowedlibrary_std_srcio_stdio.rs
call fcn.0042e640
add esp, 0x14
ud2
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x4c]
push 0x4302c4
push 0x42fa84
push eax
push 0x10
push str.already_borrowedlibrary_std_srcio_stdio.rs
call fcn.0042e640
add esp, 0x14
jmp 0x42e261
mov dword [ebp - 0x10], 0xffffffff
push 4
push 0x10
call fcn.0042e3f0
add esp, 8
ud2
mov dword [ebp - 0x10], 0xffffffff
push 0x42fdbc
push 0x5e
push 0x42fd5d
call fcn.0042e470
add esp, 0xc
ud2
mov dword [ebp - 0x10], 1
push 0x42fdbc
push 0x5e
push 0x42fd5d
call fcn.0042e470
add esp, 0xc
jmp 0x42e261
mov dword [ebp - 0x10], 1
push 4
push 0x10
call fcn.0042e3f0
add esp, 8
jmp 0x42e261
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x4c], 0x430d2c
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x10], 3
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x58], fcn.0041dea0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 1
lea eax, [ebp - 0x4c]
push 0x430d60
push eax
call fcn.0042e490
add esp, 8
ud2
mov dword [ebp - 0x4c], 0x431004
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], 0x42f930
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x4c]
push dword [ebp + 0x18]
push eax
call fcn.0042e490
add esp, 8
ud2
mov dword [ebp - 0x10], 0xffffffff
push dword [ebp + 0x18]
push 0x40
push 0x430f98
call fcn.0042e570
add esp, 0xc
ud2