Function at 0x5dd6b0
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, 0x44
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
jmp 0x5dd6d5
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov edx, 2
jmp 0x5dd6ef
mov ecx, dword [ebp - 0x10]
mov eax, edi
lock cmpxchg dword [ecx], edx
je 0x5ddb4c
mov edi, eax
test eax, eax
je 0x5dd6e0
cmp edi, 1
jne 0x5dd710
cmp byte [ebp - 0x40], 0
jne 0x5dd6e0
jmp 0x5ddcec
cmp edi, 3
je 0x5ddb88
mov eax, edi
and eax, 3
cmp eax, 2
je 0x5dd73a
jmp 0x5ddd05
mov eax, edi
and eax, 3
cmp eax, 2
jne 0x5dd6d0
mov eax, dword [0x6050f0]
test eax, eax
je 0x5dd750
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x5dd765
jmp 0x5dd780
mov ecx, 0x6050f0
call fcn.005dcc80
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x5dd780
cmp dword [eax], 1
mov ebx, eax
jne 0x5dd780
add ebx, 4
jmp 0x5dd840
mov eax, dword [0x6050f0]
test eax, eax
je 0x5dd7a0
push eax
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x5dd7b4
mov esi, eax
cmp eax, 1
jne 0x5dd80a
jmp 0x5ddbc3
mov ecx, 0x6050f0
call fcn.005dcc80
push eax
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
jne 0x5dd793
mov eax, dword [0x6f1130]
test eax, eax
jne 0x5dd7cf
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x5ddc4f
mov dword [0x6f1130], eax
push 0x10
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x5ddc4f
mov dword [eax], 0
mov dword [eax + 0xc], 0x6050f0
mov esi, eax
mov eax, dword [0x6050f0]
test eax, eax
jne 0x5dd803
mov ecx, 0x6050f0
call fcn.005dcc80
push esi
push eax
call sub.KERNEL32.dll_TlsSetValue
mov ecx, dword [esi + 8]
cmp dword [esi], 0
lea ebx, [esi + 4]
mov dword [esi], 1
mov dword [esi + 4], 0
mov dword [esi + 8], 0
je 0x5dd840
test ecx, ecx
je 0x5dd840
lock dec dword [ecx]
jne 0x5dd840
call fcn.004023c0
nop word [eax + eax]
cmp dword [ebx], 0
jne 0x5ddbdc
mov dword [ebx], 0xffffffff
mov esi, dword [ebx + 4]
test esi, esi
jne 0x5dd916
mov dword [ebp - 0x14], edi
push 0x6f1090
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov edi, dword [0x6050c8]
mov edx, dword [0x6050cc]
mov eax, edi
and eax, edx
cmp eax, 0xffffffff
je 0x5ddc13
mov eax, edi
mov ecx, edx
add eax, 1
mov dword [0x6050c8], eax
mov eax, edi
adc ecx, 0
or eax, edx
mov dword [0x6050cc], ecx
je 0x5ddc36
mov dword [ebp - 0x44], edx
push 0x6f1090
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
mov eax, dword [0x6f1130]
test eax, eax
jne 0x5dd8c7
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x5ddc02
mov dword [0x6f1130], eax
push 0x20
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x5ddc02
mov esi, eax
mov dword [eax + 8], edi
mov eax, dword [ebp - 0x44]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
mov byte [esi + 0x18], 0
mov dword [esi], 1
mov dword [esi + 4], 1
mov eax, dword [ebx + 4]
test eax, eax
je 0x5dd910
lock dec dword [eax]
jne 0x5dd910
mov ecx, dword [ebx + 4]
call fcn.004023c0
mov edi, dword [ebp - 0x14]
mov dword [ebx + 4], esi
lock inc dword [esi]
jle 0x5ddbfe
inc dword [ebx]
test esi, esi
je 0x5ddbc3
mov ecx, dword [ebp - 0x10]
mov eax, edi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x1e]
and eax, 0xfffffffc
mov dword [ebp - 0x1c], eax
mov eax, edi
lock cmpxchg dword [ecx], edx
je 0x5ddb20
mov edi, eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5dd730
lock dec dword [eax]
jne 0x5dd730
mov ecx, dword [ebp - 0x20]
call fcn.004023c0
jmp 0x5dd730
call fcn.005bfac0
test eax, eax
je 0x5ddbc3
cmp dword [eax], 0
mov ebx, eax
jne 0x5ddbdc
mov dword [ebx], 0xffffffff
mov edi, dword [ebx + 4]
test edi, edi
jne 0x5dda4f
push 0x6f1090
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov esi, dword [0x6050c8]
mov edx, dword [0x6050cc]
mov eax, esi
and eax, edx
cmp eax, 0xffffffff
je 0x5ddc13
mov eax, esi
mov ecx, edx
add eax, 1
mov dword [0x6050c8], eax
mov eax, esi
adc ecx, 0
or eax, edx
mov dword [0x6050cc], ecx
je 0x5ddc36
mov dword [ebp - 0x14], edx
push 0x6f1090
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
mov eax, dword [0x6f1130]
test eax, eax
jne 0x5dda03
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x5ddc02
mov dword [0x6f1130], eax
push 0x20
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x5ddc02
mov edi, eax
mov dword [eax + 8], esi
mov eax, dword [ebp - 0x14]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov byte [edi + 0x18], 0
mov dword [edi], 1
mov dword [edi + 4], 1
mov eax, dword [ebx + 4]
test eax, eax
je 0x5dda4c
lock dec dword [eax]
jne 0x5dda4c
mov ecx, dword [ebx + 4]
call fcn.004023c0
mov dword [ebx + 4], edi
lock inc dword [edi]
jle 0x5ddbfe
inc dword [ebx]
test edi, edi
je 0x5ddbc3
lock dec byte [edi + 0x18]
je 0x5dda96
mov esi, dword [0x6f1158]
lea ebx, [edi + 0x18]
test esi, esi
je 0x5ddaa8
nop word cs:[eax + eax]
nop
push 0xffffffffffffffff
push 1
push 0x6d3794
push ebx
call esi
xor ecx, ecx
mov al, 1
lock cmpxchg byte [ebx], cl
jne 0x5dda80
lock dec dword [edi]
jne 0x5ddb20
mov ecx, edi
call fcn.004023c0
jmp 0x5ddb20
mov ecx, dword [0x6050ec]
cmp ecx, 0xffffffff
jne 0x5ddafb
mov ecx, dword [0x6f1160]
mov dword [ebp - 0x24], 0xffffffff
test ecx, ecx
je 0x5ddc92
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x24]
push eax
call ecx
test eax, eax
jne 0x5ddcab
mov ecx, dword [ebp - 0x24]
mov eax, 0xffffffff
lock cmpxchg dword [0x6050ec], ecx
je 0x5ddafb
mov esi, eax
push ecx
call sub.KERNEL32.dll_CloseHandle
mov ecx, esi
mov edx, dword [0x6f1168]
test edx, edx
je 0x5ddc60
push 0
push 0
push ebx
push ecx
call edx
xor eax, eax
xchg byte [ebx], al
lock dec dword [edi]
je 0x5dda9f
nop word [eax + eax]
mov al, byte [ebp - 0x18]
test al, al
je 0x5dd970
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5dd6d0
lock dec dword [eax]
jne 0x5dd6d0
mov ecx, dword [ebp - 0x20]
call fcn.004023c0
jmp 0x5dd6d0
cmp edi, 1
lea esi, [ebp - 0x3c]
sete byte [ebp - 0x38]
mov dword [ebp - 0x3c], 3
push esi
push dword [ebp + 8]
mov eax, dword [ebp + 0xc]
call dword [eax + 0x10]
add esp, 8
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x10]
xchg dword [ecx], eax
mov ecx, eax
and ecx, 3
cmp ecx, 2
mov dword [ebp - 0x20], ecx
jne 0x5ddd1e
and eax, 0xfffffffc
jne 0x5ddb96
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
test edi, edi
mov eax, edi
je 0x5ddb88
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov dword [eax], 0
test esi, esi
je 0x5ddc79
lea ecx, [esi + 0x18]
mov byte [eax + 8], 1
call fcn.005ddd40
lock dec dword [esi]
jne 0x5ddb90
mov ecx, esi
call fcn.004023c0
jmp 0x5ddb90
mov ecx, str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyedlibrary_std_src_threadmod.rs
mov edx, 0x5e
push 0x6d4250
call fcn.0045d290
add esp, 4
ud2
lea eax, [ebp - 0x3c]
mov ecx, str.already_borrowed_
mov edx, 0x10
push 0x6d5094
push 0x6d3868
push eax
call fcn.0045d480
add esp, 0xc
ud2
ud2
mov ecx, 0x20
mov edx, 8
call fcn.0040a640
ud2
push 0x6f1090
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
mov ecx, str.failed_to_generate_unique_thread_ID:_bitspace_exhausted
mov edx, 0x37
push 0x6d4298
call fcn.005bfcd0
add esp, 4
ud2
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_532d2b14c05f9bc20b2d27cbb5f4550d28343a36librarycore_src_strpattern.rs
mov edx, 0x2b
push 0x6d42a8
call fcn.0045aec0
add esp, 4
ud2
mov ecx, 0x10
mov edx, 4
call fcn.0040a640
ud2
mov ecx, str.keyed_events_not_availablelibrary_std_src_syswindowsc.rs
mov edx, 0x1a
push 0x6d5f48
call fcn.005bfcd0
add esp, 4
ud2
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_532d2b14c05f9bc20b2d27cbb5f4550d28343a36librarycore_src_strpattern.rs
mov edx, 0x2b
push 0x6d4eb8
call fcn.0045aec0
add esp, 4
ud2
mov ecx, str.keyed_events_not_availablelibrary_std_src_syswindowsc.rs
mov edx, 0x1a
push 0x6d5f00
call fcn.005bfcd0
add esp, 4
ud2
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 0x6d5d20
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x3c]
mov edx, 0x6d5d54
mov dword [ebp - 0x4c], 0x4648b0
mov dword [ebp - 0x28], 1
call fcn.0045a2c0
ud2
mov ecx, str.Once_instance_has_previously_been_poisoned
mov edx, 0x2a
push 0x6d4e94
call fcn.005bfcd0
add esp, 4
ud2
mov ecx, str.assertion_failed:_state_and_queue__STATE_MASK__RUNNING
mov edx, 0x39
push 0x6d4e58
call fcn.0045aec0
add esp, 4
ud2
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x20]
mov edx, 0x6d4ea4
push 0x6d4ea8
push esi
call fcn.005dcbd0
add esp, 8
ud2