Function at 0x4fc170
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, 0x14
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x523db0
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movzx eax, byte [0x6663c4]
test al, al
je 0x4fc341
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4fc1bc
cmp eax, 3
jne 0x4fc33a
mov ebx, dword [0x6663c8]
test ebx, ebx
je 0x4fc33a
mov dword [ebp - 0x20], 0
jmp 0x4fc1e7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4fc218
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4fc38b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x4fc1e0
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x4fc1e0
test byte [ebp - 0x20], 1
je 0x4fc33a
mov ebx, dword [0x6663c8]
test ebx, ebx
je 0x4fc33a
mov dword [ebp - 0x20], 0
jmp 0x4fc247
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4fc278
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4fc38b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x4fc240
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x4fc240
test byte [ebp - 0x20], 1
je 0x4fc33a
mov ebx, dword [0x6663c8]
test ebx, ebx
je 0x4fc33a
mov dword [ebp - 0x20], 0
jmp 0x4fc2a7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4fc2d8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4fc38b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x4fc2a0
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x4fc2a0
test byte [ebp - 0x20], 1
je 0x4fc33a
mov ebx, dword [0x6663c8]
test ebx, ebx
je 0x4fc33a
mov dword [ebp - 0x20], 0
jmp 0x4fc307
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4fc334
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4fc38b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x4fc300
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x4fc300
test byte [ebp - 0x20], 1
jne 0x4fc354
movzx eax, byte [0x65f800]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ebx, dword [0x6663c8]
jmp 0x4fc35f
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4fc33a
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4fc38b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x4fc35c
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x4fc35c
mov dword [ebp - 0x10], 0
mov ecx, str.called__Option::unwrap____on_a__None__valueC:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001fwinapi_util_0.1.6_srcwin.rs
mov edx, 0x2b
push 0x629f4c
call fcn.0059ef30
add esp, 4
ud2