Function at 0x483650
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, 0x30
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x34], ecx
mov ebx, eax
test eax, eax
jne 0x483694
jmp 0x48367a
cmp byte [ebp + 0xc], 0
je 0x483917
mov ecx, dword [ebp + 8]
mov eax, ebx
mov edx, 2
lock cmpxchg dword [ecx], edx
je 0x483874
mov ebx, eax
test eax, eax
je 0x48367a
cmp ebx, 1
je 0x483670
cmp ebx, 3
je 0x4838b3
mov eax, ebx
and eax, 3
cmp eax, 2
je 0x4836ce
jmp 0x483946
mov eax, ebx
and eax, 3
cmp eax, 2
jne 0x483860
mov eax, dword [0x4d3054]
test eax, eax
je 0x48370f
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jb 0x4836ef
cmp dword [eax + 4], 0
mov edi, eax
jne 0x4837b0
mov eax, dword [0x4d3054]
test eax, eax
je 0x483729
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x483740
mov edi, eax
cmp eax, 1
jne 0x483780
jmp 0x4838fd
push 0x4d3054
call fcn.00480f80
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jae 0x4836e3
jmp 0x4836ef
push 0x4d3054
call fcn.00480f80
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
test eax, eax
jne 0x483703
mov eax, dword [0x4f92d8]
movzx eax, byte [eax]
push 4
push 0xc
call fcn.00401c10
add esp, 8
test eax, eax
je 0x48390e
mov dword [eax], 0x4d3054
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x4d3054]
test eax, eax
je 0x48381c
dec eax
push edi
push eax
call sub.kernel32.dll_TlsSetValue
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
test ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
mov dword [edi + 4], 1
mov dword [edi + 8], 0
je 0x4837b0
test eax, eax
je 0x4837b0
lock dec dword [eax]
jne 0x4837b0
lea ecx, [ebp - 0x2c]
call fcn.00442c90
nop
add edi, 8
mov esi, dword [edi]
test esi, esi
jne 0x4837d3
sub esp, 4
push 0
call fcn.00459640
add esp, 8
cmp dword [edi], 0
mov esi, eax
jne 0x4838bb
mov dword [edi], esi
lock inc dword [esi]
jle 0x4838fb
mov ecx, dword [ebp + 8]
mov eax, ebx
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x10], 0
lea edx, [ebp - 0x16]
add eax, 0xfffffffe
mov dword [ebp - 0x14], eax
mov eax, ebx
lock cmpxchg dword [ecx], edx
je 0x483835
mov ebx, eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4836c0
lock dec dword [eax]
jne 0x4836c0
lea ecx, [ebp - 0x18]
call fcn.00442c90
jmp 0x4836c0
push 0x4d3054
call fcn.00480f80
add esp, 4
jmp 0x483779
call fcn.00458e20
movzx eax, byte [ebp - 0x10]
test al, al
je 0x483830
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x483860
lock dec dword [eax]
jne 0x483860
lea ecx, [ebp - 0x18]
call fcn.00442c90
nop word cs:[eax + eax]
nop dword [eax + eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ebx, eax
test eax, eax
jne 0x483694
jmp 0x48367a
mov eax, dword [ebp + 8]
cmp ebx, 1
mov dword [ebp - 0x30], 3
sete byte [ebp - 0x2c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], 1
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 0x30]
push ecx
push dword [ebp + 0x10]
call eax
add esp, 8
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
call 0x483990
add esp, 4
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], 0x4ddd98
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 0x4ddae0
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push 0x4dddf0
push eax
call fcn.004b4af0
add esp, 8
ud2
push 0x4def08
push 0x5e
push str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
call fcn.004b48d0
push 0xc
push 4
call fcn.004a7010
mov dword [ebp - 0x30], str.Once_instance_has_previously_been_poisoned
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 0x4ddae0
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x30]
push dword [ebp + 0x18]
push eax
call fcn.004b4af0
push dword [ebp + 0x18]
push 0x40
push str.assertion_failed:_state_and_queue.addr____STATE_MASK__RUNNINGlibrary_std_src_sys_commononcequeue.rsD_N
call fcn.004b4b80
mov edi, eax
lea eax, [ebp - 0x18]
push eax
call 0x483990
add esp, 4
jmp 0x483989
push edi
call fcn.004cc500
nop
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
xchg dword [ecx], eax
mov ecx, eax
and ecx, 3
cmp ecx, 2
mov dword [ebp - 0x1c], ecx
jne 0x483ad8
add eax, 0xfffffffe
je 0x483a81
lea edi, [ebp - 0x10]
jmp 0x4839da
test ebx, ebx
mov eax, ebx
je 0x483a81
mov esi, dword [eax]
mov ebx, dword [eax + 4]
mov dword [eax], 0
test esi, esi
je 0x483a89
mov dword [ebp - 0x10], esi
mov byte [eax + 8], 1
mov cl, 1
xchg byte [esi + 0x18], cl
cmp cl, 0xff
jne 0x483a0d
mov eax, dword [0x51e134]
add esi, 0x18
test eax, eax
je 0x483a1e
push esi
call eax
mov eax, dword [ebp - 0x10]
lock dec dword [eax]
jne 0x4839d0
mov ecx, edi
call fcn.00442c90
jmp 0x4839d0
mov ecx, dword [0x4d3010]
cmp ecx, 0xffffffff
jne 0x483a66
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [0x4d3020]
push 0
push 0
push 0xc0000000
lea ecx, [ebp - 0x14]
push ecx
call eax
test eax, eax
jne 0x483a93
mov ecx, dword [ebp - 0x14]
mov eax, 0xffffffff
lock cmpxchg dword [0x4d3010], ecx
je 0x483a66
push ecx
mov dword [ebp - 0x20], eax
call sub.kernel32.dll_CloseHandle
mov ecx, dword [ebp - 0x20]
mov eax, dword [0x4d3024]
push 0
push 0
push esi
push ecx
call eax
mov eax, dword [ebp - 0x10]
lock dec dword [eax]
jne 0x4839d0
jmp 0x483a15
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4e226c
call fcn.004b48b0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x3c], 0x4e1de8
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], fcn.004c3510
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 1
lea eax, [ebp - 0x3c]
push 0x4e1e24
push eax
call fcn.004b4af0
add esp, 8
ud2
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x1c]
mov edx, 0x4e227c
push 0x4e2280
push eax
call fcn.0043e270
mov ecx, dword [ebp - 0x10]
mov esi, eax
lock dec dword [ecx]
jne 0x483b07
lea ecx, [ebp - 0x10]
call fcn.00442c90
push esi
call fcn.004cc500
nop dword [eax]
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov esi, dword [ecx + 4]
test esi, esi
je 0x483b51
nop word cs:[eax + eax]
mov edx, dword [esi + 0x18]
mov edi, dword [esi + 0x10]
mov esi, dword [esi + 0x1c]
movzx ebx, word [edx]
cmp ebx, 0x17
je 0x483b76
cmp ebx, 2
je 0x483b58
test esi, esi
jne 0x483b30
mov dword [ecx + 4], 0
mov word [eax], 2
jmp 0x483bc1
cmp edi, 0xf
mov dword [ecx + 4], esi
jbe 0x483bc9
mov ecx, dword [edx + 4]
movzx edx, word [edx + 2]
xor esi, esi
rol dx, 8
mov dword [ebp - 0x20], ecx
mov word [ebp - 0x1c], dx
jmp 0x483b98
cmp edi, 0x1b
mov dword [ecx + 4], esi
jbe 0x483bda
movzx ecx, word [edx + 2]
movups xmm0, xmmword [edx + 8]
mov edi, dword [edx + 4]
mov edx, dword [edx + 0x18]
mov si, 1
rol cx, 8
movups xmmword [ebp - 0x1e], xmm0
movzx ebx, word [ebp - 0x10]
movsd xmm0, qword [ebp - 0x20]
movsd xmm1, qword [ebp - 0x18]
mov word [eax + 0x12], bx
movsd qword [eax + 0xa], xmm1
movsd qword [eax + 2], xmm0
mov word [eax], si
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], edx
mov word [eax + 0x1c], cx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4e22f4
push 0x42
push str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
call fcn.004b4b80
push 0x4e2348
push 0x43
push 0x4e2304
call fcn.004b4b80
nop dword [eax + eax]
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax]
call sub.ws2_32.dll_freeaddrinfo
pop ebp
ret