Function at 0x41d2a0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c834c
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4f7f44]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi], vtable.nbase::MessageLoop.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov byte [ebp - 4], 1
mov word [esi + 0x10], 0x100
lea edi, [esi + 0x14]
push 8
mov dword [edi], ebx
call fcn.004a7b89
add esp, 4
cmp eax, ebx
je 0x41d4da
mov dword [edi], eax
mov dword [eax + 4], ebx
xor ecx, ecx
mov dword [eax], ecx
mov eax, dword [edi]
mov dword [eax], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
lea eax, [esi + 0x2c]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov byte [ebp - 4], 3
lea edi, [esi + 0x44]
push 8
mov dword [edi], ebx
call fcn.004a7b89
add esp, 4
cmp eax, ebx
je 0x41d4b6
mov dword [edi], eax
mov dword [eax + 4], ebx
xor ecx, ecx
mov dword [eax], ecx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov byte [ebp - 4], 4
lea edi, [esi + 0x5c]
push 8
mov dword [edi], ebx
call fcn.004a7b89
add esp, 4
cmp eax, ebx
je 0x41d492
mov dword [edi], eax
xor edx, edx
mov dword [eax + 4], edx
xor ecx, ecx
mov dword [eax], ecx
mov edx, dword [edi]
mov dword [edx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0x98], vtable.ObserverList_class_nbase::MessageLoop::TaskObserver_.0
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xb0], vtable.ObserverList_class_nbase::MessageLoop::DestructionObserver_.0
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xc0], ebx
mov byte [ebp - 4], 8
cmp dword [esi + 4], ebx
jne 0x41d46d
push 0x18
call fcn.004a7b89
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x41d42e
push ebx
push ebx
push ebx
push ebx
mov dword [edi + 4], ebx
mov dword [edi], vtable.nbase::DefaultMessagePump.0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 8], eax
mov byte [edi + 0xc], bl
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [ebp - 0x10], edi
jmp 0x41d433
mov dword [ebp - 0x10], ebx
mov edi, ebx
cmp edi, ebx
je 0x41d443
push 1
add edi, 4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov edi, dword [esi + 0xc]
cmp edi, ebx
je 0x41d467
push 0xffffffffffffffff
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
dec eax
jne 0x41d467
cmp edi, ebx
je 0x41d467
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0xc], ecx
call fcn.0041eab0
mov edx, dword [eax]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
call fcn.004a7c91
push 0x4f0c38
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call fcn.004aa25a
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], ebx
call fcn.004a7c91
push 0x4f0c38
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], vtable.std::bad_alloc.0
call fcn.004aa25a
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], ebx
call fcn.004a7c91
push 0x4f0c38
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x2c], vtable.std::bad_alloc.0
call fcn.004aa25a
int3