Function at 0x4697a0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov edi, dword [ebp + 8]
mov eax, dword [0x511014]
xor eax, ebp
mov dword [esp + 0x28], eax
test edi, edi
je 0x469a32
mov ecx, 0x308
add ecx, dword [edi + 0xc]
mov byte [esp + 0xf], 0xff
movzx eax, byte [edi + 2]
push eax
mov dword [esp + 4], ecx
push ecx
call fcn.004855b0
add esp, 8
movzx ebx, ax
shl ebx, 5
lea eax, [edi + ebx]
add eax, 0x48
mov dword [esp + 4], eax
lea esi, [edi + 0x40]
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x4699f0
mov dword [esp + 8], esi
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
mov esi, dword [eax]
test esi, esi
je 0x4699a0
mov byte [esp + 0xf], 0
mov ecx, dword [esi]
test ecx, ecx
je 0x469999
add ebx, edi
mov ebx, dword [ebx + 0x54]
bswap ecx
mov edx, ecx
xor edx, esi
cmp edx, 0x1fffff
ja 0x469a06
mov edx, ecx
and edx, 0x1fc000
je 0x469a06
prefetcht0 byte [ecx]
mov dword [eax], ecx
mov ecx, dword [eax + 0xc]
lea edx, [ecx + 2]
and edx, 0x3ffe
and ecx, 0xffffc001
or ecx, edx
mov dword [eax + 0xc], ecx
mov eax, dword [eax + 8]
mov ecx, dword [edi + 0x117c]
add ecx, dword [eax + 0xc]
mov eax, dword [edi + 0x1180]
mov dword [edi + 0x117c], ecx
cmp eax, ecx
cmova ecx, eax
mov dword [edi + 0x1180], ecx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xor ebx, ebx
mov dword [esi], ebx
mov byte [esi + 4], 0
lea eax, [esi + 0x78]
push 0x280
push ebx
push eax
call fcn.00498980
add esp, 0xc
mov dword [esi + 0x2f8], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x2fc], eax
mov dword [esi + 0x300], ebx
mov dword [esi + 0x304], ebx
push 0x513bb0
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x469a35
mov dword [esi + 0x304], 0
mov eax, dword [0x513bb4]
mov dword [0x513bb4], esi
mov dword [esi + 0x300], eax
test eax, eax
je 0x469904
mov dword [eax + 0x304], esi
push 0x513bb0
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xorps xmm0, xmm0
movups xmmword [esi + 0x48], xmm0
movups xmmword [esi + 0x38], xmm0
movups xmmword [esi + 0x28], xmm0
movups xmmword [esi + 0x18], xmm0
movups xmmword [esi + 8], xmm0
add edi, 0x48
mov eax, 0xf
nop
mov dword [esi + eax*8], 0
mov byte [esi + eax*8 + 4], 0
movzx ecx, byte [eax + 0x521155]
mov byte [esi + eax*8 + 5], cl
movzx ecx, word [edi + 0xc]
mov word [esi + eax*8 + 6], cx
cmp dword [edi], 0
je 0x4699fc
inc eax
add edi, 0x20
cmp eax, 0x5f
jne 0x469930
push esi
push dword [0x521160]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x514f00]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov dword [eax + 0x90], esi
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.00496ce3
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor ecx, ecx
jmp 0x46984e
lea eax, [esp + 0xf]
push eax
push 0x4000
push dword [esp + 8]
push 2
push edi
call fcn.0045a290
test eax, eax
je 0x469a44
mov esi, eax
mov ecx, eax
and ecx, 0xffe00000
mov edx, eax
shr edx, 9
and edx, 0xfe0
lea eax, [edx + ecx]
movzx ecx, byte [edx + ecx + 0x101e]
and ecx, 0x3f
shl ecx, 5
sub eax, ecx
add eax, 0x1000
jmp 0x469867
mov ecx, esi
call fcn.0045a230
jmp 0x469803
mov byte [esi + eax*8 + 5], 0
jmp 0x469959
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x10]
movdqa xmmword [edi], xmm0
mov ecx, edi
push 0
push dword [esi]
push str.first
call fcn.004d81d0
push edi
call fcn.004054a0
add esp, 4
mov ecx, ebx
call fcn.004d84e0
int3
mov ecx, 0x513bb0
call fcn.0045a230
jmp 0x4698df
xor esi, esi
jmp 0x46988a