Function at 0x6bccd0
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, 0x24
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x707350
mov esi, ecx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [0x919464]
test eax, eax
je 0x6bcd23
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jbe 0x6bcd39
cmp dword [eax + 4], 0
je 0x6bcd39
add eax, 8
jmp 0x6bcde5
mov ecx, 0x919464
call fcn.00721c80
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
ja 0x6bcd15
mov eax, dword [0x919464]
test eax, eax
je 0x6bcf43
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x6bcdeb
mov edi, eax
test eax, eax
jne 0x6bcdb8
movzx eax, byte [0x919aa5]
mov eax, dword [0x919820]
test eax, eax
jne 0x6bcd80
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
je 0x6bcf8a
mov dword [0x919820], eax
push 0x1c
push 0
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x6bcf8a
mov dword [eax], 0x919464
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x919464]
test eax, eax
je 0x6bcf7b
dec eax
push edi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [edi + 4], 1
lea eax, [edi + 8]
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x18], 0
mov dword [eax], 0
mov eax, dword [0x9193dc]
cmp eax, 2
jne 0x6bceee
lea eax, [0x9193e4]
push eax
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x919aac]
test eax, 0x7fffffff
jne 0x6bcef8
xor eax, eax
movzx ecx, byte [0x9193e8]
test cl, cl
jne 0x6bcf0e
mov ebx, dword [0x9193f4]
mov esi, dword [esi]
mov dword [ebp - 0x20], eax
cmp ebx, dword [0x9193f0]
mov ecx, ebx
jne 0x6bce62
lea ecx, [0x9193ec]
mov edx, ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x28], ebx
call fcn.005a6860
mov ecx, dword [0x9193f4]
mov ebx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
mov eax, dword [0x9193ec]
mov dword [eax + ecx*4], esi
inc ecx
test ebx, ebx
mov dword [0x9193f4], ecx
mov ecx, dword [eax + ebx*4]
je 0x6bce9a
nop dword [eax + eax]
lea edx, [ebx - 1]
mov esi, edx
shr esi, 1
mov edi, dword [eax + esi*4]
cmp edi, ecx
jbe 0x6bcea7
mov dword [eax + ebx*4], edi
cmp edx, 2
mov ebx, esi
jae 0x6bce80
jmp 0x6bce9c
xor esi, esi
cmp byte [ebp - 0x20], 0
mov dword [eax + esi*4], ecx
jne 0x6bcec9
jmp 0x6bceb2
mov esi, ebx
cmp byte [ebp - 0x20], 0
mov dword [eax + esi*4], ecx
jne 0x6bcec9
mov eax, dword [0x919aac]
mov dword [ebp - 0x10], 0xffffffff
test eax, 0x7fffffff
jne 0x6bcf62
lea eax, [0x9193e4]
mov dword [ebp - 0x10], 0xffffffff
push eax
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00722c10
jmp 0x6bcdf9
call fcn.00721f90
xor al, 1
movzx ecx, byte [0x9193e8]
test cl, cl
je 0x6bce27
lea ecx, [0x9193e4]
mov dword [ebp - 0x10], 0
mov edx, 0x2b
mov dword [ebp - 0x30], ecx
mov byte [ebp - 0x2c], al
lea eax, [ebp - 0x30]
mov ecx, str.called__Result::unwrap____on_an__Err__value
push 0x8ca894
push 0x8ca7f0
push eax
call fcn.0070a360
add esp, 0xc
ud2
mov ecx, 0x919464
call fcn.00721c80
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x6bcd57
jmp 0x6bcdeb
call fcn.00721f90
test al, al
jne 0x6bcec9
mov byte [0x9193e8], 1
jmp 0x6bcec9
mov ecx, 0x919464
call fcn.00721c80
jmp 0x6bcdb0
mov ecx, 4
mov edx, 0x1c
call fcn.00709d20
ud2