Function at 0x4cb8b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0xc
call fcn.00627fd0
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edx
push 0
push 0x100
xor ecx, ecx
mov dword [esp + 0x1c], edi
call fcn.00493940
add esp, 8
test eax, eax
je 0x4cb9be
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x71514c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jne 0x4cb9c7
push ebx
push ebx
xor ecx, ecx
call fcn.00493940
add esp, 8
test eax, eax
je 0x4cb9be
lea ecx, [ebx + 1]
call fcn.00492bb0
test eax, eax
je 0x4cb9be
push 0x10
mov dword [eax], 1
mov dword [0x70c31c], ebx
call fcn.006321ad
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4cb974
push 0x2a
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_async_async.c
push 0x41
lea edx, [eax + 0x64]
lea ecx, [eax + 0x33]
call fcn.004818c0
add esp, 0xc
push ebx
call fcn.0062eaa7
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.KERNEL32.dll_ConvertThreadToFiber]
mov dword [ebx], eax
test eax, eax
jne 0x4cb98f
mov dword [ebx + 4], eax
mov eax, dword fs:[0x10]
mov dword [ebx], eax
jmp 0x4cb996
mov dword [ebx + 4], 1
push ebx
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push dword [0x71514c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x4cb9c7
push ebx
call fcn.0062eaa7
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
test eax, eax
je 0x4cb9d0
mov dword [ebx + 8], eax
mov esi, dword [ebp + 0x10]
mov edx, dword [ebx + 8]
test edx, edx
je 0x4cba07
mov eax, dword [edx + 0x14]
cmp eax, 3
je 0x4cbad4
cmp eax, 1
je 0x4cbab5
cmp eax, 2
jne 0x4cba7b
mov eax, dword [edi]
mov dword [ebx + 8], eax
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SwitchToFiber]
jmp 0x4cb9d3
call fcn.004cb5e0
mov dword [ebx + 8], eax
test eax, eax
je 0x4cbb80
test esi, esi
je 0x4cba51
push 0x14
mov dword [0x70c31c], 0
call fcn.006321ad
mov ecx, dword [ebx + 8]
add esp, 4
mov dword [ecx + 0xc], eax
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4cbb4c
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x10]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], eax
jmp 0x4cba58
mov dword [eax + 0xc], 0
mov eax, dword [ebx + 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 8], ecx
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x18], ecx
mov eax, dword [ebx + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SwitchToFiber]
jmp 0x4cb9d3
mov edx, 0x69
push 0xd7
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_async_async.c
push 0x44
lea ecx, [edx - 0x36]
call fcn.004818c0
mov ecx, dword [ebx + 8]
add esp, 0xc
call fcn.004cb810
mov dword [ebx + 8], 0
xor eax, eax
mov dword [edi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi], edx
mov eax, dword [ebx + 8]
mov dword [eax + 0x14], 2
mov eax, 2
mov dword [ebx + 8], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x10]
mov dword [edx + 0x18], 0
mov dword [eax], ecx
mov eax, dword [ebx + 8]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x715150]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [esp + 0x10]
push dword [esi + 0xc]
call fcn.0062eaa7
mov dword [esi + 0xc], 0
add esp, 4
mov ecx, dword [edi]
test ecx, ecx
je 0x4cbb2f
push dword [ecx]
mov edx, esi
call fcn.00471ea0
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [ebx + 8], 0
mov dword [eax], 0
mov eax, 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 0x69
push 0xe5
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_async_async.c
push 0x41
lea ecx, [edx - 0x36]
call fcn.004818c0
mov ecx, dword [ebx + 8]
add esp, 0xc
call fcn.004cb810
mov dword [ebx + 8], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret