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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1c
call fcn.005dfa60
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], edx
push 0
push 0x100
xor ecx, ecx
mov dword [esp + 0x20], edi
call fcn.004929a0
add esp, 8
test eax, eax
je 0x4c3241
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
call eax
push dword [0x6af0e8]
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0x14], eax
call eax
mov ebx, eax
mov eax, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
mov dword [esp + 0x18], eax
call eax
test ebx, ebx
jne 0x4c32e6
push ebx
push ebx
xor ecx, ecx
call fcn.004929a0
add esp, 8
test eax, eax
je 0x4c3241
call dword [esp + 0xc]
push dword [0x6a82c0]
mov esi, eax
call dword [esp + 0x14]
push esi
mov edi, eax
call dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test edi, edi
jne 0x4c324a
push 0xc
mov dword [0x6a7ea4], ebx
call fcn.005ee808
mov edi, eax
add esp, 4
test edi, edi
je 0x4c3241
xorps xmm0, xmm0
movq qword [edi], xmm0
push edi
mov dword [edi + 8], ebx
push dword [0x6a82c0]
call esi
test eax, eax
jne 0x4c324a
push edi
call fcn.005e4cbe
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10
mov dword [edi], 1
mov dword [0x6a7ea4], 0
call fcn.005ee808
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4c3293
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.00489de0
add esp, 0xc
push ebx
call fcn.005e4cbe
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 0x4c32ae
mov dword [ebx + 4], eax
mov eax, dword fs:[0x10]
mov dword [ebx], eax
jmp 0x4c32b5
mov dword [ebx + 4], 1
push ebx
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push dword [0x6af0e8]
call esi
test eax, eax
jne 0x4c32e2
push ebx
call fcn.005e4cbe
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x18]
mov eax, dword [edi]
test eax, eax
je 0x4c32ef
mov dword [ebx + 8], eax
mov ecx, dword [sym.imp.KERNEL32.dll_SwitchToFiber]
mov eax, dword [sym.imp.KERNEL32.dll_CreateFiber]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov edx, dword [ebx + 8]
test edx, edx
je 0x4c3336
mov eax, dword [edx + 0x14]
cmp eax, 3
je 0x4c34fa
cmp eax, 1
je 0x4c34db
cmp eax, 2
jne 0x4c345f
mov eax, dword [edi]
mov dword [ebx + 8], eax
push dword [eax]
call ecx
mov ecx, dword [esp + 0x1c]
jmp 0x4c3302
call dword [esp + 0xc]
push dword [0x6af0ec]
mov esi, eax
call dword [esp + 0x14]
push esi
mov edi, eax
call dword [esp + 0x18]
test edi, edi
jne 0x4c3375
call fcn.004c3690
test eax, eax
je 0x4c3626
call dword [esp + 0xc]
push dword [0x6af0ec]
mov esi, eax
call dword [esp + 0x14]
push esi
mov edi, eax
call dword [esp + 0x18]
mov ecx, dword [edi]
test ecx, ecx
je 0x4c3391
mov edx, dword [ecx]
test edx, edx
je 0x4c3391
mov eax, dword [ecx + 4]
mov esi, dword [eax + edx*4 - 4]
lea eax, [edx - 1]
mov dword [ecx], eax
test esi, esi
jne 0x4c33eb
mov eax, dword [edi + 8]
test eax, eax
je 0x4c33a1
cmp dword [edi + 4], eax
jae 0x4c3626
push 0x1c
mov dword [0x6a7ea4], 0
call fcn.005ee808
mov esi, eax
add esp, 4
test esi, esi
je 0x4c360d
push 0
xorps xmm0, xmm0
movups xmmword [esi], xmm0
push 0x4fa870
movq qword [esi + 0x10], xmm0
push 0
mov dword [esi + 0x18], 0
call dword [esp + 0x2c]
mov dword [esi], eax
test eax, eax
je 0x4c35de
inc dword [edi + 4]
mov edi, dword [ebp + 0x10]
lea eax, [ebx + 8]
mov ecx, esi
mov dword [eax], ecx
test edi, edi
je 0x4c342f
push 0x14
mov dword [0x6a7ea4], 0
call fcn.005ee808
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 0x4c356c
movups xmm0, xmmword [edi]
mov eax, dword [edi + 0x10]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], eax
jmp 0x4c3436
mov dword [esi + 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 + 0x24]
mov dword [eax + 0x18], ecx
mov eax, dword [ebx + 8]
push dword [eax]
call dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
jmp 0x4c3302
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.00489de0
mov eax, dword [ebx + 8]
add esp, 0xc
mov dword [esp + 0x24], eax
call dword [esp + 0xc]
push dword [0x6af0ec]
mov esi, eax
call dword [esp + 0x14]
push esi
mov edi, eax
call dword [esp + 0x18]
mov esi, dword [esp + 0x24]
push dword [esi + 0xc]
call fcn.005e4cbe
mov dword [esi + 0xc], 0
add esp, 4
mov ecx, dword [edi]
test ecx, ecx
je 0x4c34c1
push dword [ecx]
mov edx, esi
call fcn.00479b50
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [ebx + 8], 0
mov dword [eax], 0
xor eax, eax
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 + 0x24], eax
call dword [esp + 0xc]
push dword [0x6af0ec]
mov esi, eax
call dword [esp + 0x14]
push esi
mov edi, eax
call dword [esp + 0x18]
mov esi, dword [esp + 0x24]
push dword [esi + 0xc]
call fcn.005e4cbe
mov dword [esi + 0xc], 0
add esp, 4
mov ecx, dword [edi]
test ecx, ecx
je 0x4c354f
push dword [ecx]
mov edx, esi
call fcn.00479b50
add esp, 4
mov eax, dword [esp + 0x18]
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.00489de0
mov eax, dword [ebx + 8]
add esp, 0xc
mov dword [esp + 0x24], eax
call dword [esp + 0xc]
push dword [0x6af0ec]
mov esi, eax
call dword [esp + 0x14]
push esi
mov edi, eax
call dword [esp + 0x18]
mov esi, dword [esp + 0x24]
push dword [esi + 0xc]
call fcn.005e4cbe
mov dword [esi + 0xc], 0
add esp, 4
mov ecx, dword [edi]
test ecx, ecx
je 0x4c35ce
push dword [ecx]
mov edx, esi
call fcn.00479b50
add esp, 4
mov dword [ebx + 8], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0xc]
call fcn.005e4cbe
add esp, 4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFiber]
push esi
call fcn.005e4cbe
add esp, 4
mov dword [ebx + 8], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 0x66
push 0x54
push str.C:mediagetdependencies_installeropenssl1_1_win_build_1.1.1qcrypto_async_async.c
push 0x41
lea ecx, [edx - 0x33]
call fcn.00489de0
add esp, 0xc
pop edi
pop esi
mov dword [ebx + 8], 0
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret