Function at 0x446730
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c480e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x64306c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [edi], vtable.nbase::MessageLoop.0
xor ebx, ebx
mov ecx, edi
call fcn.00446ab0
cmp dword [edi + 0x54], 0
jne 0x446796
lea esi, [edi + 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x28], 0
lea eax, [edi + 0x18]
je 0x44678b
push eax
lea ecx, [edi + 0x44]
call fcn.004462d0
test esi, esi
je 0x446796
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, edi
call fcn.00446ab0
test al, al
je 0x4467a7
inc ebx
cmp ebx, 0x64
jl 0x446762
mov ecx, edi
call fcn.004477a0
mov ecx, dword [edi + 0xb0]
mov eax, dword [ecx]
call dword [eax + 0x18]
lea eax, [edi + 0xb4]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
call fcn.0042dc00
mov ecx, dword [ebp - 0x18]
add esp, 8
mov eax, dword [edi + 0xb0]
mov dword [ebp - 0x18], eax
mov dword [edi + 0xb0], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4467ff
call fcn.004353c0
mov dword [ebp - 4], 0xffffffff
call fcn.00447bc0
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 2
mov ecx, dword [edi + 0xb4]
test ecx, ecx
je 0x44682b
call fcn.004353c0
lea esi, [edi + 0xa4]
mov dword [ebp - 4], 3
cmp dword [esi], 0
je 0x44686e
mov ecx, esi
call fcn.00423430
mov ecx, dword [esi]
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
push 4
push eax
push ecx
call fcn.00426000
mov dword [esi], 0
add esp, 0xc
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea esi, [edi + 0x90]
mov dword [ebp - 4], 4
cmp dword [esi], 0
je 0x4468b1
mov ecx, esi
call fcn.00423430
mov ecx, dword [esi]
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
push 4
push eax
push ecx
call fcn.00426000
mov dword [esi], 0
add esp, 0xc
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea ecx, [edi + 0x6c]
mov dword [ebp - 4], 5
call fcn.00447e70
lea ecx, [edi + 0x58]
mov dword [ebp - 4], 6
call fcn.00448000
lea ecx, [edi + 0x58]
mov byte [ebp - 4], 7
call fcn.00423430
push dword [edi + 0x58]
lea ecx, [ebp - 0xd]
call fcn.00425cd0
push 1
push dword [edi + 0x58]
lea ecx, [ebp - 0xd]
call fcn.00424830
push eax
lea ecx, [ebp - 0xd]
call fcn.00433b30
lea ecx, [edi + 0x58]
mov dword [edi + 0x58], 0
call fcn.00433ad0
lea ecx, [edi + 0x44]
mov dword [ebp - 4], 8
call fcn.00448000
lea ecx, [edi + 0x44]
mov byte [ebp - 4], 9
call fcn.00423430
push dword [edi + 0x44]
lea ecx, [ebp - 0xd]
call fcn.00425cd0
push 1
push dword [edi + 0x44]
lea ecx, [ebp - 0xd]
call fcn.00424830
push eax
lea ecx, [ebp - 0xd]
call fcn.00433b30
lea ecx, [edi + 0x44]
mov dword [edi + 0x44], 0
call fcn.00433ad0
lea eax, [edi + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [edi + 0x18]
mov dword [ebp - 4], 0xa
call fcn.00448000
lea ecx, [edi + 0x18]
mov byte [ebp - 4], 0xb
call fcn.00423430
push dword [edi + 0x18]
lea ecx, [ebp - 0xd]
call fcn.00425cd0
push 1
push dword [edi + 0x18]
lea ecx, [ebp - 0xd]
call fcn.00424830
push eax
lea ecx, [ebp - 0xd]
call fcn.00433b30
lea ecx, [edi + 0x18]
mov dword [edi + 0x18], 0
call fcn.00433ad0
mov dword [ebp - 4], 0xc
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x4469be
call fcn.004353c0
mov dword [edi], vtable.nbase::MessagePump::Delegate.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret