Function at 0x41d5d0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c82bc
mov eax, dword fs:[0]
push eax
sub esp, 0xc
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 edi, ecx
mov dword [ebp - 0x14], edi
mov dword [edi], vtable.nbase::MessageLoop.0
xor ebx, ebx
mov dword [ebp - 4], 8
mov dword [ebp - 0x10], ebx
nop
push edi
call fcn.0041d890
cmp dword [edi + 0x54], ebx
jne 0x41d64c
lea esi, [edi + 0x2c]
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 9
cmp dword [edi + 0x24], ebx
je 0x41d63d
lea eax, [edi + 0x44]
lea ecx, [edi + 0x14]
push eax
call fcn.0041e980
mov byte [ebp - 4], 8
cmp esi, ebx
je 0x41d64c
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call fcn.0041d890
test al, al
je 0x41d662
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, 0x64
jl 0x41d610
push edi
call fcn.0041e510
call fcn.0041eab0
mov ecx, dword [eax]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [edi + 0xb8]
cmp eax, ebx
je 0x41d68a
push eax
call fcn.004a79c0
add esp, 4
mov dword [edi + 0xb8], ebx
mov dword [edi + 0xbc], ebx
mov dword [edi + 0xc0], ebx
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x41d6af
push eax
call fcn.004a79c0
add esp, 4
mov dword [edi + 0xa0], ebx
mov dword [edi + 0xa4], ebx
mov dword [edi + 0xa8], ebx
mov byte [ebp - 4], 5
mov eax, dword [edi + 0x74]
cmp eax, ebx
je 0x41d711
mov ecx, dword [edi + 0x78]
mov ebx, eax
mov dword [ebp - 0x10], ecx
cmp ebx, ecx
je 0x41d703
mov esi, dword [ebx]
test esi, esi
je 0x41d6fb
push 0xffffffffffffffff
lea edx, [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
dec eax
jne 0x41d6fb
test esi, esi
je 0x41d6fb
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
add ebx, 0x18
cmp ebx, dword [ebp - 0x10]
jne 0x41d6d8
mov eax, dword [edi + 0x74]
push eax
call fcn.004a79c0
add esp, 4
xor ebx, ebx
lea esi, [edi + 0x5c]
mov dword [edi + 0x74], ebx
mov dword [edi + 0x78], ebx
mov dword [edi + 0x7c], ebx
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 0xa
call fcn.0041ec00
mov eax, dword [esi]
push eax
call fcn.004a79c0
mov dword [esi], ebx
lea esi, [edi + 0x44]
add esp, 4
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 0xb
call fcn.0041ec00
mov eax, dword [esi]
push eax
call fcn.004a79c0
add esp, 4
lea eax, [edi + 0x2c]
push eax
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea esi, [edi + 0x14]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 0xc
call fcn.0041ec00
mov eax, dword [esi]
push eax
call fcn.004a79c0
mov dword [esi], ebx
mov byte [ebp - 4], 0
mov esi, dword [edi + 0xc]
add esp, 4
cmp esi, ebx
je 0x41d7a0
push 0xffffffffffffffff
lea ecx, [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
dec eax
jne 0x41d7a0
cmp esi, ebx
je 0x41d7a0
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
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