Function at 0x7d13a0
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], 0x75f350
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x20], ecx
mov eax, dword fs:[0]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ecx]
jmp 0x7d13e5
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov edx, 2
jmp 0x7d13ff
mov ecx, dword [ebp - 0x20]
mov eax, esi
lock cmpxchg dword [ecx], edx
je 0x7d1665
mov esi, eax
test eax, eax
je 0x7d13f0
cmp esi, 1
jne 0x7d1420
cmp byte [ebp - 0x4c], 0
jne 0x7d13f0
jmp 0x7d173b
cmp esi, 3
je 0x7d169c
mov eax, esi
and eax, 3
cmp eax, 2
je 0x7d144a
jmp 0x7d1770
mov eax, esi
and eax, 3
cmp eax, 2
jne 0x7d13e0
mov eax, dword [0x94b95c]
test eax, eax
je 0x7d1470
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x7d1490
cmp dword [eax + 4], 0
mov edi, eax
je 0x7d1490
add edi, 8
jmp 0x7d1540
mov ecx, 0x94b95c
mov dword [ebp - 0x10], 0xffffffff
call fcn.007d1810
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x7d1460
nop dword [eax]
mov eax, dword [0x94b95c]
test eax, eax
je 0x7d14b1
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x7d14d0
mov ebx, eax
cmp eax, 1
jne 0x7d1510
jmp 0x7d1720
mov ecx, 0x94b95c
mov dword [ebp - 0x10], 0xffffffff
call fcn.007d1810
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
jne 0x7d14a5
nop dword [eax]
movzx eax, byte [0x94bfc5]
xor ecx, ecx
mov edx, 0xc
call fcn.0071ee80
test eax, eax
je 0x7d170a
mov dword [eax], 0x94b95c
mov dword [eax + 4], 0
mov ebx, eax
mov eax, dword [0x94b95c]
test eax, eax
je 0x7d160b
dec eax
push ebx
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, dword [ebx + 8]
cmp dword [ebx + 4], 0
lea edi, [ebx + 8]
mov dword [ebx + 4], 1
mov dword [ebx + 8], 0
je 0x7d1540
test ecx, ecx
je 0x7d1540
lock dec dword [ecx]
jne 0x7d1540
call fcn.004c23a0
nop dword [eax + eax]
mov edx, dword [edi]
test edx, edx
jne 0x7d15c2
movzx eax, byte [0x94bfc5]
xor ecx, ecx
mov edx, 0x20
call fcn.0071ee80
test eax, eax
je 0x7d16bb
mov dword [eax], 1
mov dword [eax + 4], 1
mov dword [ebp - 0x24], eax
mov dword [eax + 0x10], 0
movq xmm0, qword [0x94bf10]
movd eax, xmm0
pshufd xmm0, xmm0, 0x55
movd edx, xmm0
nop dword [eax]
mov ebx, eax
mov ecx, edx
add ebx, 1
adc ecx, 0
jb 0x7d16ad
lock cmpxchg8b qword [0x94bf10]
jne 0x7d1590
mov edx, dword [ebp - 0x24]
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ecx
mov byte [edx + 0x18], 0
cmp dword [edi], 0
jne 0x7d16d1
mov dword [edi], edx
lock inc dword [edx]
jle 0x7d1708
mov ecx, dword [ebp - 0x20]
mov eax, esi
mov dword [ebp - 0x30], edx
mov byte [ebp - 0x28], 0
lea edx, [ebp - 0x2e]
add eax, 0xfffffffe
mov dword [ebp - 0x2c], eax
mov eax, esi
lock cmpxchg dword [ecx], edx
je 0x7d163c
mov esi, eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x7d1440
lock dec dword [eax]
jne 0x7d1440
mov ecx, dword [ebp - 0x30]
call fcn.004c23a0
jmp 0x7d1440
mov ecx, 0x94b95c
mov dword [ebp - 0x10], 0xffffffff
call fcn.007d1810
jmp 0x7d1508
mov dword [ebp - 0x10], 3
call fcn.0070ea10
movzx eax, byte [ebp - 0x28]
test al, al
je 0x7d1630
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x7d13e0
lock dec dword [eax]
jne 0x7d13e0
mov ecx, dword [ebp - 0x30]
call fcn.004c23a0
jmp 0x7d13e0
lea eax, [ebp - 0x48]
cmp esi, 1
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x10], 0
sete byte [ebp - 0x44]
push eax
push dword [ebp + 8]
mov eax, dword [ebp + 0xc]
call dword [eax + 0x10]
add esp, 8
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x10], 0xffffffff
call fcn.0070e870
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 1
call fcn.007d1a50
jmp 0x7d1708
mov ecx, 8
mov edx, 0x20
mov dword [ebp - 0x10], 0xffffffff
call fcn.007c1490
lea ecx, [ebp - 0x48]
mov edx, 0x9335f8
mov dword [ebp - 0x48], 0x9335a0
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x40], 0x93d1f8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x10], 2
call fcn.007c1b50
ud2
mov ecx, 4
mov edx, 0xc
mov dword [ebp - 0x10], 0xffffffff
call fcn.007c1490
mov dword [ebp - 0x10], 0xffffffff
mov ecx, 0x9339b4
mov edx, 0x5e
push 0x933a14
call fcn.007c2000
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], 0x9356e4
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x40], 0x93d1f8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x10], 0xffffffff
call fcn.007c1b50
mov dword [ebp - 0x10], 0xffffffff
mov ecx, str.assertion_failed:_state_and_queue.addr____STATE_MASK__RUNNINGlibrary_std_src_sys_commononcequeue.rs_W
mov edx, 0x40
push dword [ebp + 0x10]
call fcn.007c1ca0
nop dword [eax]
push ebp
sub esp, 8
add ebp, 0xc
mov ecx, dword [ebp - 0x24]
lock dec dword [ecx]
jne 0x7d17a4
call fcn.006ed620
add esp, 8
pop ebp
ret