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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460632
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x47c008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov dword [esi], vtable.nbase::MessageLoop.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov byte [ebp - 4], 1
lea edi, [esi + 0x18]
mov word [esi + 0x14], 0x100
push 8
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
call fcn.0044d73a
add esp, 4
test eax, eax
jne 0x404668
call fcn.0044d612
mov dword [edi], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [edi]
mov dword [eax], edi
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], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
call fcn.0044d73a
add esp, 4
test eax, eax
jne 0x4046c6
call fcn.0044d612
mov dword [edi], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [edi]
mov dword [eax], edi
mov byte [ebp - 4], 4
lea edi, [esi + 0x58]
push 8
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
call fcn.0044d73a
add esp, 4
test eax, eax
jne 0x404715
call fcn.0044d612
mov dword [edi], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [edi]
mov dword [eax], edi
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x88], vtable.ObserverList_class_nbase::MessageLoop::TaskObserver_.0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0x9c], vtable.ObserverList_class_nbase::MessageLoop::DestructionObserver_.0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xac], 0
mov dword [esi + 0xb0], 0
mov dword [esi + 0xb4], 0
mov byte [ebp - 4], 9
cmp dword [esi + 4], 0
jne 0x404820
push 0x18
call fcn.0044d73a
mov edi, eax
add esp, 4
test edi, edi
je 0x404815
push 0
push 0
push 0
push 0
mov dword [edi], vtable.nbase::DefaultMessagePump.0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 4], eax
mov byte [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
jmp 0x404817
xor edi, edi
push edi
lea ecx, [esi + 0xc]
call fcn.004068b0
call fcn.00406080
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x28
call fcn.0044d73a
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
test edi, edi
je 0x40487a
mov dword [edi + 4], 0
mov dword [edi + 8], 0
lea eax, [edi + 0xc]
mov dword [edi], vtable.nbase::MessageLoopProxy.0
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov byte [ebp - 4], 0xc
call fcn.00406080
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [edi + 0x24], eax
jmp 0x40487c
xor edi, edi
push ecx
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x18]
push edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.00406bd0
mov edi, dword [esi + 0xb4]
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xb4], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0xb0], eax
test edi, edi
je 0x4048d9
or ebx, 0xffffffff
lea ecx, [edi + 4]
mov eax, ebx
lock xadd dword [ecx], eax
jne 0x4048d9
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lea eax, [edi + 8]
lock xadd dword [eax], ebx
dec ebx
jne 0x4048d9
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [esi + 0xb0]
mov dword [eax + 0x24], esi
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