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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a457d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4c8104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
mov ebx, dword [ebp + 8]
push dword [0x50b8e0]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x420e81
cmp dword [eax], esi
je 0x420e99
mov eax, dword [eax + 8]
test eax, eax
jne 0x420e76
mov esi, dword [edi + 0xc]
mov dword [ebp - 0x38], edi
cmp byte [esi + 0x400], 0
jne 0x420eb5
mov byte [esi + 0x400], 1
jmp 0x420ec2
cmp dword [eax + 4], 0
je 0x420e81
push edi
push edi
mov dword [ebp - 4], 0
call fcn.00425ab0
add esp, 8
jmp 0x421018
push 0x48
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov esi, eax
mov dword [ebp - 4], 1
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], fcn.00421c70
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
mov eax, dword [edi + 0xc]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov eax, dword [edi + 0x14]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x18]
mov dword [esi + 0x38], eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x40], eax
mov eax, dword [edi + 0x24]
mov dword [esi + 0x44], eax
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + 8]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edi, dword [ebp - 0x28]
mov ecx, edi
push esi
push ebx
call fcn.0042abe0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
test al, al
je 0x421010
mov eax, dword [ebx]
xorps xmm0, xmm0
push dword [0x50b8e0]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push dword [0x50b8e0]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx]
mov dword [ebp - 0x28], eax
push 0x50b818
push 0x435e10
push 0x50b820
mov byte [ebp - 4], 3
call fcn.00475b00
add esp, 0xc
test eax, eax
je 0x421036
push 0
lea eax, [ebp - 0x24]
push eax
push esi
push dword [edi + 0x14]
call fcn.00421c70
add esp, 0x10
lea ecx, [ebp - 0x2c]
call fcn.0042ab70
push dword [ebp - 0x14]
push dword [0x50b8e0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea ecx, [ebp - 0x38]
call fcn.00422300
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049f3c4
mov esp, ebp
pop ebp
ret 8
call sub.msvcrt.dll_void___cdecl_terminate_void_
int3